Remove now obsolete checkdeps copy
[chromium-blink-merge.git] / components / components_tests.gyp
blobe0ccce077f21b8dfb12af1a51a9a5ac68008c75d
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
3 # found in the LICENSE file.
6   'variables': {
7     # This turns on e.g. the filename-based detection of which
8     # platforms to include source files on (e.g. files ending in
9     # _mac.h or _mac.cc are only compiled on MacOSX).
10     'chromium_code': 1,
11     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components',
12    },
13   'conditions': [
14     ['android_webview_build == 0', {
15       'targets': [
16         {
17           'target_name': 'components_unittests',
18           'type': '<(gtest_target_type)',
19           'sources': [
20             'auto_login_parser/auto_login_parser_unittest.cc',
21             'autofill/content/browser/content_autofill_driver_unittest.cc',
22             'autofill/content/browser/request_autocomplete_manager_unittest.cc',
23             'autofill/content/browser/wallet/full_wallet_unittest.cc',
24             'autofill/content/browser/wallet/instrument_unittest.cc',
25             'autofill/content/browser/wallet/wallet_address_unittest.cc',
26             'autofill/content/browser/wallet/wallet_client_unittest.cc',
27             'autofill/content/browser/wallet/wallet_items_unittest.cc',
28             'autofill/content/browser/wallet/wallet_service_url_unittest.cc',
29             'autofill/content/browser/wallet/wallet_signin_helper_unittest.cc',
30             'autofill/core/browser/address_field_unittest.cc',
31             'autofill/core/browser/address_unittest.cc',
32             'autofill/core/browser/android/auxiliary_profile_unittest_android.cc',
33             'autofill/core/browser/autocomplete_history_manager_unittest.cc',
34             'autofill/core/browser/autofill_country_unittest.cc',
35             'autofill/core/browser/autofill_data_model_unittest.cc',
36             'autofill/core/browser/autofill_download_unittest.cc',
37             'autofill/core/browser/autofill_external_delegate_unittest.cc',
38             'autofill/core/browser/autofill_field_unittest.cc',
39             'autofill/core/browser/autofill_ie_toolbar_import_win_unittest.cc',
40             'autofill/core/browser/autofill_manager_unittest.cc',
41             'autofill/core/browser/autofill_merge_unittest.cc',
42             'autofill/core/browser/autofill_metrics_unittest.cc',
43             'autofill/core/browser/autofill_profile_unittest.cc',
44             'autofill/core/browser/autofill_regexes_unittest.cc',
45             'autofill/core/browser/autofill_type_unittest.cc',
46             'autofill/core/browser/autofill_xml_parser_unittest.cc',
47             'autofill/core/browser/contact_info_unittest.cc',
48             'autofill/core/browser/credit_card_field_unittest.cc',
49             'autofill/core/browser/credit_card_unittest.cc',
50             'autofill/core/browser/form_field_unittest.cc',
51             'autofill/core/browser/form_structure_unittest.cc',
52             'autofill/core/browser/name_field_unittest.cc',
53             'autofill/core/browser/password_generator_unittest.cc',
54             'autofill/core/browser/personal_data_manager_unittest.cc',
55             'autofill/core/browser/phone_field_unittest.cc',
56             'autofill/core/browser/phone_number_i18n_unittest.cc',
57             'autofill/core/browser/phone_number_unittest.cc',
58             'autofill/core/browser/validation_unittest.cc',
59             'autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc',
60             'autofill/core/browser/webdata/autofill_table_unittest.cc',
61             'autofill/core/browser/webdata/web_data_service_unittest.cc',
62             'autofill/core/common/form_data_unittest.cc',
63             'autofill/core/common/form_field_data_unittest.cc',
64             'autofill/core/common/password_form_fill_data_unittest.cc',
65             'autofill/core/common/save_password_progress_logger_unittest.cc',
66             'bookmarks/browser/bookmark_codec_unittest.cc',
67             'bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc',
68             'bookmarks/browser/bookmark_index_unittest.cc',
69             'bookmarks/browser/bookmark_model_unittest.cc',
70             'bookmarks/browser/bookmark_utils_unittest.cc',
71             'captive_portal/captive_portal_detector_unittest.cc',
72             'cloud_devices/common/cloud_devices_urls_unittest.cc',
73             'cloud_devices/common/printer_description_unittest.cc',
74             'data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler_unittest.cc',
75             'data_reduction_proxy/browser/data_reduction_proxy_config_service_unittest.cc',
76             'data_reduction_proxy/browser/data_reduction_proxy_metrics_unittest.cc',
77             'data_reduction_proxy/browser/data_reduction_proxy_params_unittest.cc',
78             'data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc',
79             'data_reduction_proxy/browser/http_auth_handler_data_reduction_proxy_unittest.cc',
80             'dom_distiller/core/article_entry_unittest.cc',
81             'dom_distiller/core/distilled_content_store_unittest.cc',
82             'dom_distiller/core/distiller_unittest.cc',
83             'dom_distiller/core/distiller_url_fetcher_unittest.cc',
84             'dom_distiller/core/dom_distiller_database_unittest.cc',
85             'dom_distiller/core/dom_distiller_model_unittest.cc',
86             'dom_distiller/core/dom_distiller_service_unittest.cc',
87             'dom_distiller/core/dom_distiller_store_unittest.cc',
88             'dom_distiller/core/task_tracker_unittest.cc',
89             'dom_distiller/core/url_utils_unittest.cc',
90             'dom_distiller/core/viewer_unittest.cc',
91             'domain_reliability/config_unittest.cc',
92             'domain_reliability/context_unittest.cc',
93             'domain_reliability/dispatcher_unittest.cc',
94             'domain_reliability/monitor_unittest.cc',
95             'domain_reliability/scheduler_unittest.cc',
96             'domain_reliability/test_util.cc',
97             'domain_reliability/test_util.h',
98             'domain_reliability/uploader_unittest.cc',
99             'domain_reliability/util_unittest.cc',
100             'enhanced_bookmarks/image_store_unittest.cc',
101             'feedback/feedback_uploader_unittest.cc',
102             'gcm_driver/gcm_driver_desktop_unittest.cc',
103             'invalidation/invalidation_logger_unittest.cc',
104             'json_schema/json_schema_validator_unittest.cc',
105             'json_schema/json_schema_validator_unittest_base.cc',
106             'json_schema/json_schema_validator_unittest_base.h',
107             'keyed_service/content/browser_context_dependency_manager_unittest.cc',
108             'keyed_service/core/dependency_graph_unittest.cc',
109             'language_usage_metrics/language_usage_metrics_unittest.cc',
110             'metrics/machine_id_provider_win_unittest.cc',
111             'metrics/metrics_hashes_unittest.cc',
112             'metrics/metrics_log_base_unittest.cc',
113             'metrics/metrics_log_manager_unittest.cc',
114             'metrics/metrics_reporting_scheduler_unittest.cc',
115             'metrics/metrics_state_manager_unittest.cc',
116             'metrics/net/compression_utils_unittest.cc',
117             'metrics/persisted_logs_unittest.cc',
118             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
119             'network_time/network_time_tracker_unittest.cc',
120             'os_crypt/ie7_password_win_unittest.cc',
121             'os_crypt/keychain_password_mac_unittest.mm',
122             'os_crypt/os_crypt_unittest.cc',
123             'password_manager/core/browser/browser_save_password_progress_logger_unittest.cc',
124             'password_manager/core/browser/log_router_unittest.cc',
125             'password_manager/core/browser/login_database_unittest.cc',
126             'password_manager/core/browser/password_autofill_manager_unittest.cc',
127             'password_manager/core/browser/password_form_manager_unittest.cc',
128             'password_manager/core/browser/password_generation_manager_unittest.cc',
129             'password_manager/core/browser/password_manager_unittest.cc',
130             'password_manager/core/browser/password_store_default_unittest.cc',
131             'password_manager/core/browser/password_store_unittest.cc',
132             'password_manager/core/browser/password_syncable_service_unittest.cc',
133             'password_manager/core/browser/psl_matching_helper_unittest.cc',
134             'precache/content/precache_manager_unittest.cc',
135             'precache/core/precache_database_unittest.cc',
136             'precache/core/precache_fetcher_unittest.cc',
137             'precache/core/precache_url_table_unittest.cc',
138             'query_parser/query_parser_unittest.cc',
139             'query_parser/snippet_unittest.cc',
140             'rappor/bloom_filter_unittest.cc',
141             'rappor/byte_vector_utils_unittest.cc',
142             'rappor/log_uploader_unittest.cc',
143             'rappor/rappor_metric_unittest.cc',
144             'rappor/rappor_service_unittest.cc',
145             'search_provider_logos/logo_cache_unittest.cc',
146             'search_provider_logos/logo_tracker_unittest.cc',
147             'sessions/serialized_navigation_entry_unittest.cc',
148             'signin/core/browser/mutable_profile_oauth2_token_service_unittest.cc',
149             'signin/core/browser/signin_error_controller_unittest.cc',
150             'signin/core/browser/webdata/token_service_table_unittest.cc',
151             'signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm',
152             'storage_monitor/image_capture_device_manager_unittest.mm',
153             'storage_monitor/media_storage_util_unittest.cc',
154             'storage_monitor/media_transfer_protocol_device_observer_linux_unittest.cc',
155             'storage_monitor/storage_info_unittest.cc',
156             'storage_monitor/storage_monitor_chromeos_unittest.cc',
157             'storage_monitor/storage_monitor_linux_unittest.cc',
158             'storage_monitor/storage_monitor_mac_unittest.mm',
159             'storage_monitor/storage_monitor_unittest.cc',
160             'storage_monitor/storage_monitor_win_unittest.cc',
161             'sync_driver/data_type_manager_impl_unittest.cc',
162             'sync_driver/generic_change_processor_unittest.cc',
163             'sync_driver/model_association_manager_unittest.cc',
164             'sync_driver/non_blocking_data_type_controller_unittest.cc',
165             'sync_driver/shared_change_processor_unittest.cc',
166             'sync_driver/sync_prefs_unittest.cc',
167             'sync_driver/system_encryptor_unittest.cc',
168             'test/run_all_unittests.cc',
169             'translate/core/browser/language_state_unittest.cc',
170             'translate/core/browser/translate_browser_metrics_unittest.cc',
171             'translate/core/browser/translate_prefs_unittest.cc',
172             'translate/core/browser/translate_script_unittest.cc',
173             'translate/core/common/translate_metrics_unittest.cc',
174             'translate/core/common/translate_util_unittest.cc',
175             'translate/core/language_detection/language_detection_util_unittest.cc',
176             'url_matcher/regex_set_matcher_unittest.cc',
177             'url_matcher/string_pattern_unittest.cc',
178             'url_matcher/substring_set_matcher_unittest.cc',
179             'url_matcher/url_matcher_factory_unittest.cc',
180             'url_matcher/url_matcher_unittest.cc',
181             'variations/active_field_trials_unittest.cc',
182             'variations/caching_permuted_entropy_provider_unittest.cc',
183             'variations/entropy_provider_unittest.cc',
184             'variations/metrics_util_unittest.cc',
185             'variations/study_filtering_unittest.cc',
186             'variations/variations_associated_data_unittest.cc',
187             'variations/variations_seed_processor_unittest.cc',
188             'variations/variations_seed_simulator_unittest.cc',
189             'visitedlink/test/visitedlink_unittest.cc',
190             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
191           ],
192           'include_dirs': [
193             '..',
194           ],
195           'dependencies': [
196             '../base/base.gyp:base_prefs_test_support',
197             '../base/base.gyp:test_support_base',
198             # TODO(blundell): Eliminate this dependency by having
199             # components_unittests have its own pakfile. crbug.com/348563
200             '../chrome/chrome_resources.gyp:packed_extra_resources',
201             # TODO(blundell): Eliminate the need for this dependency in code
202             # that iOS shares. crbug.com/325243
203             '../content/content_shell_and_tests.gyp:test_support_content',
204             '../sync/sync.gyp:sync',
205             '../sync/sync.gyp:test_support_sync_api',
206             '../testing/gmock.gyp:gmock',
207             '../testing/gtest.gyp:gtest',
208             '../ui/base/ui_base.gyp:ui_base',
209             '../ui/gfx/gfx.gyp:gfx',
211             'components_resources.gyp:components_resources',
213             # Dependencies of auto_login_parser
214             'components.gyp:auto_login_parser',
216             # Dependencies of autofill
217             'components.gyp:autofill_core_browser',
218             'components.gyp:autofill_core_common',
219             'components.gyp:autofill_core_test_support',
220             'components_strings.gyp:components_strings',
221             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
223             # Dependencies of bookmarks
224             'components.gyp:bookmarks_browser',
225             'components.gyp:bookmarks_test_support',
227             # Dependencies of captive_portal
228             'components.gyp:captive_portal_test_support',
229             '../net/net.gyp:net_test_support',
231             # Dependencies of cloud_devices
232             'components.gyp:cloud_devices_common',
234             # Dependencies of data_reduction_proxy
235             'components.gyp:data_reduction_proxy_browser',
236             'components.gyp:data_reduction_proxy_common',
237             'components.gyp:data_reduction_proxy_test_support',
239             # Dependencies of dom_distiller
240             'components.gyp:distilled_page_proto',
241             'components.gyp:dom_distiller_core',
242             'components.gyp:dom_distiller_test_support',
244             # Dependencies of domain_reliability
245             'components.gyp:domain_reliability',
247             # Dependencies of enhanced_bookmarks
248             'components.gyp:enhanced_bookmarks',
249             'components.gyp:enhanced_bookmarks_test_support',
251             # Dependencies of feedback
252             'components.gyp:feedback_component',
253             
254             # Dependencies of gcm
255             'components.gyp:gcm_driver',
256             'components.gyp:gcm_driver_test_support',
258             # Dependencies of invalidation
259             'components.gyp:invalidation',
260             'components.gyp:invalidation_test_support',
262             # Dependencies of json_schema
263             'components.gyp:json_schema',
265             # Dependencies of keyed_service
266             'components.gyp:keyed_service_core',
268             # Dependencies of language_usage_metrics
269             'components.gyp:language_usage_metrics',
271             # Dependencies of metrics
272             'components.gyp:metrics',
273             'components.gyp:metrics_net',
275             # Dependencies of network_time
276             'components.gyp:network_time',
278             # Dependencies of os_crypt
279             'components.gyp:os_crypt',
281             # Dependencies of password_manager
282             'components.gyp:password_manager_core_browser',
283             'components.gyp:password_manager_core_browser_test_support',
285             # Dependencies of precache/core
286             'components.gyp:password_manager_core_browser',
287             'components.gyp:precache_core',
289             # Dependencies of query_parser
290             'components.gyp:query_parser',
292             # Dependencies of rappor
293             'components.gyp:rappor',
295             # Dependencies of search_provider_logos
296             'components.gyp:search_provider_logos',
298             # Dependencies of signin
299             'components.gyp:signin_core_browser',
300             'components.gyp:signin_core_browser_test_support',
301             '../google_apis/google_apis.gyp:google_apis_test_support',
303             # Dependencies of sync_driver
304             'components.gyp:sync_driver_test_support',
306             # Dependencies of translate.
307             'components.gyp:translate_core_browser',
308             'components.gyp:translate_core_common',
309             'components.gyp:translate_core_language_detection',
311             # Dependencies of variations
312             'components.gyp:variations',
313           ],
314           'conditions': [
315             ['toolkit_views == 1', {
316               'sources': [
317                 'bookmarks/browser/bookmark_node_data_unittest.cc',
318               ],
319             }],
320             ['OS != "ios"', {
321               'sources': [
322                 'autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc',
323                 'dom_distiller/content/dom_distiller_viewer_source_unittest.cc',
324                 'usb_service/usb_context_unittest.cc',
325               ],
326               'dependencies': [
327                 # Dependencies of autofill
328                 'components.gyp:autofill_content_browser',
329                 'components.gyp:autofill_content_renderer',
330                 'components.gyp:autofill_content_test_support',
332                 # Dependencies of dom_distiller
333                 'components.gyp:dom_distiller_content',
335                 # Dependencies of
336                 # intercept_navigation_resource_throttle_unittest.cc
337                 '../skia/skia.gyp:skia',
338                 'components.gyp:navigation_interception',
340                 # Dependencies of keyed_service
341                 'components.gyp:keyed_service_content',
343                 # Dependencies of precache/content
344                 'components.gyp:precache_content',
346                 # Dependencies of sessions
347                 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
348                 'components.gyp:sessions',
349                 'components.gyp:sessions_test_support',
351                 # Dependencies of storage monitor
352                 'components.gyp:storage_monitor',
353                 'components.gyp:storage_monitor_test_support',
355                 # Dependencies of url_matcher.
356                 'components.gyp:url_matcher',
358                 # Dependencies of usb_service tests.
359                 'components.gyp:usb_service',
360                 '../third_party/libusb/libusb.gyp:libusb',
362                 # Dependencies of visitedlink
363                 'components.gyp:visitedlink_browser',
364                 'components.gyp:visitedlink_renderer',
365                 '../content/content_resources.gyp:content_resources',
367                 # Dependencies of web_modal
368                 'components.gyp:web_modal',
369                 'components.gyp:web_modal_test_support',
370               ],
371             }, { # 'OS == "ios"'
372               'includes': ['../chrome/chrome_ios_bundle_resources.gypi'],
373               'sources/': [
374                 ['exclude', '\\.cc$'],
375                 ['exclude', '\\.mm$'],
376                 ['include', '^test/run_all_unittests\\.cc$'],
377                 ['include', '^auto_login_parser/'],
378                 ['include', '^autofill/core/'],
379                 ['include', '^bookmarks/'],
380                 ['include', '^data_reduction_proxy/'],
381                 ['include', '^dom_distiller/'],
382                 ['include', '^gcm_driver/'],
383                 ['include', '^invalidation/'],
384                 ['include', '^json_schema/'],
385                 ['include', '^keyed_service/core/'],
386                 ['include', '^language_usage_metrics/'],
387                 ['include', '^metrics/'],
388                 ['include', '^network_time/'],
389                 ['include', '^password_manager/'],
390                 ['include', '^precache/core/'],
391                 ['include', '^search_provider_logos/'],
392                 ['include', '^signin/'],
393                 ['include', '^sync_driver/'],
394                 ['include', '^translate/'],
395                 ['include', '^variations/'],
396               ],
397               'dependencies': [
398                 # Dependencies of signin
399                 'components.gyp:signin_ios_browser',
400                 '../ios/ios_tests.gyp:test_support_ios',
401               ],
402               'actions': [
403                 {
404                   'action_name': 'copy_test_data',
405                   'variables': {
406                     'test_data_files': [
407                       'test/data',
408                     ],
409                     'test_data_prefix': 'components',
410                   },
411                   'includes': [ '../build/copy_test_data_ios.gypi' ],
412                 },
413               ],
414               'conditions': [
415                 ['configuration_policy==1', {
416                   'sources/': [
417                     ['include', '^policy/'],
418                   ],
419                 }],
420               ],
421             }],
422             ['disable_nacl==0', {
423               'sources': [
424                 'nacl/browser/nacl_file_host_unittest.cc',
425                 'nacl/browser/nacl_process_host_unittest.cc',
426                 'nacl/browser/nacl_validation_cache_unittest.cc',
427                 'nacl/browser/pnacl_host_unittest.cc',
428                 'nacl/browser/pnacl_translation_cache_unittest.cc',
429                 'nacl/browser/test_nacl_browser_delegate.cc',
430                 'nacl/zygote/nacl_fork_delegate_linux_unittest.cc',
431               ],
432               'dependencies': [
433                 'nacl.gyp:nacl_browser',
434                 'nacl.gyp:nacl_common',
435               ],
436             }],
437             ['OS == "mac"', {
438               'link_settings': {
439                 'libraries': [
440                   '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
441                   '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
442                   '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework',
443                 ],
444               },
445               'sources!': [
446                 'password_manager/core/browser/password_store_default_unittest.cc',
447               ],
448             }],
449             ['OS == "android"', {
450               'sources!': [
451                 'gcm_driver/gcm_driver_desktop_unittest.cc',
452                 'feedback/feedback_uploader_unittest.cc',
453                 'signin/core/browser/mutable_profile_oauth2_token_service_unittest.cc',
454                 'storage_monitor/media_storage_util_unittest.cc',
455                 'storage_monitor/storage_info_unittest.cc',
456                 'storage_monitor/storage_monitor_unittest.cc',
457                 'usb_service/usb_context_unittest.cc',
458                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
459               ],
460               'dependencies': [
461                 '../testing/android/native_test.gyp:native_test_native_code',
462               ],
463               'dependencies!': [
464                 'components.gyp:feedback_component',
465                 'components.gyp:storage_monitor',
466                 'components.gyp:storage_monitor_test_support',
467                 'components.gyp:usb_service',
468                 'components.gyp:web_modal',
469                 'components.gyp:web_modal_test_support',
470                 '../third_party/libusb/libusb.gyp:libusb',
471               ],
472             }],
473             ['OS != "android"', {
474               'sources': [
475                 'invalidation/fake_invalidator_unittest.cc',
476                 'invalidation/gcm_network_channel_unittest.cc',
477                 'invalidation/invalidation_notifier_unittest.cc',
478                 'invalidation/invalidator_registrar_unittest.cc',
479                 'invalidation/non_blocking_invalidator_unittest.cc',
480                 'invalidation/p2p_invalidator_unittest.cc',
481                 'invalidation/push_client_channel_unittest.cc',
482                 'invalidation/sync_invalidation_listener_unittest.cc',
483                 'invalidation/sync_system_resources_unittest.cc',
484               ],
485             }],
486             ['chromeos==1', {
487               'sources': [
488                 'metrics/chromeos/serialization_utils_unittest.cc',
489               ],
490               'sources!': [
491                 'storage_monitor/storage_monitor_linux_unittest.cc',
492               ],
493               'dependencies': [
494                 '../chromeos/chromeos.gyp:chromeos_test_support',
495                 'components.gyp:metrics_chromeos',
496               ],
497             }],
498             ['OS=="linux"', {
499               'dependencies': [
500                 '../dbus/dbus.gyp:dbus',
501                 '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
502               ],
503             }],
504             ['OS=="linux" and use_udev==0', {
505               'dependencies!': [
506                 '../third_party/libusb/libusb.gyp:libusb',
507                 'components.gyp:storage_monitor',
508                 'components.gyp:storage_monitor_test_support',
509               ],
510               'sources/': [
511                 ['exclude', '^storage_monitor/'],
512                 ['exclude', '^usb_service/'],
513               ],
514             }],
515             ['OS=="win" and win_use_allocator_shim==1', {
516               'dependencies': [
517                 '../base/allocator/allocator.gyp:allocator',
518               ],
519             }],
520             ['OS=="linux" and component=="shared_library" and use_allocator!="none"', {
521             'dependencies': [
522                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
523             ],
524             'link_settings': {
525                 'ldflags': ['-rdynamic'],
526             },
527             }],
528             ['configuration_policy==1', {
529               'dependencies': [
530                 'components.gyp:policy_component',
531                 'components.gyp:policy_component_test_support',
532                 'components.gyp:policy_test_support',
533               ],
534               'sources': [
535                 'policy/core/browser/autofill_policy_handler_unittest.cc',
536                 'policy/core/browser/browser_policy_connector_unittest.cc',
537                 'policy/core/browser/configuration_policy_handler_unittest.cc',
538                 'policy/core/browser/configuration_policy_pref_store_unittest.cc',
539                 'policy/core/browser/managed_bookmarks_tracker_unittest.cc',
540                 'policy/core/browser/url_blacklist_policy_handler_unittest.cc',
541                 'policy/core/common/async_policy_provider_unittest.cc',
542                 'policy/core/common/cloud/cloud_policy_client_unittest.cc',
543                 'policy/core/common/cloud/cloud_policy_core_unittest.cc',
544                 'policy/core/common/cloud/cloud_policy_manager_unittest.cc',
545                 'policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc',
546                 'policy/core/common/cloud/cloud_policy_service_unittest.cc',
547                 'policy/core/common/cloud/cloud_policy_validator_unittest.cc',
548                 'policy/core/common/cloud/component_cloud_policy_service_unittest.cc',
549                 'policy/core/common/cloud/component_cloud_policy_store_unittest.cc',
550                 'policy/core/common/cloud/component_cloud_policy_updater_unittest.cc',
551                 'policy/core/common/cloud/device_management_service_unittest.cc',
552                 'policy/core/common/cloud/external_policy_data_fetcher_unittest.cc',
553                 'policy/core/common/cloud/external_policy_data_updater_unittest.cc',
554                 'policy/core/common/cloud/policy_header_io_helper_unittest.cc',
555                 'policy/core/common/cloud/policy_header_service_unittest.cc',
556                 'policy/core/common/cloud/rate_limiter_unittest.cc',
557                 'policy/core/common/cloud/resource_cache_unittest.cc',
558                 'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
559                 'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
560                 'policy/core/common/cloud/user_info_fetcher_unittest.cc',
561                 'policy/core/common/config_dir_policy_loader_unittest.cc',
562                 'policy/core/common/forwarding_policy_provider_unittest.cc',
563                 'policy/core/common/generate_policy_source_unittest.cc',
564                 'policy/core/common/policy_bundle_unittest.cc',
565                 'policy/core/common/policy_loader_ios_unittest.mm',
566                 'policy/core/common/policy_loader_mac_unittest.cc',
567                 'policy/core/common/policy_loader_win_unittest.cc',
568                 'policy/core/common/policy_map_unittest.cc',
569                 'policy/core/common/policy_provider_android_unittest.cc',
570                 'policy/core/common/policy_service_impl_unittest.cc',
571                 'policy/core/common/policy_statistics_collector_unittest.cc',
572                 'policy/core/common/preg_parser_win_unittest.cc',
573                 'policy/core/common/registry_dict_win_unittest.cc',
574                 'policy/core/common/schema_map_unittest.cc',
575                 'policy/core/common/schema_registry_unittest.cc',
576                 'policy/core/common/schema_unittest.cc',
577               ],
578               'conditions': [
579                 ['OS=="android"', {
580                   'sources/': [
581                     ['exclude', '^policy/core/common/async_policy_provider_unittest\\.cc'],
582                   ],
583                 }],
584                 ['OS=="android" or OS=="ios"', {
585                   # Note: 'sources!' is processed before any 'sources/', so the
586                   # ['include', '^policy/'] on iOS above will include all of the
587                   # policy source files again. Using 'source/' here too will get
588                   # these files excluded as expected.
589                   'sources/': [
590                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_service_unittest\\.cc'],
591                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_store_unittest\\.cc'],
592                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_updater_unittest\\.cc'],
593                     ['exclude', '^policy/core/common/cloud/external_policy_data_fetcher_unittest\\.cc'],
594                     ['exclude', '^policy/core/common/cloud/external_policy_data_updater_unittest\\.cc'],
595                     ['exclude', '^policy/core/common/cloud/resource_cache_unittest\\.cc'],
596                     ['exclude', '^policy/core/common/config_dir_policy_loader_unittest\\.cc'],
597                   ],
598                 }],
599                 ['chromeos==1', {
600                   'sources': [
601                     'policy/core/common/proxy_policy_provider_unittest.cc',
602                   ],
603                   'sources!': [
604                     'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
605                     'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
606                   ],
607                 }],
608                 ['OS=="ios" or OS=="mac"', {
609                   'sources': [
610                     'policy/core/common/mac_util_unittest.cc',
611                   ],
612                 }],
613               ],
614             }],
615           ],
616           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
617           'msvs_disabled_warnings': [4267, ],
618         },
619       ],
620     }],
621     ['OS != "ios" and android_webview_build == 0', {
622       'targets': [
623         {
624           'target_name': 'components_perftests',
625           'type': '<(gtest_target_type)',
626           'dependencies': [
627             '../base/base.gyp:base',
628             '../base/base.gyp:test_support_perf',
629             '../content/content_shell_and_tests.gyp:test_support_content',
630             '../testing/gtest.gyp:gtest',
631             'components.gyp:visitedlink_browser',
632           ],
633          'include_dirs': [
634            '..',
635          ],
636          'sources': [
637            'visitedlink/test/visitedlink_perftest.cc',
638          ],
639          'conditions': [
640            ['OS == "android"', {
641              'dependencies': [
642                '../testing/android/native_test.gyp:native_test_native_code',
643              ],
644            }],
645          ],
646          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
647          'msvs_disabled_warnings': [ 4267, ],
648         },
649       ],
650       'conditions': [
651         ['OS == "android"', {
652           'targets': [
653             {
654               'target_name': 'components_unittests_apk',
655               'type': 'none',
656               'dependencies': [
657                 'components_unittests',
658               ],
659               'variables': {
660                 'test_suite_name': 'components_unittests',
661               },
662               'includes': [ '../build/apk_test.gypi' ],
663             },
664           ],
665         }],
666       ],
667     }],
668     ['OS!="ios"', {
669       'targets': [
670         {
671           'target_name': 'components_browsertests',
672           'type': '<(gtest_target_type)',
673           'defines!': ['CONTENT_IMPLEMENTATION'],
674           'dependencies': [
675             'components.gyp:autofill_content_browser',
676             'components.gyp:dom_distiller_content',
677             'components.gyp:dom_distiller_core',
678             'components_resources.gyp:components_resources',
679             '../content/content.gyp:content_common',
680             '../content/content.gyp:content_gpu',
681             '../content/content.gyp:content_plugin',
682             '../content/content.gyp:content_renderer',
683             '../content/content_resources.gyp:content_resources',
684             '../content/content_shell_and_tests.gyp:content_browser_test_support',
685             '../content/content_shell_and_tests.gyp:content_shell_lib',
686             '../content/content_shell_and_tests.gyp:content_shell_pak',
687             '../content/content_shell_and_tests.gyp:test_support_content',
688             '../skia/skia.gyp:skia',
689             '../testing/gmock.gyp:gmock',
690             '../testing/gtest.gyp:gtest',
691           ],
692           'include_dirs': [
693             '..',
694           ],
695           'defines': [
696             'HAS_OUT_OF_PROC_TEST_RUNNER',
697           ],
698           'sources': [
699             'autofill/content/browser/risk/fingerprint_browsertest.cc',
700             'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
701           ],
702           'actions': [
703             {
704               'action_name': 'repack_components_pack',
705               'variables': {
706                 'pak_inputs': [
707                   '<(SHARED_INTERMEDIATE_DIR)/components/component_resources.pak',
708                   '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_strings_en-US.pak',
709                 ],
710                 'pak_output': '<(PRODUCT_DIR)/components_resources.pak',
711               },
712               'includes': [ '../build/repack_action.gypi' ],
713             },
714           ],
715           'conditions': [
716             ['OS == "android"', {
717               'sources!': [
718                 'autofill/content/browser/risk/fingerprint_browsertest.cc',
719               ],
720             }],
721             ['OS == "linux"', {
722               'sources': [
723                   # content_extractor is a standalone content extraction tool built as
724                   # a MANUAL component_browsertest.
725                   'dom_distiller/standalone/content_extractor.cc',
726                 ],
727             }],
728             ['OS=="win"', {
729               'resource_include_dirs': [
730                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
731               ],
732               'sources': [
733                 '../content/shell/app/resource.h',
734                 '../content/shell/app/shell.rc',
735                 # TODO:  It would be nice to have these pulled in
736                 # automatically from direct_dependent_settings in
737                 # their various targets (net.gyp:net_resources, etc.),
738                 # but that causes errors in other targets when
739                 # resulting .res files get referenced multiple times.
740                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
741                 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
742                 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
743               ],
744               'dependencies': [
745                 '<(DEPTH)/net/net.gyp:net_resources',
746                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
747                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
748                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
749                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
750               ],
751               'configurations': {
752                 'Debug_Base': {
753                   'msvs_settings': {
754                     'VCLinkerTool': {
755                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
756                     },
757                   },
758                 },
759               },
760               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
761               'msvs_disabled_warnings': [ 4267, ],
762             }],
763             ['OS=="win" and win_use_allocator_shim==1', {
764               'dependencies': [
765                 '../base/allocator/allocator.gyp:allocator',
766               ],
767             }],
768           ],
769         },
770       ],
771     }],
772   ],