1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 ['android_webview_build == 0', {
10 'target_name': 'components_unittests',
11 'type': '<(gtest_target_type)',
13 'autofill/core/common/form_data_unittest.cc',
14 'autofill/core/common/form_field_data_unittest.cc',
15 'auto_login_parser/auto_login_parser_unittest.cc',
16 'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
17 'browser_context_keyed_service/dependency_graph_unittest.cc',
18 'dom_distiller/core/dom_distiller_database_unittest.cc',
19 'dom_distiller/core/dom_distiller_store_unittest.cc',
20 'dom_distiller/core/article_entry_unittest.cc',
21 'json_schema/json_schema_validator_unittest.cc',
22 'json_schema/json_schema_validator_unittest_base.cc',
23 'json_schema/json_schema_validator_unittest_base.h',
24 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
25 'sessions/serialized_navigation_entry_unittest.cc',
26 'test/run_all_unittests.cc',
27 'translate/common/translate_metrics_unittest.cc',
28 'translate/common/translate_util_unittest.cc',
29 'translate/language_detection/language_detection_util_unittest.cc',
30 # TODO(asvitkine): These should be tested on iOS too.
31 'variations/entropy_provider_unittest.cc',
32 'variations/metrics_util_unittest.cc',
33 'variations/variations_associated_data_unittest.cc',
34 'variations/variations_seed_processor_unittest.cc',
35 'visitedlink/test/visitedlink_unittest.cc',
36 'webdata/encryptor/encryptor_password_mac_unittest.cc',
37 'webdata/encryptor/encryptor_unittest.cc',
38 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
44 '../base/base.gyp:test_support_base',
45 '../sync/sync.gyp:sync',
46 '../testing/gmock.gyp:gmock',
47 '../testing/gtest.gyp:gtest',
49 # Dependencies of autofill
50 'autofill_core_common',
52 # Dependencies of auto_login_parser
55 # Dependencies of browser_context_keyed_service
56 'browser_context_keyed_service',
58 # Dependencies of dom_distiller
61 # Dependencies of encryptor
64 # Dependencies of json_schema
67 # Dependencies of intercept_navigation_resource_throttle_unittest.cc
68 '../content/content.gyp:test_support_content',
69 '../skia/skia.gyp:skia',
70 'navigation_interception',
72 # Dependencies of policy
75 # Dependencies of sessions
76 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
78 'sessions_test_support',
80 # Dependencies of translate.
82 'translate_language_detection',
84 # Dependencies of variations
87 # Dependencies of visitedlink
88 'visitedlink_browser',
89 'visitedlink_renderer',
90 '../content/content_resources.gyp:content_resources',
97 ['exclude', '\\.cc$'],
98 ['include', '^test/run_all_unittests\\.cc$'],
99 # TODO(ios): Include files here as they are made to work, see
100 # http://crbug.com/303011.
101 # TODO(asvitkine): Bring up varations/ unittests on iOS.
102 ['include', '^dom_distiller'],
103 ['include', '^translate'],
106 'autofill_core_common',
107 'navigation_interception',
108 'visitedlink_renderer',
111 ['OS == "android"', {
113 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
119 ['OS == "android" and gtest_target_type == "shared_library"', {
121 '../testing/android/native_test.gyp:native_test_native_code',
124 ['OS=="win" and win_use_allocator_shim==1', {
126 '../base/allocator/allocator.gyp:allocator',
129 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
131 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
134 'ldflags': ['-rdynamic'],
137 ['configuration_policy==1', {
139 'policy/core/common/schema_unittest.cc',
143 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
144 'msvs_disabled_warnings': [4267, ],
148 ['OS != "ios" and android_webview_build == 0', {
151 'target_name': 'components_perftests',
152 'type': '<(gtest_target_type)',
154 '../base/base.gyp:base',
155 '../base/base.gyp:test_support_perf',
156 '../content/content.gyp:test_support_content',
157 '../testing/gtest.gyp:gtest',
158 '../ui/compositor/compositor.gyp:compositor',
159 'visitedlink_browser',
165 'visitedlink/test/visitedlink_perftest.cc',
168 ['OS == "android" and gtest_target_type == "shared_library"', {
170 '../testing/android/native_test.gyp:native_test_native_code',
174 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
175 'msvs_disabled_warnings': [ 4267, ],
179 ['OS == "android" and gtest_target_type == "shared_library"', {
182 'target_name': 'components_unittests_apk',
185 'components_unittests',
188 'test_suite_name': 'components_unittests',
189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
191 'includes': [ '../build/apk_test.gypi' ],