Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: components/components_tests.gyp

Issue 172473002: Move many of the Autofill unittests into components_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 # This turns on e.g. the filename-based detection of which 7 # This turns on e.g. the filename-based detection of which
8 # platforms to include source files on (e.g. files ending in 8 # platforms to include source files on (e.g. files ending in
9 # _mac.h or _mac.cc are only compiled on MacOSX). 9 # _mac.h or _mac.cc are only compiled on MacOSX).
10 'chromium_code': 1, 10 'chromium_code': 1,
11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components',
11 }, 12 },
12 'conditions': [ 13 'conditions': [
13 ['android_webview_build == 0', { 14 ['android_webview_build == 0', {
14 'targets': [ 15 'targets': [
15 { 16 {
16 'target_name': 'components_unittests', 17 'target_name': 'components_unittests',
17 'type': '<(gtest_target_type)', 18 'type': '<(gtest_target_type)',
18 'sources': [ 19 'sources': [
19 'auto_login_parser/auto_login_parser_unittest.cc', 20 'auto_login_parser/auto_login_parser_unittest.cc',
21 'autofill/core/browser/address_field_unittest.cc',
22 'autofill/core/browser/address_unittest.cc',
23 'autofill/core/browser/android/auxiliary_profile_unittest_android.cc ',
24 'autofill/core/browser/autofill_country_unittest.cc',
25 'autofill/core/browser/autofill_data_model_unittest.cc',
26 'autofill/core/browser/autofill_download_url_unittest.cc',
27 'autofill/core/browser/autofill_field_unittest.cc',
28 'autofill/core/browser/autofill_merge_unittest.cc',
29 'autofill/core/browser/autofill_profile_unittest.cc',
30 'autofill/core/browser/autofill_regexes_unittest.cc',
31 'autofill/core/browser/autofill_type_unittest.cc',
32 'autofill/core/browser/autofill_xml_parser_unittest.cc',
33 'autofill/core/browser/contact_info_unittest.cc',
34 'autofill/core/browser/credit_card_field_unittest.cc',
35 'autofill/core/browser/credit_card_unittest.cc',
36 'autofill/core/browser/form_field_unittest.cc',
37 'autofill/core/browser/form_structure_unittest.cc',
38 'autofill/core/browser/name_field_unittest.cc',
39 'autofill/core/browser/password_generator_unittest.cc',
40 'autofill/core/browser/phone_field_unittest.cc',
41 'autofill/core/browser/phone_number_unittest.cc',
42 'autofill/core/browser/phone_number_i18n_unittest.cc',
43 'autofill/core/browser/validation_unittest.cc',
20 'autofill/core/browser/webdata/web_data_service_unittest.cc', 44 'autofill/core/browser/webdata/web_data_service_unittest.cc',
21 'autofill/core/common/form_data_unittest.cc', 45 'autofill/core/common/form_data_unittest.cc',
22 'autofill/core/common/form_field_data_unittest.cc', 46 'autofill/core/common/form_field_data_unittest.cc',
23 'autofill/core/common/password_form_fill_data_unittest.cc', 47 'autofill/core/common/password_form_fill_data_unittest.cc',
24 'browser_context_keyed_service/browser_context_dependency_manager_un ittest.cc', 48 'browser_context_keyed_service/browser_context_dependency_manager_un ittest.cc',
25 'browser_context_keyed_service/dependency_graph_unittest.cc', 49 'browser_context_keyed_service/dependency_graph_unittest.cc',
26 'cloud_devices/printer_description_unittest.cc', 50 'cloud_devices/printer_description_unittest.cc',
27 'dom_distiller/core/article_entry_unittest.cc', 51 'dom_distiller/core/article_entry_unittest.cc',
28 'dom_distiller/core/distiller_unittest.cc', 52 'dom_distiller/core/distiller_unittest.cc',
29 'dom_distiller/core/distiller_url_fetcher_unittest.cc', 53 'dom_distiller/core/distiller_url_fetcher_unittest.cc',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'encryptor/ie7_password_unittest_win.cc', 114 'encryptor/ie7_password_unittest_win.cc',
91 'encryptor/os_crypt_unittest.cc', 115 'encryptor/os_crypt_unittest.cc',
92 'web_modal/web_contents_modal_dialog_manager_unittest.cc', 116 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
93 ], 117 ],
94 'include_dirs': [ 118 'include_dirs': [
95 '..', 119 '..',
96 ], 120 ],
97 'dependencies': [ 121 'dependencies': [
98 '../base/base.gyp:base_prefs_test_support', 122 '../base/base.gyp:base_prefs_test_support',
99 '../base/base.gyp:test_support_base', 123 '../base/base.gyp:test_support_base',
124 # TODO(blundell): Eliminate this dependency by having
125 # components_unittests have its own pakfile. crbug.com/348563
126 '../chrome/chrome_resources.gyp:packed_extra_resources',
100 # TODO(blundell): Eliminate the need for this dependency in code 127 # TODO(blundell): Eliminate the need for this dependency in code
101 # that iOS shares. crbug.com/325243 128 # that iOS shares. crbug.com/325243
102 '../content/content_shell_and_tests.gyp:test_support_content', 129 '../content/content_shell_and_tests.gyp:test_support_content',
103 '../sync/sync.gyp:sync', 130 '../sync/sync.gyp:sync',
104 '../testing/gmock.gyp:gmock', 131 '../testing/gmock.gyp:gmock',
105 '../testing/gtest.gyp:gtest', 132 '../testing/gtest.gyp:gtest',
106 '../ui/gfx/gfx.gyp:gfx', 133 '../ui/gfx/gfx.gyp:gfx',
107 '../ui/ui.gyp:ui', 134 '../ui/ui.gyp:ui',
108 135
109 # Dependencies of auto_login_parser 136 # Dependencies of auto_login_parser
110 'components.gyp:auto_login_parser', 137 'components.gyp:auto_login_parser',
111 138
112 # Dependencies of autofill 139 # Dependencies of autofill
113 'components.gyp:autofill_core_browser', 140 'components.gyp:autofill_core_browser',
114 'components.gyp:autofill_core_common', 141 'components.gyp:autofill_core_common',
115 'components.gyp:autofill_core_test_support', 142 'components.gyp:autofill_core_test_support',
143 'component_strings.gyp:component_strings',
144 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
116 145
117 # Dependencies of cloud_devices 146 # Dependencies of cloud_devices
118 'components.gyp:cloud_devices', 147 'components.gyp:cloud_devices',
119 148
120 # Dependencies of dom_distiller 149 # Dependencies of dom_distiller
121 'components.gyp:distilled_page_proto', 150 'components.gyp:distilled_page_proto',
122 'components.gyp:dom_distiller_core', 151 'components.gyp:dom_distiller_core',
123 'components.gyp:dom_distiller_test_support', 152 'components.gyp:dom_distiller_test_support',
124 153
125 # Dependencies of encryptor 154 # Dependencies of encryptor
(...skipping 29 matching lines...) Expand all
155 184
156 # Dependencies of variations 185 # Dependencies of variations
157 'components.gyp:variations', 186 'components.gyp:variations',
158 ], 187 ],
159 'conditions': [ 188 'conditions': [
160 ['OS != "ios"', { 189 ['OS != "ios"', {
161 'sources': [ 190 'sources': [
162 'dom_distiller/content/dom_distiller_viewer_source_unittest.cc', 191 'dom_distiller/content/dom_distiller_viewer_source_unittest.cc',
163 ], 192 ],
164 'dependencies': [ 193 'dependencies': [
194 # Dependencies of autofill/core/browser/credit_card_unittest.cc.
195 # TODO(blundell): Eliminate the need for this conditional
196 # dependence. crbug.com/328150
197 '../webkit/webkit_resources.gyp:webkit_resources',
198
165 # Dependencies of browser_context_keyed_service 199 # Dependencies of browser_context_keyed_service
166 'components.gyp:browser_context_keyed_service', 200 'components.gyp:browser_context_keyed_service',
167 201
168 # Dependencies of dom_distiller 202 # Dependencies of dom_distiller
169 'components.gyp:dom_distiller_content', 203 'components.gyp:dom_distiller_content',
170 204
171 # Dependencies of 205 # Dependencies of
172 # intercept_navigation_resource_throttle_unittest.cc 206 # intercept_navigation_resource_throttle_unittest.cc
173 '../skia/skia.gyp:skia', 207 '../skia/skia.gyp:skia',
174 'components.gyp:navigation_interception', 208 'components.gyp:navigation_interception',
(...skipping 16 matching lines...) Expand all
191 # Dependencies of visitedlink 225 # Dependencies of visitedlink
192 'components.gyp:visitedlink_browser', 226 'components.gyp:visitedlink_browser',
193 'components.gyp:visitedlink_renderer', 227 'components.gyp:visitedlink_renderer',
194 '../content/content_resources.gyp:content_resources', 228 '../content/content_resources.gyp:content_resources',
195 229
196 # Dependencies of web_modal 230 # Dependencies of web_modal
197 'components.gyp:web_modal', 231 'components.gyp:web_modal',
198 'components.gyp:web_modal_test_support', 232 'components.gyp:web_modal_test_support',
199 ], 233 ],
200 }, { # 'OS == "ios"' 234 }, { # 'OS == "ios"'
235 'includes': ['../chrome/chrome_ios_bundle_resources.gypi'],
201 'sources/': [ 236 'sources/': [
202 ['exclude', '\\.cc$'], 237 ['exclude', '\\.cc$'],
203 ['exclude', '\\.mm$'], 238 ['exclude', '\\.mm$'],
204 ['include', '^test/run_all_unittests\\.cc$'], 239 ['include', '^test/run_all_unittests\\.cc$'],
205 # TODO(ios): Include files here as they are made to work, see 240 # TODO(ios): Include files here as they are made to work, see
206 # http://crbug.com/303011. 241 # http://crbug.com/303011.
207 # TODO(asvitkine): Bring up variations/ unittests on iOS. 242 # TODO(asvitkine): Bring up variations/ unittests on iOS.
208 # TODO(blundell): Bring up json_schema/ unittests on iOS. 243 # TODO(blundell): Bring up json_schema/ unittests on iOS.
209 ['include', '^auto_login_parser/'], 244 ['include', '^auto_login_parser/'],
210 ['include', '^autofill/'], 245 ['include', '^autofill/'],
211 ['include', '^dom_distiller/'], 246 ['include', '^dom_distiller/'],
212 ['include', '^language_usage_metrics/'], 247 ['include', '^language_usage_metrics/'],
213 ['include', '^password_manager/'], 248 ['include', '^password_manager/'],
214 ['include', '^precache/core/'], 249 ['include', '^precache/core/'],
215 ['include', '^signin/'], 250 ['include', '^signin/'],
216 ['include', '^sync_driver/'], 251 ['include', '^sync_driver/'],
217 ['include', '^translate/'], 252 ['include', '^translate/'],
218 # TODO(blundell): Provide the iOS login DB implementation and 253 # TODO(blundell): Provide the iOS login DB implementation and
219 # then re-enable this test. http://crbug.com/341429 254 # then re-enable this test. http://crbug.com/341429
220 ['exclude', '^password_manager/core/browser/login_database_unitt est.cc'], 255 ['exclude', '^password_manager/core/browser/login_database_unitt est.cc'],
221 ], 256 ],
257 'actions': [
258 {
259 'action_name': 'copy_test_data',
260 'variables': {
261 'test_data_files': [
262 'test/data',
263 ],
264 'test_data_prefix': 'components',
265 },
266 'includes': [ '../build/copy_test_data_ios.gypi' ],
267 },
268 ],
222 'conditions': [ 269 'conditions': [
223 ['configuration_policy==1', { 270 ['configuration_policy==1', {
224 'sources/': [ 271 'sources/': [
225 ['include', '^policy/'], 272 ['include', '^policy/'],
226 ], 273 ],
227 }], 274 }],
228 ], 275 ],
229 }], 276 }],
230 ['disable_nacl==0', { 277 ['disable_nacl==0', {
231 'sources': [ 278 'sources': [
232 'nacl/browser/nacl_file_host_unittest.cc', 279 'nacl/browser/nacl_file_host_unittest.cc',
233 'nacl/browser/nacl_process_host_unittest.cc', 280 'nacl/browser/nacl_process_host_unittest.cc',
234 'nacl/browser/nacl_validation_cache_unittest.cc', 281 'nacl/browser/nacl_validation_cache_unittest.cc',
235 'nacl/browser/pnacl_host_unittest.cc', 282 'nacl/browser/pnacl_host_unittest.cc',
236 'nacl/browser/pnacl_translation_cache_unittest.cc', 283 'nacl/browser/pnacl_translation_cache_unittest.cc',
237 'nacl/browser/test_nacl_browser_delegate.cc', 284 'nacl/browser/test_nacl_browser_delegate.cc',
238 ], 285 ],
239 'dependencies': [ 286 'dependencies': [
240 'nacl.gyp:nacl_browser', 287 'nacl.gyp:nacl_browser',
241 'nacl.gyp:nacl_common', 288 'nacl.gyp:nacl_common',
242 ], 289 ],
243 }], 290 }],
244 ['OS == "mac"', { 291 ['OS == "mac"', {
292 'dependencies': [
293 # TODO(blundell): Eliminate this dependency by having
294 # ./test/run_all_unittests.cc avoid using the //chrome
295 # constant to get the framework name on OS X. crbug.com/348563
296 '../chrome/chrome.gyp:common',
297 ],
245 'link_settings': { 298 'link_settings': {
246 'libraries': [ 299 'libraries': [
247 '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework', 300 '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
248 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 301 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
249 '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framewo rk', 302 '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framewo rk',
250 ], 303 ],
251 }, 304 },
252 'sources!': [ 305 'sources!': [
253 'password_manager/core/browser/password_store_default_unittest.c c', 306 'password_manager/core/browser/password_store_default_unittest.c c',
254 ], 307 ],
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 'dependencies': [ 544 'dependencies': [
492 '../base/allocator/allocator.gyp:allocator', 545 '../base/allocator/allocator.gyp:allocator',
493 ], 546 ],
494 }], 547 }],
495 ], 548 ],
496 }, 549 },
497 ], 550 ],
498 }], 551 }],
499 ], 552 ],
500 } 553 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698