OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
6 'conditions': [ | |
7 ['android_webview_build == 0', { | |
8 'targets': [ | |
9 { | |
10 'target_name': 'components_unittests', | |
11 'type': '<(gtest_target_type)', | |
12 'sources': [ | |
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_un
ittest.cc', | |
17 'browser_context_keyed_service/dependency_graph_unittest.cc', | |
18 'dom_distiller/core/distiller_url_fetcher_unittest.cc', | |
19 'dom_distiller/core/dom_distiller_database_unittest.cc', | |
20 'dom_distiller/core/dom_distiller_store_unittest.cc', | |
21 'dom_distiller/core/article_entry_unittest.cc', | |
22 'json_schema/json_schema_validator_unittest.cc', | |
23 'json_schema/json_schema_validator_unittest_base.cc', | |
24 'json_schema/json_schema_validator_unittest_base.h', | |
25 'navigation_interception/intercept_navigation_resource_throttle_unit
test.cc', | |
26 'precache/core/precache_fetcher_unittest.cc', | |
27 'sessions/serialized_navigation_entry_unittest.cc', | |
28 'test/run_all_unittests.cc', | |
29 'translate/common/translate_metrics_unittest.cc', | |
30 'translate/common/translate_util_unittest.cc', | |
31 'translate/language_detection/language_detection_util_unittest.cc', | |
32 # TODO(asvitkine): These should be tested on iOS too. | |
33 'variations/entropy_provider_unittest.cc', | |
34 'variations/metrics_util_unittest.cc', | |
35 'variations/variations_associated_data_unittest.cc', | |
36 'variations/variations_seed_processor_unittest.cc', | |
37 'visitedlink/test/visitedlink_unittest.cc', | |
38 'webdata/encryptor/encryptor_password_mac_unittest.cc', | |
39 'webdata/encryptor/encryptor_unittest.cc', | |
40 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
41 ], | |
42 'include_dirs': [ | |
43 '..', | |
44 ], | |
45 'dependencies': [ | |
46 '../base/base.gyp:test_support_base', | |
47 '../sync/sync.gyp:sync', | |
48 '../testing/gmock.gyp:gmock', | |
49 '../testing/gtest.gyp:gtest', | |
50 | |
51 # Dependencies of autofill | |
52 'autofill_core_common', | |
53 | |
54 # Dependencies of auto_login_parser | |
55 'auto_login_parser', | |
56 | |
57 # Dependencies of browser_context_keyed_service | |
58 'browser_context_keyed_service', | |
59 | |
60 # Dependencies of dom_distiller | |
61 'distilled_page_proto', | |
62 'dom_distiller_core', | |
63 | |
64 # Dependencies of encryptor | |
65 'encryptor', | |
66 | |
67 # Dependencies of json_schema | |
68 'json_schema', | |
69 | |
70 # Dependencies of intercept_navigation_resource_throttle_unittest.cc | |
71 '../content/content_shell_and_tests.gyp:test_support_content', | |
72 '../skia/skia.gyp:skia', | |
73 'navigation_interception', | |
74 | |
75 # Dependencies of policy | |
76 'policy_component', | |
77 | |
78 # Dependencies of precache | |
79 'precache_core', | |
80 'precache_core_proto', | |
81 | |
82 # Dependencies of sessions | |
83 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
84 'sessions', | |
85 'sessions_test_support', | |
86 | |
87 # Dependencies of translate. | |
88 'translate_common', | |
89 'translate_language_detection', | |
90 | |
91 # Dependencies of variations | |
92 'variations', | |
93 | |
94 # Dependencies of visitedlink | |
95 'visitedlink_browser', | |
96 'visitedlink_renderer', | |
97 '../content/content_resources.gyp:content_resources', | |
98 | |
99 'web_modal', | |
100 'web_modal_test_support', | |
101 ], | |
102 'conditions': [ | |
103 ['OS == "ios"', { | |
104 'sources/': [ | |
105 ['exclude', '\\.cc$'], | |
106 ['include', '^test/run_all_unittests\\.cc$'], | |
107 # TODO(ios): Include files here as they are made to work, see | |
108 # http://crbug.com/303011. | |
109 # TODO(asvitkine): Bring up varations/ unittests on iOS. | |
110 ['include', '^dom_distiller'], | |
111 ['include', '^translate'], | |
112 ], | |
113 'dependencies!': [ | |
114 'autofill_core_common', | |
115 'navigation_interception', | |
116 'visitedlink_renderer', | |
117 ], | |
118 }], | |
119 ['OS == "android"', { | |
120 'sources!': [ | |
121 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | |
122 ], | |
123 'dependencies!': [ | |
124 'web_modal', | |
125 'web_modal_test_support', | |
126 ], | |
127 }], | |
128 ['OS == "android" and gtest_target_type == "shared_library"', { | |
129 'dependencies': [ | |
130 '../testing/android/native_test.gyp:native_test_native_code', | |
131 ] | |
132 }], | |
133 ['OS=="win" and win_use_allocator_shim==1', { | |
134 'dependencies': [ | |
135 '../base/allocator/allocator.gyp:allocator', | |
136 ], | |
137 }], | |
138 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc
==1', { | |
139 'dependencies': [ | |
140 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | |
141 ], | |
142 'link_settings': { | |
143 'ldflags': ['-rdynamic'], | |
144 }, | |
145 }], | |
146 ['configuration_policy==1', { | |
147 'sources': [ | |
148 'policy/core/common/schema_unittest.cc', | |
149 ], | |
150 }], | |
151 ], | |
152 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
153 'msvs_disabled_warnings': [4267, ], | |
154 }, | |
155 ], | |
156 }], | |
157 ['OS != "ios" and android_webview_build == 0', { | |
158 'targets': [ | |
159 { | |
160 'target_name': 'components_perftests', | |
161 'type': '<(gtest_target_type)', | |
162 'dependencies': [ | |
163 '../base/base.gyp:base', | |
164 '../base/base.gyp:test_support_perf', | |
165 '../content/content_shell_and_tests.gyp:test_support_content', | |
166 '../testing/gtest.gyp:gtest', | |
167 '../ui/compositor/compositor.gyp:compositor', | |
168 'visitedlink_browser', | |
169 ], | |
170 'include_dirs': [ | |
171 '..', | |
172 ], | |
173 'sources': [ | |
174 'visitedlink/test/visitedlink_perftest.cc', | |
175 ], | |
176 'conditions': [ | |
177 ['OS == "android" and gtest_target_type == "shared_library"', { | |
178 'dependencies': [ | |
179 '../testing/android/native_test.gyp:native_test_native_code', | |
180 ], | |
181 }], | |
182 ], | |
183 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
184 'msvs_disabled_warnings': [ 4267, ], | |
185 }, | |
186 ], | |
187 'conditions': [ | |
188 ['OS == "android" and gtest_target_type == "shared_library"', { | |
189 'targets': [ | |
190 { | |
191 'target_name': 'components_unittests_apk', | |
192 'type': 'none', | |
193 'dependencies': [ | |
194 'components_unittests', | |
195 ], | |
196 'variables': { | |
197 'test_suite_name': 'components_unittests', | |
198 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo
nents_unittests<(SHARED_LIB_SUFFIX)', | |
199 }, | |
200 'includes': [ '../build/apk_test.gypi' ], | |
201 }, | |
202 ], | |
203 }], | |
204 ], | |
205 }], | |
206 ], | |
207 } | |
OLD | NEW |