Temporarily re-enabling SizeAfterPrefChange test with traces (this time for Linux...
[chromium-blink-merge.git] / components / components_tests.gyp
blob56dd758db26c4a7a06a91739e11b5f1b6b77949a
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/distiller_unittest.cc',
82             'dom_distiller/core/distiller_url_fetcher_unittest.cc',
83             'dom_distiller/core/dom_distiller_database_unittest.cc',
84             'dom_distiller/core/dom_distiller_model_unittest.cc',
85             'dom_distiller/core/dom_distiller_service_unittest.cc',
86             'dom_distiller/core/dom_distiller_store_unittest.cc',
87             'dom_distiller/core/task_tracker_unittest.cc',
88             'dom_distiller/core/url_utils_unittest.cc',
89             'dom_distiller/core/viewer_unittest.cc',
90             'domain_reliability/config_unittest.cc',
91             'domain_reliability/context_unittest.cc',
92             'domain_reliability/dispatcher_unittest.cc',
93             'domain_reliability/monitor_unittest.cc',
94             'domain_reliability/scheduler_unittest.cc',
95             'domain_reliability/test_util.cc',
96             'domain_reliability/test_util.h',
97             'domain_reliability/uploader_unittest.cc',
98             'domain_reliability/util_unittest.cc',
99             'enhanced_bookmarks/image_store_unittest.cc',
100             'feedback/feedback_uploader_unittest.cc',
101             'gcm_driver/gcm_driver_desktop_unittest.cc',
102             'invalidation/invalidation_logger_unittest.cc',
103             'json_schema/json_schema_validator_unittest.cc',
104             'json_schema/json_schema_validator_unittest_base.cc',
105             'json_schema/json_schema_validator_unittest_base.h',
106             'keyed_service/content/browser_context_dependency_manager_unittest.cc',
107             'keyed_service/core/dependency_graph_unittest.cc',
108             'language_usage_metrics/language_usage_metrics_unittest.cc',
109             'metrics/machine_id_provider_win_unittest.cc',
110             'metrics/metrics_hashes_unittest.cc',
111             'metrics/metrics_log_base_unittest.cc',
112             'metrics/metrics_log_manager_unittest.cc',
113             'metrics/metrics_reporting_scheduler_unittest.cc',
114             'metrics/net/compression_utils_unittest.cc',
115             'metrics/persisted_logs_unittest.cc',
116             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
117             'os_crypt/ie7_password_win_unittest.cc',
118             'os_crypt/keychain_password_mac_unittest.mm',
119             'os_crypt/os_crypt_unittest.cc',
120             'password_manager/core/browser/browser_save_password_progress_logger_unittest.cc',
121             'password_manager/core/browser/log_router_unittest.cc',
122             'password_manager/core/browser/login_database_unittest.cc',
123             'password_manager/core/browser/password_autofill_manager_unittest.cc',
124             'password_manager/core/browser/password_form_manager_unittest.cc',
125             'password_manager/core/browser/password_generation_manager_unittest.cc',
126             'password_manager/core/browser/password_manager_unittest.cc',
127             'password_manager/core/browser/password_store_default_unittest.cc',
128             'password_manager/core/browser/password_store_unittest.cc',
129             'password_manager/core/browser/password_syncable_service_unittest.cc',
130             'password_manager/core/browser/psl_matching_helper_unittest.cc',
131             'precache/content/precache_manager_unittest.cc',
132             'precache/core/precache_database_unittest.cc',
133             'precache/core/precache_fetcher_unittest.cc',
134             'precache/core/precache_url_table_unittest.cc',
135             'query_parser/query_parser_unittest.cc',
136             'query_parser/snippet_unittest.cc',
137             'rappor/bloom_filter_unittest.cc',
138             'rappor/byte_vector_utils_unittest.cc',
139             'rappor/log_uploader_unittest.cc',
140             'rappor/rappor_metric_unittest.cc',
141             'rappor/rappor_service_unittest.cc',
142             'search_provider_logos/logo_cache_unittest.cc',
143             'search_provider_logos/logo_tracker_unittest.cc',
144             'sessions/serialized_navigation_entry_unittest.cc',
145             'signin/core/browser/mutable_profile_oauth2_token_service_unittest.cc',
146             'signin/core/browser/signin_error_controller_unittest.cc',
147             'signin/core/browser/webdata/token_service_table_unittest.cc',
148             'signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm',
149             'storage_monitor/image_capture_device_manager_unittest.mm',
150             'storage_monitor/media_storage_util_unittest.cc',
151             'storage_monitor/media_transfer_protocol_device_observer_linux_unittest.cc',
152             'storage_monitor/storage_info_unittest.cc',
153             'storage_monitor/storage_monitor_chromeos_unittest.cc',
154             'storage_monitor/storage_monitor_linux_unittest.cc',
155             'storage_monitor/storage_monitor_mac_unittest.mm',
156             'storage_monitor/storage_monitor_unittest.cc',
157             'storage_monitor/storage_monitor_win_unittest.cc',
158             'sync_driver/data_type_manager_impl_unittest.cc',
159             'sync_driver/generic_change_processor_unittest.cc',
160             'sync_driver/model_association_manager_unittest.cc',
161             'sync_driver/non_blocking_data_type_controller_unittest.cc',
162             'sync_driver/shared_change_processor_unittest.cc',
163             'sync_driver/sync_prefs_unittest.cc',
164             'sync_driver/system_encryptor_unittest.cc',
165             'test/run_all_unittests.cc',
166             'translate/core/browser/language_state_unittest.cc',
167             'translate/core/browser/translate_browser_metrics_unittest.cc',
168             'translate/core/browser/translate_prefs_unittest.cc',
169             'translate/core/browser/translate_script_unittest.cc',
170             'translate/core/common/translate_metrics_unittest.cc',
171             'translate/core/common/translate_util_unittest.cc',
172             'translate/core/language_detection/language_detection_util_unittest.cc',
173             'url_matcher/regex_set_matcher_unittest.cc',
174             'url_matcher/string_pattern_unittest.cc',
175             'url_matcher/substring_set_matcher_unittest.cc',
176             'url_matcher/url_matcher_factory_unittest.cc',
177             'url_matcher/url_matcher_unittest.cc',
178             'variations/active_field_trials_unittest.cc',
179             'variations/caching_permuted_entropy_provider_unittest.cc',
180             'variations/entropy_provider_unittest.cc',
181             'variations/metrics_util_unittest.cc',
182             'variations/study_filtering_unittest.cc',
183             'variations/variations_associated_data_unittest.cc',
184             'variations/variations_seed_processor_unittest.cc',
185             'variations/variations_seed_simulator_unittest.cc',
186             'visitedlink/test/visitedlink_unittest.cc',
187             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
188           ],
189           'include_dirs': [
190             '..',
191           ],
192           'dependencies': [
193             '../base/base.gyp:base_prefs_test_support',
194             '../base/base.gyp:test_support_base',
195             # TODO(blundell): Eliminate this dependency by having
196             # components_unittests have its own pakfile. crbug.com/348563
197             '../chrome/chrome_resources.gyp:packed_extra_resources',
198             # TODO(blundell): Eliminate the need for this dependency in code
199             # that iOS shares. crbug.com/325243
200             '../content/content_shell_and_tests.gyp:test_support_content',
201             '../sync/sync.gyp:sync',
202             '../sync/sync.gyp:test_support_sync_api',
203             '../testing/gmock.gyp:gmock',
204             '../testing/gtest.gyp:gtest',
205             '../ui/base/ui_base.gyp:ui_base',
206             '../ui/gfx/gfx.gyp:gfx',
208             'components_resources.gyp:components_resources',
210             # Dependencies of auto_login_parser
211             'components.gyp:auto_login_parser',
213             # Dependencies of autofill
214             'components.gyp:autofill_core_browser',
215             'components.gyp:autofill_core_common',
216             'components.gyp:autofill_core_test_support',
217             'components_strings.gyp:components_strings',
218             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
220             # Dependencies of bookmarks
221             'components.gyp:bookmarks_browser',
222             'components.gyp:bookmarks_test_support',
224             # Dependencies of captive_portal
225             'components.gyp:captive_portal_test_support',
226             '../net/net.gyp:net_test_support',
228             # Dependencies of cloud_devices
229             'components.gyp:cloud_devices_common',
231             # Dependencies of data_reduction_proxy
232             'components.gyp:data_reduction_proxy_browser',
233             'components.gyp:data_reduction_proxy_common',
234             'components.gyp:data_reduction_proxy_test_support',
236             # Dependencies of dom_distiller
237             'components.gyp:distilled_page_proto',
238             'components.gyp:dom_distiller_core',
239             'components.gyp:dom_distiller_test_support',
241             # Dependencies of domain_reliability
242             'components.gyp:domain_reliability',
244             # Dependencies of enhanced_bookmarks
245             'components.gyp:enhanced_bookmarks',
246             'components.gyp:enhanced_bookmarks_test_support',
248             # Dependencies of feedback
249             'components.gyp:feedback_component',
250             
251             # Dependencies of gcm
252             'components.gyp:gcm_driver',
253             'components.gyp:gcm_driver_test_support',
255             # Dependencies of invalidation
256             'components.gyp:invalidation',
258             # Dependencies of json_schema
259             'components.gyp:json_schema',
261             # Dependencies of keyed_service
262             'components.gyp:keyed_service_core',
264             # Dependencies of language_usage_metrics
265             'components.gyp:language_usage_metrics',
267             # Dependencies of metrics
268             'components.gyp:metrics',
269             'components.gyp:metrics_net',
271             # Dependencies of os_crypt
272             'components.gyp:os_crypt',
274             # Dependencies of password_manager
275             'components.gyp:password_manager_core_browser',
276             'components.gyp:password_manager_core_browser_test_support',
278             # Dependencies of precache/core
279             'components.gyp:password_manager_core_browser',
280             'components.gyp:precache_core',
282             # Dependencies of query_parser
283             'components.gyp:query_parser',
285             # Dependencies of rappor
286             'components.gyp:rappor',
288             # Dependencies of search_provider_logos
289             'components.gyp:search_provider_logos',
291             # Dependencies of signin
292             'components.gyp:signin_core_browser',
293             'components.gyp:signin_core_browser_test_support',
294             '../google_apis/google_apis.gyp:google_apis_test_support',
296             # Dependencies of sync_driver
297             'components.gyp:sync_driver_test_support',
299             # Dependencies of translate.
300             'components.gyp:translate_core_browser',
301             'components.gyp:translate_core_common',
302             'components.gyp:translate_core_language_detection',
304             # Dependencies of variations
305             'components.gyp:variations',
306           ],
307           'conditions': [
308             ['toolkit_views == 1', {
309               'sources': [
310                 'bookmarks/browser/bookmark_node_data_unittest.cc',
311               ],
312             }],
313             ['OS != "ios"', {
314               'sources': [
315                 'autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc',
316                 'dom_distiller/content/dom_distiller_viewer_source_unittest.cc',
317                 'usb_service/usb_context_unittest.cc',
318               ],
319               'dependencies': [
320                 # Dependencies of autofill
321                 'components.gyp:autofill_content_browser',
322                 'components.gyp:autofill_content_renderer',
323                 'components.gyp:autofill_content_test_support',
325                 # Dependencies of dom_distiller
326                 'components.gyp:dom_distiller_content',
328                 # Dependencies of
329                 # intercept_navigation_resource_throttle_unittest.cc
330                 '../skia/skia.gyp:skia',
331                 'components.gyp:navigation_interception',
333                 # Dependencies of keyed_service
334                 'components.gyp:keyed_service_content',
336                 # Dependencies of precache/content
337                 'components.gyp:precache_content',
339                 # Dependencies of sessions
340                 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
341                 'components.gyp:sessions',
342                 'components.gyp:sessions_test_support',
344                 # Dependencies of storage monitor
345                 'components.gyp:storage_monitor',
346                 'components.gyp:storage_monitor_test_support',
348                 # Dependencies of url_matcher.
349                 'components.gyp:url_matcher',
351                 # Dependencies of usb_service tests.
352                 'components.gyp:usb_service',
353                 '../third_party/libusb/libusb.gyp:libusb',
355                 # Dependencies of visitedlink
356                 'components.gyp:visitedlink_browser',
357                 'components.gyp:visitedlink_renderer',
358                 '../content/content_resources.gyp:content_resources',
360                 # Dependencies of web_modal
361                 'components.gyp:web_modal',
362                 'components.gyp:web_modal_test_support',
363               ],
364             }, { # 'OS == "ios"'
365               'includes': ['../chrome/chrome_ios_bundle_resources.gypi'],
366               'sources/': [
367                 ['exclude', '\\.cc$'],
368                 ['exclude', '\\.mm$'],
369                 ['include', '^test/run_all_unittests\\.cc$'],
370                 ['include', '^auto_login_parser/'],
371                 ['include', '^autofill/core/'],
372                 ['include', '^bookmarks/'],
373                 ['include', '^data_reduction_proxy/'],
374                 ['include', '^dom_distiller/'],
375                 ['include', '^gcm_driver/'],
376                 ['include', '^invalidation/'],
377                 ['include', '^json_schema/'],
378                 ['include', '^keyed_service/core/'],
379                 ['include', '^language_usage_metrics/'],
380                 ['include', '^password_manager/'],
381                 ['include', '^precache/core/'],
382                 ['include', '^search_provider_logos/'],
383                 ['include', '^signin/'],
384                 ['include', '^sync_driver/'],
385                 ['include', '^translate/'],
386                 ['include', '^variations/'],
387               ],
388               'dependencies': [
389                 # Dependencies of signin
390                 'components.gyp:signin_ios_browser',
391                 '../ios/ios_tests.gyp:test_support_ios',
392               ],
393               'actions': [
394                 {
395                   'action_name': 'copy_test_data',
396                   'variables': {
397                     'test_data_files': [
398                       'test/data',
399                     ],
400                     'test_data_prefix': 'components',
401                   },
402                   'includes': [ '../build/copy_test_data_ios.gypi' ],
403                 },
404               ],
405               'conditions': [
406                 ['configuration_policy==1', {
407                   'sources/': [
408                     ['include', '^policy/'],
409                   ],
410                 }],
411               ],
412             }],
413             ['disable_nacl==0', {
414               'sources': [
415                 'nacl/browser/nacl_file_host_unittest.cc',
416                 'nacl/browser/nacl_process_host_unittest.cc',
417                 'nacl/browser/nacl_validation_cache_unittest.cc',
418                 'nacl/browser/pnacl_host_unittest.cc',
419                 'nacl/browser/pnacl_translation_cache_unittest.cc',
420                 'nacl/browser/test_nacl_browser_delegate.cc',
421               ],
422               'dependencies': [
423                 'nacl.gyp:nacl_browser',
424                 'nacl.gyp:nacl_common',
425               ],
426             }],
427             ['OS == "mac"', {
428               'link_settings': {
429                 'libraries': [
430                   '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
431                   '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
432                   '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework',
433                 ],
434               },
435               'sources!': [
436                 'password_manager/core/browser/password_store_default_unittest.cc',
437               ],
438             }],
439             ['OS == "android"', {
440               'sources!': [
441                 'gcm_driver/gcm_driver_desktop_unittest.cc',
442                 'feedback/feedback_uploader_unittest.cc',
443                 'signin/core/browser/mutable_profile_oauth2_token_service_unittest.cc',
444                 'storage_monitor/media_storage_util_unittest.cc',
445                 'storage_monitor/storage_info_unittest.cc',
446                 'storage_monitor/storage_monitor_unittest.cc',
447                 'usb_service/usb_context_unittest.cc',
448                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
449               ],
450               'dependencies': [
451                 '../testing/android/native_test.gyp:native_test_native_code',
452               ],
453               'dependencies!': [
454                 'components.gyp:feedback_component',
455                 'components.gyp:storage_monitor',
456                 'components.gyp:storage_monitor_test_support',
457                 'components.gyp:usb_service',
458                 'components.gyp:web_modal',
459                 'components.gyp:web_modal_test_support',
460                 '../third_party/libusb/libusb.gyp:libusb',
461               ],
462             }],
463             ['chromeos==1', {
464               'sources': [
465                 'metrics/chromeos/serialization_utils_unittest.cc',
466               ],
467               'sources!': [
468                 'storage_monitor/storage_monitor_linux_unittest.cc',
469               ],
470               'dependencies': [
471                 '../chromeos/chromeos.gyp:chromeos_test_support',
472                 'components.gyp:metrics_chromeos',
473               ],
474             }],
475             ['OS=="linux"', {
476               'dependencies': [
477                 '../dbus/dbus.gyp:dbus',
478                 '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
479               ],
480             }],
481             ['OS=="win" and win_use_allocator_shim==1', {
482               'dependencies': [
483                 '../base/allocator/allocator.gyp:allocator',
484               ],
485             }],
486             ['OS=="linux" and component=="shared_library" and use_allocator!="none"', {
487             'dependencies': [
488                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
489             ],
490             'link_settings': {
491                 'ldflags': ['-rdynamic'],
492             },
493             }],
494             ['configuration_policy==1', {
495               'dependencies': [
496                 'components.gyp:policy_component',
497                 'components.gyp:policy_component_test_support',
498                 'components.gyp:policy_test_support',
499               ],
500               'sources': [
501                 'policy/core/browser/autofill_policy_handler_unittest.cc',
502                 'policy/core/browser/browser_policy_connector_unittest.cc',
503                 'policy/core/browser/configuration_policy_handler_unittest.cc',
504                 'policy/core/browser/configuration_policy_pref_store_unittest.cc',
505                 'policy/core/browser/url_blacklist_policy_handler_unittest.cc',
506                 'policy/core/common/async_policy_provider_unittest.cc',
507                 'policy/core/common/cloud/cloud_policy_client_unittest.cc',
508                 'policy/core/common/cloud/cloud_policy_core_unittest.cc',
509                 'policy/core/common/cloud/cloud_policy_manager_unittest.cc',
510                 'policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc',
511                 'policy/core/common/cloud/cloud_policy_service_unittest.cc',
512                 'policy/core/common/cloud/cloud_policy_validator_unittest.cc',
513                 'policy/core/common/cloud/component_cloud_policy_service_unittest.cc',
514                 'policy/core/common/cloud/component_cloud_policy_store_unittest.cc',
515                 'policy/core/common/cloud/component_cloud_policy_updater_unittest.cc',
516                 'policy/core/common/cloud/device_management_service_unittest.cc',
517                 'policy/core/common/cloud/external_policy_data_fetcher_unittest.cc',
518                 'policy/core/common/cloud/external_policy_data_updater_unittest.cc',
519                 'policy/core/common/cloud/policy_header_io_helper_unittest.cc',
520                 'policy/core/common/cloud/policy_header_service_unittest.cc',
521                 'policy/core/common/cloud/rate_limiter_unittest.cc',
522                 'policy/core/common/cloud/resource_cache_unittest.cc',
523                 'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
524                 'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
525                 'policy/core/common/cloud/user_info_fetcher_unittest.cc',
526                 'policy/core/common/config_dir_policy_loader_unittest.cc',
527                 'policy/core/common/forwarding_policy_provider_unittest.cc',
528                 'policy/core/common/generate_policy_source_unittest.cc',
529                 'policy/core/common/policy_bundle_unittest.cc',
530                 'policy/core/common/policy_loader_ios_unittest.mm',
531                 'policy/core/common/policy_loader_mac_unittest.cc',
532                 'policy/core/common/policy_loader_win_unittest.cc',
533                 'policy/core/common/policy_map_unittest.cc',
534                 'policy/core/common/policy_provider_android_unittest.cc',
535                 'policy/core/common/policy_service_impl_unittest.cc',
536                 'policy/core/common/policy_statistics_collector_unittest.cc',
537                 'policy/core/common/preg_parser_win_unittest.cc',
538                 'policy/core/common/registry_dict_win_unittest.cc',
539                 'policy/core/common/schema_map_unittest.cc',
540                 'policy/core/common/schema_registry_unittest.cc',
541                 'policy/core/common/schema_unittest.cc',
542               ],
543               'conditions': [
544                 ['OS=="android"', {
545                   'sources/': [
546                     ['exclude', '^policy/core/common/async_policy_provider_unittest\\.cc'],
547                   ],
548                 }],
549                 ['OS=="android" or OS=="ios"', {
550                   # Note: 'sources!' is processed before any 'sources/', so the
551                   # ['include', '^policy/'] on iOS above will include all of the
552                   # policy source files again. Using 'source/' here too will get
553                   # these files excluded as expected.
554                   'sources/': [
555                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_service_unittest\\.cc'],
556                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_store_unittest\\.cc'],
557                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_updater_unittest\\.cc'],
558                     ['exclude', '^policy/core/common/cloud/external_policy_data_fetcher_unittest\\.cc'],
559                     ['exclude', '^policy/core/common/cloud/external_policy_data_updater_unittest\\.cc'],
560                     ['exclude', '^policy/core/common/cloud/resource_cache_unittest\\.cc'],
561                     ['exclude', '^policy/core/common/config_dir_policy_loader_unittest\\.cc'],
562                   ],
563                 }],
564                 ['chromeos==1', {
565                   'sources': [
566                     'policy/core/common/proxy_policy_provider_unittest.cc',
567                   ],
568                   'sources!': [
569                     'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
570                     'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
571                   ],
572                 }],
573                 ['OS=="ios" or OS=="mac"', {
574                   'sources': [
575                     'policy/core/common/mac_util_unittest.cc',
576                   ],
577                 }],
578               ],
579             }],
580           ],
581           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
582           'msvs_disabled_warnings': [4267, ],
583         },
584       ],
585     }],
586     ['OS != "ios" and android_webview_build == 0', {
587       'targets': [
588         {
589           'target_name': 'components_perftests',
590           'type': '<(gtest_target_type)',
591           'dependencies': [
592             '../base/base.gyp:base',
593             '../base/base.gyp:test_support_perf',
594             '../content/content_shell_and_tests.gyp:test_support_content',
595             '../testing/gtest.gyp:gtest',
596             'components.gyp:visitedlink_browser',
597           ],
598          'include_dirs': [
599            '..',
600          ],
601          'sources': [
602            'visitedlink/test/visitedlink_perftest.cc',
603          ],
604          'conditions': [
605            ['OS == "android"', {
606              'dependencies': [
607                '../testing/android/native_test.gyp:native_test_native_code',
608              ],
609            }],
610          ],
611          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
612          'msvs_disabled_warnings': [ 4267, ],
613         },
614       ],
615       'conditions': [
616         ['OS == "android"', {
617           'targets': [
618             {
619               'target_name': 'components_unittests_apk',
620               'type': 'none',
621               'dependencies': [
622                 'components_unittests',
623               ],
624               'variables': {
625                 'test_suite_name': 'components_unittests',
626               },
627               'includes': [ '../build/apk_test.gypi' ],
628             },
629           ],
630         }],
631       ],
632     }],
633     ['OS!="ios"', {
634       'targets': [
635         {
636           'target_name': 'components_browsertests',
637           'type': '<(gtest_target_type)',
638           'defines!': ['CONTENT_IMPLEMENTATION'],
639           'dependencies': [
640             'components.gyp:autofill_content_browser',
641             'components.gyp:dom_distiller_content',
642             'components.gyp:dom_distiller_core',
643             'components_resources.gyp:components_resources',
644             '../content/content.gyp:content_common',
645             '../content/content.gyp:content_gpu',
646             '../content/content.gyp:content_plugin',
647             '../content/content.gyp:content_renderer',
648             '../content/content_resources.gyp:content_resources',
649             '../content/content_shell_and_tests.gyp:content_browser_test_support',
650             '../content/content_shell_and_tests.gyp:content_shell_lib',
651             '../content/content_shell_and_tests.gyp:content_shell_pak',
652             '../content/content_shell_and_tests.gyp:test_support_content',
653             '../skia/skia.gyp:skia',
654             '../testing/gmock.gyp:gmock',
655             '../testing/gtest.gyp:gtest',
656           ],
657           'include_dirs': [
658             '..',
659           ],
660           'defines': [
661             'HAS_OUT_OF_PROC_TEST_RUNNER',
662           ],
663           'sources': [
664             'autofill/content/browser/risk/fingerprint_browsertest.cc',
665             'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
666           ],
667           'actions': [
668             {
669               'action_name': 'repack_components_pack',
670               'variables': {
671                 'pak_inputs': [
672                   '<(SHARED_INTERMEDIATE_DIR)/components/component_resources.pak',
673                   '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_strings_en-US.pak',
674                 ],
675                 'pak_output': '<(PRODUCT_DIR)/components_resources.pak',
676               },
677               'includes': [ '../build/repack_action.gypi' ],
678             },
679           ],
680           'conditions': [
681             ['OS == "android"', {
682               'sources!': [
683                 'autofill/content/browser/risk/fingerprint_browsertest.cc',
684               ],
685             }],
686             ['OS == "linux"', {
687               'sources': [
688                   # content_extractor is a standalone content extraction tool built as
689                   # a MANUAL component_browsertest.
690                   'dom_distiller/standalone/content_extractor.cc',
691                 ],
692             }],
693             ['OS=="win"', {
694               'resource_include_dirs': [
695                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
696               ],
697               'sources': [
698                 '../content/shell/app/resource.h',
699                 '../content/shell/app/shell.rc',
700                 # TODO:  It would be nice to have these pulled in
701                 # automatically from direct_dependent_settings in
702                 # their various targets (net.gyp:net_resources, etc.),
703                 # but that causes errors in other targets when
704                 # resulting .res files get referenced multiple times.
705                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
706                 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
707                 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
708               ],
709               'dependencies': [
710                 '<(DEPTH)/net/net.gyp:net_resources',
711                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
712                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
713                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
714                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
715               ],
716               'configurations': {
717                 'Debug_Base': {
718                   'msvs_settings': {
719                     'VCLinkerTool': {
720                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
721                     },
722                   },
723                 },
724               },
725               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
726               'msvs_disabled_warnings': [ 4267, ],
727             }],
728             ['OS=="win" and win_use_allocator_shim==1', {
729               'dependencies': [
730                 '../base/allocator/allocator.gyp:allocator',
731               ],
732             }],
733           ],
734         },
735       ],
736     }],
737   ],