Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / components / components_tests.gyp
blob91e1264358d6290e10b13cfce5d842a4774c9434
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_autofill_manager_unittest.cc',
54             'autofill/core/browser/password_generator_unittest.cc',
55             'autofill/core/browser/personal_data_manager_unittest.cc',
56             'autofill/core/browser/phone_field_unittest.cc',
57             'autofill/core/browser/phone_number_i18n_unittest.cc',
58             'autofill/core/browser/phone_number_unittest.cc',
59             'autofill/core/browser/validation_unittest.cc',
60             'autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc',
61             'autofill/core/browser/webdata/autofill_table_unittest.cc',
62             'autofill/core/browser/webdata/web_data_service_unittest.cc',
63             'autofill/core/common/form_data_unittest.cc',
64             'autofill/core/common/form_field_data_unittest.cc',
65             'autofill/core/common/password_form_fill_data_unittest.cc',
66             'cloud_devices/printer_description_unittest.cc',
67             'dom_distiller/core/article_entry_unittest.cc',
68             'dom_distiller/core/distiller_unittest.cc',
69             'dom_distiller/core/distiller_url_fetcher_unittest.cc',
70             'dom_distiller/core/dom_distiller_database_unittest.cc',
71             'dom_distiller/core/dom_distiller_model_unittest.cc',
72             'dom_distiller/core/dom_distiller_service_unittest.cc',
73             'dom_distiller/core/dom_distiller_store_unittest.cc',
74             'dom_distiller/core/task_tracker_unittest.cc',
75             'dom_distiller/core/url_utils_unittest.cc',
76             'domain_reliability/context_unittest.cc',
77             'domain_reliability/dispatcher_unittest.cc',
78             'domain_reliability/monitor_unittest.cc',
79             'domain_reliability/scheduler_unittest.cc',
80             'domain_reliability/test_util.cc',
81             'domain_reliability/test_util.h',
82             'domain_reliability/uploader_unittest.cc',
83             'domain_reliability/util_unittest.cc',
84             'json_schema/json_schema_validator_unittest.cc',
85             'json_schema/json_schema_validator_unittest_base.cc',
86             'json_schema/json_schema_validator_unittest_base.h',
87             'keyed_service/content/browser_context_dependency_manager_unittest.cc',
88             'keyed_service/core/dependency_graph_unittest.cc',
89             'language_usage_metrics/language_usage_metrics_unittest.cc',
90             'metrics/metrics_hashes_unittest.cc',
91             'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
92             'os_crypt/ie7_password_win_unittest.cc',
93             'os_crypt/keychain_password_mac_unittest.mm',
94             'os_crypt/os_crypt_unittest.cc',
95             'password_manager/core/browser/login_database_unittest.cc',
96             'password_manager/core/browser/password_form_manager_unittest.cc',
97             'password_manager/core/browser/password_generation_manager_unittest.cc',
98             'password_manager/core/browser/password_manager_unittest.cc',
99             'password_manager/core/browser/password_store_default_unittest.cc',
100             'password_manager/core/browser/password_store_unittest.cc',
101             'password_manager/core/browser/password_syncable_service_unittest.cc',
102             'password_manager/core/browser/psl_matching_helper_unittest.cc',
103             'precache/content/precache_manager_unittest.cc',
104             'precache/core/precache_database_unittest.cc',
105             'precache/core/precache_fetcher_unittest.cc',
106             'precache/core/precache_url_table_unittest.cc',
107             'rappor/bloom_filter_unittest.cc',
108             'rappor/byte_vector_utils_unittest.cc',
109             'rappor/log_uploader_unittest.cc',
110             'rappor/rappor_metric_unittest.cc',
111             'rappor/rappor_service_unittest.cc',
112             'sessions/serialized_navigation_entry_unittest.cc',
113             'signin/core/browser/webdata/token_service_table_unittest.cc',
114             'storage_monitor/image_capture_device_manager_unittest.mm',
115             'storage_monitor/media_storage_util_unittest.cc',
116             'storage_monitor/media_transfer_protocol_device_observer_linux_unittest.cc',
117             'storage_monitor/storage_info_unittest.cc',
118             'storage_monitor/storage_monitor_chromeos_unittest.cc',
119             'storage_monitor/storage_monitor_linux_unittest.cc',
120             'storage_monitor/storage_monitor_mac_unittest.mm',
121             'storage_monitor/storage_monitor_unittest.cc',
122             'storage_monitor/storage_monitor_win_unittest.cc',
123             'sync_driver/model_association_manager_unittest.cc',
124             'sync_driver/sync_prefs_unittest.cc',
125             'sync_driver/system_encryptor_unittest.cc',
126             'test/run_all_unittests.cc',
127             'translate/core/browser/language_state_unittest.cc',
128             'translate/core/browser/translate_browser_metrics_unittest.cc',
129             'translate/core/browser/translate_prefs_unittest.cc',
130             'translate/core/browser/translate_script_unittest.cc',
131             'translate/core/common/translate_metrics_unittest.cc',
132             'translate/core/common/translate_util_unittest.cc',
133             'translate/language_detection/language_detection_util_unittest.cc',
134             'url_matcher/regex_set_matcher_unittest.cc',
135             'url_matcher/string_pattern_unittest.cc',
136             'url_matcher/substring_set_matcher_unittest.cc',
137             'url_matcher/url_matcher_factory_unittest.cc',
138             'url_matcher/url_matcher_unittest.cc',
139             'variations/entropy_provider_unittest.cc',
140             'variations/metrics_util_unittest.cc',
141             'variations/variations_associated_data_unittest.cc',
142             'variations/variations_seed_processor_unittest.cc',
143             'variations/variations_seed_simulator_unittest.cc',
144             'visitedlink/test/visitedlink_unittest.cc',
145             'web_modal/web_contents_modal_dialog_manager_unittest.cc',
146           ],
147           'include_dirs': [
148             '..',
149           ],
150           'dependencies': [
151             '../base/base.gyp:base_prefs_test_support',
152             '../base/base.gyp:test_support_base',
153             # TODO(blundell): Eliminate this dependency by having
154             # components_unittests have its own pakfile. crbug.com/348563
155             '../chrome/chrome_resources.gyp:packed_extra_resources',
156             # TODO(blundell): Eliminate the need for this dependency in code
157             # that iOS shares. crbug.com/325243
158             '../content/content_shell_and_tests.gyp:test_support_content',
159             '../sync/sync.gyp:sync',
160             '../sync/sync.gyp:test_support_sync_api',
161             '../testing/gmock.gyp:gmock',
162             '../testing/gtest.gyp:gtest',
163             '../ui/base/ui_base.gyp:ui_base',
164             '../ui/gfx/gfx.gyp:gfx',
166             'components_resources.gyp:components_resources',
168             # Dependencies of auto_login_parser
169             'components.gyp:auto_login_parser',
171             # Dependencies of autofill
172             'components.gyp:autofill_core_browser',
173             'components.gyp:autofill_core_common',
174             'components.gyp:autofill_core_test_support',
175             'components_strings.gyp:components_strings',
176             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
178             # Dependencies of cloud_devices
179             'components.gyp:cloud_devices',
181             # Dependencies of dom_distiller
182             'components.gyp:distilled_page_proto',
183             'components.gyp:dom_distiller_core',
184             'components.gyp:dom_distiller_test_support',
186             # Dependencies of domain_reliability
187             'components.gyp:domain_reliability',
189             # Dependencies of json_schema
190             'components.gyp:json_schema',
192             # Dependencies of keyed_service
193             'components.gyp:keyed_service_core',
195             # Dependencies of language_usage_metrics
196             'components.gyp:language_usage_metrics',
198             # Dependencies of os_crypt
199             'components.gyp:os_crypt',
201             # Dependencies of password_manager
202             'components.gyp:password_manager_core_browser',
203             'components.gyp:password_manager_core_browser_test_support',
205             # Dependencies of precache/core
206             'components.gyp:password_manager_core_browser',
207             'components.gyp:precache_core',
209             # Dependencies of rappor
210             'components.gyp:rappor',
212             # Dependencies of signin
213             'components.gyp:signin_core_browser',
215             # Dependencies of sync_driver
216             'components.gyp:sync_driver_test_support',
218             # Dependencies of translate.
219             'components.gyp:translate_core_browser',
220             'components.gyp:translate_core_common',
221             'components.gyp:translate_language_detection',
223             # Dependencies of variations
224             'components.gyp:variations',
225           ],
226           'conditions': [
227             ['OS != "ios"', {
228               'sources': [
229                 'dom_distiller/content/dom_distiller_viewer_source_unittest.cc',
230               ],
231               'dependencies': [
232                 # Dependencies of autofill
233                 'components.gyp:autofill_content_browser',
234                 'components.gyp:autofill_content_test_support',
236                 # Dependencies of dom_distiller
237                 'components.gyp:dom_distiller_content',
239                 # Dependencies of
240                 # intercept_navigation_resource_throttle_unittest.cc
241                 '../skia/skia.gyp:skia',
242                 'components.gyp:navigation_interception',
244                 # Dependencies of keyed_service
245                 'components.gyp:keyed_service_content',
247                 # Dependencies of precache/content
248                 'components.gyp:precache_content',
250                 # Dependencies of sessions
251                 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
252                 'components.gyp:sessions',
253                 'components.gyp:sessions_test_support',
255                 # Dependencies of storage monitor
256                 'components.gyp:storage_monitor',
257                 'components.gyp:storage_monitor_test_support',
259                 # Dependencies of url_matcher.
260                 'components.gyp:url_matcher',
262                 # Dependencies of visitedlink
263                 'components.gyp:visitedlink_browser',
264                 'components.gyp:visitedlink_renderer',
265                 '../content/content_resources.gyp:content_resources',
267                 # Dependencies of web_modal
268                 'components.gyp:web_modal',
269                 'components.gyp:web_modal_test_support',
270               ],
271             }, { # 'OS == "ios"'
272               'includes': ['../chrome/chrome_ios_bundle_resources.gypi'],
273               'sources/': [
274                 ['exclude', '\\.cc$'],
275                 ['exclude', '\\.mm$'],
276                 ['include', '^test/run_all_unittests\\.cc$'],
277                 ['include', '^auto_login_parser/'],
278                 ['include', '^autofill/core/'],
279                 ['include', '^dom_distiller/'],
280                 ['include', '^json_schema/'],
281                 ['include', '^keyed_service/core/'],
282                 ['include', '^language_usage_metrics/'],
283                 ['include', '^password_manager/'],
284                 ['include', '^precache/core/'],
285                 ['include', '^signin/'],
286                 ['include', '^sync_driver/'],
287                 ['include', '^translate/'],
288                 ['include', '^variations/'],
289               ],
290               'actions': [
291                 {
292                   'action_name': 'copy_test_data',
293                   'variables': {
294                     'test_data_files': [
295                       'test/data',
296                     ],
297                     'test_data_prefix': 'components',
298                   },
299                   'includes': [ '../build/copy_test_data_ios.gypi' ],
300                 },
301               ],
302               'conditions': [
303                 ['configuration_policy==1', {
304                   'sources/': [
305                     ['include', '^policy/'],
306                   ],
307                 }],
308               ],
309             }],
310             ['disable_nacl==0', {
311               'sources': [
312                 'nacl/browser/nacl_file_host_unittest.cc',
313                 'nacl/browser/nacl_process_host_unittest.cc',
314                 'nacl/browser/nacl_validation_cache_unittest.cc',
315                 'nacl/browser/pnacl_host_unittest.cc',
316                 'nacl/browser/pnacl_translation_cache_unittest.cc',
317                 'nacl/browser/test_nacl_browser_delegate.cc',
318               ],
319               'dependencies': [
320                 'nacl.gyp:nacl_browser',
321                 'nacl.gyp:nacl_common',
322               ],
323             }],
324             ['OS == "mac"', {
325               'link_settings': {
326                 'libraries': [
327                   '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework',
328                   '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
329                   '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework',
330                 ],
331               },
332               'sources!': [
333                 'password_manager/core/browser/password_store_default_unittest.cc',
334               ],
335             }],
336             ['OS == "android"', {
337               'sources!': [
338                 'storage_monitor/media_storage_util_unittest.cc',
339                 'storage_monitor/storage_info_unittest.cc',
340                 'storage_monitor/storage_monitor_unittest.cc',
341                 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
342               ],
343               'dependencies!': [
344                 'components.gyp:storage_monitor',
345                 'components.gyp:storage_monitor_test_support',
346                 'components.gyp:web_modal',
347                 'components.gyp:web_modal_test_support',
348               ],
349             }],
350             ['OS == "android" and gtest_target_type == "shared_library"', {
351               'dependencies': [
352                 '../testing/android/native_test.gyp:native_test_native_code',
353               ]
354             }],
355             ['chromeos==1', {
356               'sources!': [
357                 'storage_monitor/storage_monitor_linux_unittest.cc',
358               ],
359               'dependencies': [
360                 '../chromeos/chromeos.gyp:chromeos_test_support',
361               ],
362             }],
363             ['OS=="linux"', {
364               'dependencies': [
365                 '../dbus/dbus.gyp:dbus',
366                 '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
367               ],
368             }],
369             ['OS=="win" and win_use_allocator_shim==1', {
370               'dependencies': [
371                 '../base/allocator/allocator.gyp:allocator',
372               ],
373             }],
374             # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
375             ['OS=="linux" and component=="shared_library" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
376             'dependencies': [
377                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
378             ],
379             'link_settings': {
380                 'ldflags': ['-rdynamic'],
381             },
382             }],
383             ['configuration_policy==1', {
384               'dependencies': [
385                 'components.gyp:policy_component',
386                 'components.gyp:policy_component_test_support',
387                 'components.gyp:policy_test_support',
388               ],
389               'sources': [
390                 'policy/core/browser/autofill_policy_handler_unittest.cc',
391                 'policy/core/browser/browser_policy_connector_unittest.cc',
392                 'policy/core/browser/configuration_policy_handler_unittest.cc',
393                 'policy/core/browser/configuration_policy_pref_store_unittest.cc',
394                 'policy/core/browser/url_blacklist_policy_handler_unittest.cc',
395                 'policy/core/common/async_policy_provider_unittest.cc',
396                 'policy/core/common/cloud/cloud_policy_client_unittest.cc',
397                 'policy/core/common/cloud/cloud_policy_core_unittest.cc',
398                 'policy/core/common/cloud/cloud_policy_manager_unittest.cc',
399                 'policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc',
400                 'policy/core/common/cloud/cloud_policy_service_unittest.cc',
401                 'policy/core/common/cloud/cloud_policy_validator_unittest.cc',
402                 'policy/core/common/cloud/component_cloud_policy_service_unittest.cc',
403                 'policy/core/common/cloud/component_cloud_policy_store_unittest.cc',
404                 'policy/core/common/cloud/component_cloud_policy_updater_unittest.cc',
405                 'policy/core/common/cloud/device_management_service_unittest.cc',
406                 'policy/core/common/cloud/external_policy_data_fetcher_unittest.cc',
407                 'policy/core/common/cloud/external_policy_data_updater_unittest.cc',
408                 'policy/core/common/cloud/policy_header_io_helper_unittest.cc',
409                 'policy/core/common/cloud/policy_header_service_unittest.cc',
410                 'policy/core/common/cloud/rate_limiter_unittest.cc',
411                 'policy/core/common/cloud/resource_cache_unittest.cc',
412                 'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
413                 'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
414                 'policy/core/common/cloud/user_info_fetcher_unittest.cc',
415                 'policy/core/common/config_dir_policy_loader_unittest.cc',
416                 'policy/core/common/forwarding_policy_provider_unittest.cc',
417                 'policy/core/common/generate_policy_source_unittest.cc',
418                 'policy/core/common/policy_bundle_unittest.cc',
419                 'policy/core/common/policy_loader_ios_unittest.mm',
420                 'policy/core/common/policy_loader_mac_unittest.cc',
421                 'policy/core/common/policy_loader_win_unittest.cc',
422                 'policy/core/common/policy_map_unittest.cc',
423                 'policy/core/common/policy_provider_android_unittest.cc',
424                 'policy/core/common/policy_service_impl_unittest.cc',
425                 'policy/core/common/policy_statistics_collector_unittest.cc',
426                 'policy/core/common/preg_parser_win_unittest.cc',
427                 'policy/core/common/registry_dict_win_unittest.cc',
428                 'policy/core/common/schema_map_unittest.cc',
429                 'policy/core/common/schema_registry_unittest.cc',
430                 'policy/core/common/schema_unittest.cc',
431               ],
432               'conditions': [
433                 ['OS=="android"', {
434                   'sources/': [
435                     ['exclude', '^policy/core/common/async_policy_provider_unittest\\.cc'],
436                   ],
437                 }],
438                 ['OS=="android" or OS=="ios"', {
439                   # Note: 'sources!' is processed before any 'sources/', so the
440                   # ['include', '^policy/'] on iOS above will include all of the
441                   # policy source files again. Using 'source/' here too will get
442                   # these files excluded as expected.
443                   'sources/': [
444                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_service_unittest\\.cc'],
445                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_store_unittest\\.cc'],
446                     ['exclude', '^policy/core/common/cloud/component_cloud_policy_updater_unittest\\.cc'],
447                     ['exclude', '^policy/core/common/cloud/external_policy_data_fetcher_unittest\\.cc'],
448                     ['exclude', '^policy/core/common/cloud/external_policy_data_updater_unittest\\.cc'],
449                     ['exclude', '^policy/core/common/cloud/resource_cache_unittest\\.cc'],
450                     ['exclude', '^policy/core/common/config_dir_policy_loader_unittest\\.cc'],
451                   ],
452                 }],
453                 ['chromeos==1', {
454                   'sources': [
455                     'policy/core/common/proxy_policy_provider_unittest.cc',
456                   ],
457                   'sources!': [
458                     'policy/core/common/cloud/user_cloud_policy_manager_unittest.cc',
459                     'policy/core/common/cloud/user_cloud_policy_store_unittest.cc',
460                   ],
461                 }],
462                 ['OS=="ios" or OS=="mac"', {
463                   'sources': [
464                     'policy/core/common/mac_util_unittest.cc',
465                   ],
466                 }],
467               ],
468             }],
469           ],
470           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
471           'msvs_disabled_warnings': [4267, ],
472         },
473       ],
474     }],
475     ['OS != "ios" and android_webview_build == 0', {
476       'targets': [
477         {
478           'target_name': 'components_perftests',
479           'type': '<(gtest_target_type)',
480           'dependencies': [
481             '../base/base.gyp:base',
482             '../base/base.gyp:test_support_perf',
483             '../content/content_shell_and_tests.gyp:test_support_content',
484             '../testing/gtest.gyp:gtest',
485             'components.gyp:visitedlink_browser',
486           ],
487          'include_dirs': [
488            '..',
489          ],
490          'sources': [
491            'visitedlink/test/visitedlink_perftest.cc',
492          ],
493          'conditions': [
494            ['OS == "android" and gtest_target_type == "shared_library"', {
495              'dependencies': [
496                '../testing/android/native_test.gyp:native_test_native_code',
497              ],
498            }],
499          ],
500          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
501          'msvs_disabled_warnings': [ 4267, ],
502         },
503       ],
504       'conditions': [
505         ['OS == "android" and gtest_target_type == "shared_library"', {
506           'targets': [
507             {
508               'target_name': 'components_unittests_apk',
509               'type': 'none',
510               'dependencies': [
511                 'components_unittests',
512               ],
513               'variables': {
514                 'test_suite_name': 'components_unittests',
515                 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
516               },
517               'includes': [ '../build/apk_test.gypi' ],
518             },
519           ],
520         }],
521       ],
522     }],
523     ['OS!="ios"', {
524       'targets': [
525         {
526           'target_name': 'components_browsertests',
527           'type': '<(gtest_target_type)',
528           'defines!': ['CONTENT_IMPLEMENTATION'],
529           'dependencies': [
530             'components.gyp:dom_distiller_content',
531             'components.gyp:dom_distiller_core',
532             'components_resources.gyp:components_resources',
533             '../content/content.gyp:content_common',
534             '../content/content.gyp:content_gpu',
535             '../content/content.gyp:content_plugin',
536             '../content/content.gyp:content_renderer',
537             '../content/content_resources.gyp:content_resources',
538             '../content/content_shell_and_tests.gyp:content_browser_test_support',
539             '../content/content_shell_and_tests.gyp:content_shell_lib',
540             '../content/content_shell_and_tests.gyp:content_shell_pak',
541             '../content/content_shell_and_tests.gyp:test_support_content',
542             '../skia/skia.gyp:skia',
543             '../testing/gtest.gyp:gtest',
544           ],
545           'include_dirs': [
546             '..',
547           ],
548           'defines': [
549             'HAS_OUT_OF_PROC_TEST_RUNNER',
550           ],
551           'sources': [
552             'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
554             # content_extractor is a standalone content extraction tool built as
555             # a MANUAL component_browsertest.
556             'dom_distiller/standalone/content_extractor.cc',
557           ],
558           'actions': [
559             {
560               'action_name': 'repack_components_pack',
561               'variables': {
562                 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
563                 'pak_inputs': [
564                   '<(SHARED_INTERMEDIATE_DIR)/components/component_resources.pak',
565                   '<(SHARED_INTERMEDIATE_DIR)/components/strings/component_strings_en-US.pak',
566                 ],
567               },
568               'inputs': [
569                 '<(repack_path)',
570                 '<@(pak_inputs)',
571               ],
572               'outputs': [
573                 '<(PRODUCT_DIR)/components_resources.pak',
574               ],
575               'action': ['python', '<(repack_path)', '<@(_outputs)',
576                          '<@(pak_inputs)'],
577             },
578           ],
579           'conditions': [
580             ['OS=="win"', {
581               'resource_include_dirs': [
582                 '<(SHARED_INTERMEDIATE_DIR)/webkit',
583               ],
584               'sources': [
585                 '../content/shell/app/resource.h',
586                 '../content/shell/app/shell.rc',
587                 # TODO:  It would be nice to have these pulled in
588                 # automatically from direct_dependent_settings in
589                 # their various targets (net.gyp:net_resources, etc.),
590                 # but that causes errors in other targets when
591                 # resulting .res files get referenced multiple times.
592                 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
593                 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
594                 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
595               ],
596               'dependencies': [
597                 '<(DEPTH)/net/net.gyp:net_resources',
598                 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
599                 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
600                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
601                 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
602               ],
603               'configurations': {
604                 'Debug_Base': {
605                   'msvs_settings': {
606                     'VCLinkerTool': {
607                       'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
608                     },
609                   },
610                 },
611               },
612               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
613               'msvs_disabled_warnings': [ 4267, ],
614             }],
615             ['OS=="win" and win_use_allocator_shim==1', {
616               'dependencies': [
617                 '../base/allocator/allocator.gyp:allocator',
618               ],
619             }],
620           ],
621         },
622       ],
623     }],
624   ],