1 # Copyright 2014 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.
5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni")
8 import("//build/config/ui.gni")
9 import("//chrome/chrome_tests.gni")
10 import("//chrome/test/base/js2gtest.gni")
11 import("//testing/test.gni")
13 # This target exists to reference other test executables to bring these files
19 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common
20 source_set("test_support") {
25 "base/chrome_process_util.cc",
26 "base/chrome_process_util.h",
27 "base/chrome_process_util_mac.cc",
28 "base/chrome_render_view_host_test_harness.cc",
29 "base/chrome_render_view_host_test_harness.h",
30 "base/chrome_test_launcher.cc",
31 "base/chrome_test_launcher.h",
32 "base/chrome_test_suite.cc",
33 "base/chrome_test_suite.h",
34 "base/chrome_unit_test_suite.cc",
35 "base/chrome_unit_test_suite.h",
36 "base/dialog_test_browser_window.cc",
37 "base/dialog_test_browser_window.h",
38 "base/find_in_page_observer.cc",
39 "base/find_in_page_observer.h",
40 "base/history_index_restore_observer.cc",
41 "base/history_index_restore_observer.h",
42 "base/in_process_browser_test.cc",
43 "base/in_process_browser_test.h",
44 "base/in_process_browser_test_mac.cc",
45 "base/profile_mock.cc",
46 "base/profile_mock.h",
47 "base/scoped_browser_locale.cc",
48 "base/scoped_browser_locale.h",
49 "base/scoped_bundle_swizzler_mac.h",
50 "base/scoped_bundle_swizzler_mac.mm",
51 "base/scoped_testing_local_state.cc",
52 "base/scoped_testing_local_state.h",
53 "base/test_browser_window.cc",
54 "base/test_browser_window.h",
55 "base/test_launcher_utils.cc",
56 "base/test_launcher_utils.h",
57 "base/test_switches.cc",
58 "base/test_switches.h",
59 "base/testing_browser_process.cc",
60 "base/testing_browser_process.h",
61 "base/testing_browser_process_platform_part.cc",
62 "base/testing_browser_process_platform_part.h",
63 "base/testing_io_thread_state.cc",
64 "base/testing_io_thread_state.h",
65 "base/testing_pref_service_syncable.cc",
66 "base/testing_pref_service_syncable.h",
67 "base/testing_profile.cc",
68 "base/testing_profile.h",
69 "base/testing_profile_manager.cc",
70 "base/testing_profile_manager.h",
73 "base/ui_test_utils.cc",
74 "base/ui_test_utils.h",
75 "logging/win/file_logger.cc",
76 "logging/win/file_logger.h",
77 "logging/win/log_file_printer.cc",
78 "logging/win/log_file_printer.h",
79 "logging/win/log_file_reader.cc",
80 "logging/win/log_file_reader.h",
81 "logging/win/mof_data_parser.cc",
82 "logging/win/mof_data_parser.h",
83 "logging/win/test_log_collector.cc",
84 "logging/win/test_log_collector.h",
87 # New deps should go in the non-iOS section below.
89 "//content/test:test_support",
92 "//base:prefs_test_support",
93 "//base/test:test_support",
96 "//chrome/app:test_support",
98 #"//chrome/app/theme:theme_resources",
99 "//chrome/browser:test_support",
100 "//chrome/common:test_support",
101 "//chrome/renderer:test_support",
102 "//components/bookmarks/test",
103 "//components/gcm_driver:test_support",
104 "//components/gcm_driver/instance_id:test_support",
105 "//components/history/core/test:test",
106 "//components/metrics:test_support",
107 "//components/omnibox/browser:test_support",
108 "//components/password_manager/core/browser:test_support",
109 "//components/pref_registry:test_support",
110 "//components/rappor:test_support",
111 "//components/search_engines:test_support",
112 "//components/signin/core/browser:test_support",
113 "//components/sync_driver:test_support",
114 "//components/update_client:test_support",
115 "//content/public/app:both",
116 "//ui/gfx:test_support",
118 "//net:test_support",
121 "//sql:test_support",
125 "//third_party/zlib",
126 "//ui/message_center:test_support",
135 "//content/public/child",
136 "//content/public/common",
137 "//content/public/plugin",
138 "//content/public/renderer",
139 "//content/public/utility",
140 "//components/autofill/core/browser:test_support",
141 "//components/captive_portal:test_support",
142 "//components/guest_view/browser:test_support",
143 "//components/infobars/core",
144 "//components/sessions:test_support",
145 "//components/user_manager:test_support",
146 "//components/web_resource:test_support",
147 "//google_apis:test_support",
148 "//ipc:test_support",
149 "//media:test_support",
150 "//ppapi/shared_impl",
151 "//sql:test_support",
152 "//third_party/leveldatabase",
154 "//ui/events:events_base",
159 if (enable_extensions) {
161 "//chrome/common/extensions/api",
162 "//extensions:test_support",
167 deps += [ "//crypto:platform" ]
170 # deps += [ '../third_party/ocmock/ocmock.gyp:ocmock' ] TODO(GYP)
173 deps += [ "//third_party/wtl" ]
176 "//win8:test_registrar_constants",
177 "//win8:test_support_win8",
182 deps += [ "//components/ownership" ]
187 "base/test_browser_window_aura.cc",
188 "base/test_browser_window_aura.h",
192 if (enable_plugins) {
194 "ppapi/ppapi_test.cc",
195 "ppapi/ppapi_test.h",
201 deps += [ "//ash:test_support" ]
204 deps += [ "//ui/views:test_support" ]
207 if (enable_extensions) {
209 "//chrome/common/extensions/api",
210 "//extensions:test_support",
216 import("//third_party/protobuf/proto_library.gni")
218 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto
219 proto_library("test_proto") {
221 "../common/safe_browsing/ipc_protobuf_message_test.proto",
225 test("interactive_ui_tests") {
227 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources,
231 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
237 "//chrome/browser/devtools",
239 "//chrome/test:test_support",
240 "//chrome:resources",
242 "//chrome:packed_extra_resources",
243 "//chrome:packed_resources",
244 "//content/app/resources",
246 "//crypto:test_support",
247 "//google_apis:test_support",
249 "//net:net_resources",
250 "//net:test_support",
255 "//third_party/hunspell",
257 "//third_party/libpng",
258 "//third_party/zlib",
259 "//ui/base:test_support",
260 "//ui/resources:ui_test_pak",
261 "//ui/web_dialogs:test_support",
264 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target
265 # should be deleted and this line removed. See the
266 # chrome_extensions_interactive_uitests target for more.
267 deps += [ "//extensions:chrome_extensions_interactive_uitests" ]
269 # Runtime dependencies
271 "//ppapi:ppapi_tests",
272 "//third_party/mesa:osmesa",
276 sources += rebase_path(
277 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources,
282 "//ui/views:test_support",
283 "//ui/views/controls/webview:test_support",
286 sources += rebase_path(
287 chrome_tests_gypi_values.chrome_interactive_ui_test_views_non_mac_sources,
292 # TODO(gbillock): aura linux does not support the automation for
293 # SendMouseMoveNotifyWhenDone
294 sources -= [ "../browser/ui/views/toolbar/toolbar_button_test.cc" ]
296 if (is_chromeos || !use_x11) {
298 "../../ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc",
299 "../../ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc",
303 deps += [ "//ui/touch_selection" ]
307 if (is_linux && !is_chromeos) {
310 # TODO(port): This times out. Attempts have been made to fix the
311 # individual failures, but each time I disable a test from these
312 # suites, it seems like one or another starts timing out too.
313 "../browser/ui/views/keyboard_access_browsertest.cc",
316 # Everything but desktop Linux.
317 sources += rebase_path(
318 chrome_tests_gypi_values.chrome_interactive_ui_test_non_desktop_linux_sources,
324 sources += rebase_path(
325 chrome_tests_gypi_values.chrome_interactive_ui_test_chromeos_sources,
328 sources += [ "../browser/notifications/login_state_notification_blocker_chromeos_browsertest.cc" ]
330 # Use only the _chromeos version on ChromeOS.
331 "base/view_event_test_platform_part_ash.cc",
341 "//native_client/src/trusted/service_runtime/linux:munge_nacl_helper_bootstrap",
342 "//components/nacl:nacl_helper",
344 # '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi', TODO(GYP)
348 if (is_chrome_branded) {
350 # These tests are failing on official cros bots. crbug.com/431450.
351 "../browser/ui/views/bookmarks/bookmark_bar_view_test.cc",
355 # ChromeOS doesn't use panels, everybody else does.
356 sources += rebase_path(
357 chrome_tests_gypi_values.chrome_interactive_ui_test_panels_sources,
361 # TODO(tapted): Include on mac when views panels are ported.
362 if (toolkit_views && !is_mac) {
363 sources += rebase_path(
364 chrome_tests_gypi_values.chrome_interactive_ui_test_panels_views_sources,
371 # Non-Linux platforms (Linux includes ChromeOS here).
372 sources += rebase_path(
373 chrome_tests_gypi_values.chrome_interactive_ui_test_non_linux_and_chromeos_sources,
379 sources += rebase_path(
380 chrome_tests_gypi_values.chrome_interactive_ui_test_win_sources,
384 "//chrome:other_version",
385 "//third_party/isimpledom",
390 configs -= [ "//build/config/win:default_incremental_linking" ]
392 [ "//build/config/win:default_large_module_incremental_linking" ]
394 libs = [ "oleacc.lib" ]
398 datadeps += [ "//chrome" ]
400 # TODO(mark): We really want this for all non-static library targets, but
401 # when we tried to pull it up to the common.gypi level, it broke other
402 # things like the ui and startup tests. *shrug*
403 ldflags += [ "-Wl,-ObjC" ]
406 if (cld_version == 0 || cld_version == 2) {
407 # Interactive tests should use whatever CLD2 data access mode that the
408 # application embedder is using.
409 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
413 configs += [ "//build/config/linux:xtst" ]
414 datadeps += [ "//tools/xdisplaycheck" ]
417 if (enable_app_list) {
418 sources += rebase_path(
419 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sources,
425 sources += rebase_path(
426 chrome_tests_gypi_values.chrome_interactive_ui_test_ash_sources,
429 deps += [ "//ash:test_support" ]
432 if (enable_notifications) {
433 sources += rebase_path(
434 chrome_tests_gypi_values.chrome_interactive_ui_test_notifications_sources,
438 # Non-ChromeOS notifications tests (ChromeOS does not use cross-platform
442 "../browser/notifications/notification_browsertest.cc",
443 "../browser/notifications/platform_notification_service_browsertest.cc",
449 # Android does not use the message center-based Notification system.
450 "../browser/notifications/message_center_notifications_browsertest.cc",
452 # TODO(peter): Enable the Notification browser tests.
453 "../browser/notifications/notification_browsertest.cc",
454 "../browser/notifications/platform_notification_service_browsertest.cc",
457 } # enable_notifications
459 if (use_aura || is_chromeos) {
461 [ "../../ui/views/corewm/desktop_capture_controller_unittest.cc" ]
465 source_set("sync_integration_test_support") {
467 sources = rebase_path(
468 chrome_tests_gypi_values.test_support_sync_integration_sources,
478 "//components/invalidation/impl",
479 "//components/invalidation/impl:test_support",
483 "//sync:test_support_sync_testserver",
484 "//sync:test_support_sync_fake_server",
485 "//ui/app_list:test_support",
490 "../browser/sync/test/integration/dictionary_helper.cc",
491 "../browser/sync/test/integration/dictionary_helper.h",
492 "../browser/sync/test/integration/dictionary_load_observer.cc",
493 "../browser/sync/test/integration/dictionary_load_observer.h",
496 if (!enable_app_list) {
498 "../browser/sync/test/integration/sync_app_list_helper.cc",
499 "../browser/sync/test/integration/sync_app_list_helper.h",
504 "../browser/sync/test/integration/wifi_credentials_helper.cc",
505 "../browser/sync/test/integration/wifi_credentials_helper.h",
510 js2gtest("browser_tests_js_webui") {
512 sources = rebase_path(
513 chrome_tests_gypi_values.chrome_browser_tests_webui_js_sources,
516 if (is_chrome_branded) {
518 sources -= [ "data/webui/accessibility_audit_browsertest.js" ]
521 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ]
523 if (!enable_app_list) {
524 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ]
526 if (!enable_supervised_users) {
528 [ "../browser/ui/webui/downloads_ui_supervised_browsertest.js" ]
531 "//chrome/browser/ui",
534 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
537 test("browser_tests") {
539 "base/browser_tests_main.cc",
542 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_sources,
545 sources += rebase_path(
546 chrome_tests_gypi_values.chrome_browser_extensions_test_support_sources,
551 ":browser_tests_js_webui",
552 ":sync_integration_test_support",
557 "//base/test:test_support",
558 "//chrome:browser_tests_pak",
559 "//chrome:packed_extra_resources",
560 "//chrome:packed_resources",
561 "//chrome:resources",
564 "//chrome/browser/resources:extension_resource_demo",
565 "//chrome/common/extensions/api",
567 "//components/autofill/content/browser:risk_proto",
568 "//components/autofill/content/browser/wallet:test_support",
569 "//components/autofill/content/renderer:test_support",
570 "//components/captive_portal:test_support",
571 "//components/dom_distiller/content:content_browser",
572 "//components/dom_distiller/core:test_support",
573 "//components/guest_view/browser:test_support",
574 "//components/resources",
575 "//components/strings",
576 "//components/translate/core/common",
577 "//components/user_manager:test_support",
579 "//crypto:test_support",
580 "//device/bluetooth:mocks",
581 "//device/serial:test_support",
582 "//extensions/common/api",
583 "//google_apis:test_support",
585 "//media/base:test_support",
586 "//media/cast:test_support",
588 "//net:test_support",
592 "//sync:test_support_sync_api",
596 "//third_party/cacheinvalidation",
598 "//third_party/leveldatabase",
599 "//third_party/libaddressinput",
600 "//third_party/libjingle",
601 "//third_party/safe_browsing:test_support",
602 "//third_party/webrtc/modules/desktop_capture",
603 "//third_party/widevine/cdm:version_h",
604 "//ui/accessibility:test_support",
605 "//ui/base:test_support",
606 "//ui/compositor:test_support",
608 "//ui/web_dialogs:test_support",
612 # TODO(rockot) bug 505926: The chrome_extensions_browsertests target should
613 # be deleted and this line removed. See the chrome_extensions_browsertests
615 deps += [ "//extensions:chrome_extensions_browsertests" ]
617 # Runtime dependencies
619 "//ppapi:ppapi_tests",
620 "//remoting/webapp:browser_test_resources",
621 "//remoting/webapp:unit_tests",
622 "//third_party/mesa:osmesa",
623 "//third_party/widevine/cdm:widevine_test_license_server",
626 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
628 # TODO(GYP) if (is_win) {
629 # ['incremental_chrome_dll==1', {
630 # 'UseLibraryDependencyInputs': "true",
633 if (cld_version == 0 || cld_version == 2) {
634 # Because the browser_tests use translate, they need CLD data.
635 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
638 if (!enable_one_click_signin) {
639 sources -= [ "../browser/ui/sync/one_click_signin_bubble_links_delegate_browsertest.cc" ]
643 "../browser/extensions/extension_nacl_browsertest.cc",
644 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
646 deps += [ "//components/nacl/renderer/plugin:nacl_trusted_plugin" ]
648 if (enable_nacl_untrusted) {
650 "nacl/nacl_browsertest.cc",
651 "nacl/nacl_browsertest_uma.cc",
652 "nacl/nacl_browsertest_util.cc",
653 "nacl/nacl_browsertest_util.h",
654 "nacl/pnacl_header_test.cc",
655 "nacl/pnacl_header_test.h",
658 # TODO(GYP): Make NaCl work in other configs and update the irt
659 # dependency as appropriate. We should probably push this
660 # dependency into ppapi/native_client so that clients don't need
661 # to know all of the different toolchain options.
662 assert(current_cpu == "x64")
664 # "test/data/nacl:shared_test_files", # TODO(GYP) bug 512902
665 "//ppapi/native_client:nacl_irt(//native_client/build/toolchain/nacl:irt_x64)",
666 # "../ppapi/ppapi_nacl.gyp:ppapi_nacl_tests", # TODO(GYP) bug 512901
667 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_background_keepalive", # TODO(GYP) bug 512900
668 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_media_galleries", # TODO(GYP) bug 512900
669 # "../ppapi/tests/extensions/extensions.gyp:ppapi_tests_extensions_packaged_app", # TODO(GYP) bug 512900
672 sources += [ "//third_party/liblouis/nacl_wrapper/liblouis_wrapper_browsertest.cc" ]
674 "//chrome/browser/chromeos",
675 #'../third_party/liblouis/liblouis_nacl.gyp:liblouis_test_data', TODO(GYP) bug 512906
679 if (is_win || is_linux) {
680 sources += [ "../browser/nacl_host/test/nacl_gdb_browsertest.cc" ]
681 deps += [ "//chrome/browser/nacl_host/test:mock_nacl_gdb" ]
684 # TODO(halyavin) NaCl on Windows can't open debug stub socket in
685 # browser process as needed by this test. See http://crbug.com/157312.
686 sources -= [ "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc" ]
688 #'chrome.gyp:chrome_nacl_win64', TODO(GYP) bug 512869
690 configs -= [ "//build/config/win:default_incremental_linking" ]
692 [ "//build/config/win:default_large_module_incremental_linking" ]
696 "//native_client/src/trusted/service_runtime/linux:munge_nacl_helper_bootstrap",
697 "//components/nacl:nacl_helper",
699 # "//components/nacl_nonsfi.gyp:nacl_helper_nonsfi", # TODO(GYP) bug 512912.
703 if (debug_devtools) {
704 defines += [ "DEBUG_DEVTOOLS=1" ]
707 deps += [ "//ash:test_support" ]
709 if (use_aura || toolkit_views) {
710 deps += [ "//ui/events:test_support" ]
713 sources += rebase_path(
714 chrome_tests_gypi_values.chrome_browser_tests_views_sources,
717 deps += [ "//ui/views" ]
719 sources += rebase_path(
720 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sources,
726 sources += rebase_path(
727 chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources,
731 "../../apps/load_and_launch_browsertest.cc",
732 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc",
733 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc",
735 # chromeos does not support profile list avatar menu
736 "../browser/profiles/profile_list_desktop_browsertest.cc",
737 "../browser/service_process/service_process_control_browsertest.cc",
739 # chromeos does not use cross-platform panels
740 "../browser/ui/panels/panel_extension_browsertest.cc",
742 # chromeos does not use the desktop user manager
743 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc",
747 "//dbus:test_support",
749 #"//ui/login:resources", TODO(GYP) bug 512913
753 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc",
754 "../browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc",
755 "../browser/extensions/api/terminal/terminal_private_apitest.cc",
756 "../browser/invalidation/profile_invalidation_provider_factory_browsertest.cc",
757 "../browser/net/nss_context_chromeos_browsertest.cc",
758 "../browser/ui/ash/keyboard_controller_browsertest.cc",
759 "data/webui/certificate_viewer_ui_test-inl.h",
762 sources -= [ "../browser/ui/views/select_file_dialog_extension_browsertest.cc" ]
765 if (enable_configuration_policy) {
766 sources += rebase_path(
767 chrome_tests_gypi_values.chrome_browser_tests_policy_sources,
771 if (enable_web_speech) {
772 sources += rebase_path(
773 chrome_tests_gypi_values.chrome_browser_tests_speech_sources,
777 if (safe_browsing_mode == 1) {
778 sources += rebase_path(
779 chrome_tests_gypi_values.chrome_browser_tests_full_safe_browsing_sources,
783 if (enable_captive_portal_detection) {
784 sources += [ "../browser/captive_portal/captive_portal_browsertest.cc" ]
786 if (!enable_webrtc) {
788 "../browser/extensions/api/webrtc_audio_private/webrtc_audio_private_browsertest.cc",
789 "../browser/extensions/api/webrtc_logging_private/webrtc_logging_private_apitest.cc",
790 "../browser/media/chrome_webrtc_browsertest.cc",
791 "../browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc",
792 "../browser/media/chrome_webrtc_getmediadevices_browsertest.cc",
795 if (enable_media_router) {
796 sources += rebase_path(
797 chrome_tests_gypi_values.chrome_browser_tests_media_router_sources,
800 deps += [ "//chrome/browser/media/router:test_support" ]
804 "//chrome:other_version",
810 "../app/chrome_command_ids.h",
811 "../app/chrome_dll_resource.h",
812 "../app/chrome_version.rc.version",
813 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc",
816 if (!is_chromeos && use_aura) {
818 # On Windows and Linux, we currently don't support enough of the
819 # ash environment to run these unit tests.
821 # TODO: enable these on windows and linux.
822 "../browser/ui/ash/accelerator_commands_browsertest.cc",
823 "../browser/ui/ash/accelerator_controller_browsertest.cc",
824 "../browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc",
825 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
826 "../browser/ui/ash/shelf_browsertest.cc",
827 "../browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc",
831 # TODO(mark): We really want this for all non-static library
832 # targets, but when we tried to pull it up to the common.gypi
833 # level, it broke other things like the ui and startup tests. *shrug*
834 ldflags = [ "-Wl,-ObjC" ]
836 # Other platforms only need
837 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
838 # and can build this target standalone much faster.
840 #'app_mode_app_support', TODO(GYP)
843 #'../components/components.gyp:breakpad_stubs', TODO(GYP)
844 "//third_party/ocmock",
847 "../browser/media_galleries/fileapi/iphoto_data_provider_browsertest.cc",
848 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_browsertest.mm",
849 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc",
852 # TODO(groby): This test depends on hunspell and we cannot run it on
853 # Mac, which does not use hunspell by default.
854 "../browser/spellchecker/spellcheck_service_browsertest.cc",
856 # TODO(rouslan): This test depends on the custom dictionary UI,
857 # which is disabled on Mac.
858 # TODO(GYP): This should be added somewhere first ...
859 # "../browser/ui/webui/options/edit_dictionary_browsertest.js",
861 # TODO(rouslan): This test depends on hunspell and we cannot run it
862 # on Mac, which does use hunspell by default.
863 # TODO(GYP): This should be added somewhere first ...
864 # "../browser/ui/webui/options/language_options_dictionary_download_browsertest.js",
866 # ProcessSingletonMac doesn"t do anything.
867 "../browser/process_singleton_browsertest.cc",
869 # This test depends on GetCommandLineForRelaunch, which is not
871 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc",
873 # single-process mode hangs on Mac sometimes because of multiple UI
874 # message loops. See 306348
875 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
876 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
877 "../renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc",
880 if (is_mac || is_win) {
882 "../browser/extensions/api/networking_private/networking_private_apitest.cc",
883 "../browser/extensions/api/networking_private/networking_private_service_client_apitest.cc",
884 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc",
885 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc",
887 deps += [ "//components/wifi:test_support" ]
889 if (!is_posix || is_chromeos) {
890 sources -= [ "../common/time_format_browsertest.cc" ]
894 "../browser/policy/cloud/component_cloud_policy_browsertest.cc",
895 "../browser/prefs/pref_hash_browsertest.cc",
896 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc",
897 "../renderer/spellchecker/spellcheck_unittest.cc",
902 "../browser/extensions/api/networking_private/networking_private_apitest.cc",
903 "../browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc",
906 if (!is_android && !is_ios) {
908 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ]
909 deps += [ "//components/copresence" ]
911 if (enable_app_list) {
912 sources += rebase_path(
913 chrome_tests_gypi_values.chrome_browser_tests_app_list_sources,
917 if (enable_supervised_users) {
918 sources += rebase_path(
919 chrome_tests_gypi_values.chrome_browser_tests_supervised_user_sources,
923 if (enable_pepper_cdms) {
924 # Runtime dependencies.
926 "//media/cdm/ppapi:clearkeycdmadapter",
927 "//third_party/widevine/cdm:widevinecdmadapter",
930 if (!enable_print_preview) {
932 "../browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc",
933 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc",
934 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc",
935 "../browser/printing/print_preview_dialog_controller_browsertest.cc",
936 "../browser/printing/print_preview_pdf_generated_browsertest.cc",
937 "../browser/service_process/service_process_control_browsertest.cc",
938 "../browser/ui/webui/print_preview/print_preview_ui_browsertest.cc",
939 "data/webui/print_preview.cc",
940 "data/webui/print_preview.h",
941 "data/webui/print_preview.js",
945 sources += [ "../browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc" ]
948 deps += [ "//build/config/linux:libbrlapi" ]
950 sources -= [ "../browser/extensions/api/braille_display_private/braille_display_private_apitest.cc" ]
952 if (is_chrome_branded) {
954 # These tests depend on single process mode, which is disabled in
956 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
957 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
958 "../renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc",
961 if (!enable_autofill_dialog || is_android || is_ios) {
962 deps -= [ "//third_party/libaddressinput" ]
964 if (enable_remoting) {
965 sources += rebase_path(
966 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
969 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP)
972 deps += [ "//tools/xdisplaycheck" ]
976 test("sync_integration_tests") {
978 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources,
982 # TODO(phajdan.jr): Only temporary, to make transition easier.
983 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
986 ":sync_integration_test_support",
989 "//chrome:packed_extra_resources",
990 "//chrome:packed_resources",
991 "//chrome:resources",
1000 "//third_party/leveldatabase",
1001 "//third_party/WebKit/public:blink",
1004 if (cld_version == 0 || cld_version == 2) {
1005 # Language detection is irrelevant to sync, so it can depend on any
1006 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1007 deps += [ "//third_party/cld_2:cld2_dynamic" ]
1010 # Dictionary sync is disabled on Mac.
1012 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc",
1013 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc",
1014 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc",
1017 # The sync_integration_tests do not run on mac without this flag.
1018 # Search for comments about "xcode_settings" elsewhere in this file.
1019 ldflags = [ "-Wl,-ObjC" ]
1023 "//chrome:other_version",
1024 "//third_party/wtl",
1028 configs -= [ "//build/config/win:default_incremental_linking" ]
1030 [ "//build/config/win:default_large_module_incremental_linking" ]
1032 sources -= [ "../app/chrome_version.rc.version" ]
1036 "../browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc",
1037 "../browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc",
1041 if (toolkit_views) {
1042 deps += [ "//ui/views" ]
1044 if (enable_basic_printing || enable_print_preview) {
1045 deps += [ "//printing" ]
1047 if (!enable_app_list) {
1049 "../browser/sync/test/integration/single_client_app_list_sync_test.cc",
1050 "../browser/sync/test/integration/two_client_app_list_sync_test.cc",
1053 if (!enable_supervised_users) {
1054 sources -= [ "../browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc" ]
1058 test("sync_performance_tests") {
1060 rebase_path(chrome_tests_gypi_values.sync_performance_tests_sources,
1064 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
1067 ":sync_integration_test_support",
1069 "//crypto:platform",
1075 if (cld_version == 0 || cld_version == 2) {
1076 # Language detection is irrelevant to sync, so it can depend on any
1077 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1078 deps += [ "//third_party/cld_2:cld2_dynamic" ]
1082 # Dictionary sync is disabled on Mac.
1083 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc" ]
1085 # The sync_performance_tests do not run on mac without this flag.
1086 # Search for comments about "xcode_settings" elsewhere in this file.
1087 ldflags = [ "-Wl,-ObjC" ]
1091 "//chrome:other_version",
1092 "//chrome/installer/util:strings",
1093 "//third_party/wtl",
1096 configs -= [ "//build/config/win:default_incremental_linking" ]
1098 [ "//build/config/win:default_large_module_incremental_linking" ]
1100 sources -= [ "../app/chrome_version.rc.version" ]
1103 if (toolkit_views) {
1104 deps += [ "//ui/views" ]
1108 # Executable to measure time to load libraries.
1109 test("load_library_perf_tests") {
1111 "../browser/load_library_perf_test.cc",
1115 "//base/test:test_support_perf",
1118 "//third_party/widevine/cdm:version_h",
1121 if (enable_pepper_cdms) {
1123 "//media/cdm/ppapi:clearkeycdmadapter",
1124 "//third_party/widevine/cdm:widevinecdmadapter",
1129 js2gtest("unit_tests_js") {
1131 sources = rebase_path(
1132 chrome_tests_unit_gypi_values.chrome_unit_tests_gtestjs_sources,
1136 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_js_sources,
1140 sources += rebase_path(
1141 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_sources,
1144 extra_js_files += rebase_path(
1145 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_sources,
1151 test("unit_tests") {
1153 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources,
1160 # NOTE: New depndencies should generally be added in the OS!="ios"
1161 # dependencies block below, rather than here.
1162 # Unit tests should only depend on:
1163 # 1) everything that the chrome binaries depend on:
1164 "//chrome:browser_dependencies",
1165 "//chrome:child_dependencies",
1167 # 2) test-specific support libraries:
1168 ":test_support_unit",
1169 "//base/test:test_support",
1170 "//chrome/test:test_support",
1171 "//components/resources",
1172 "//components/content_settings/core/test:test_support",
1173 "//content/test:test_support",
1174 "//content/public/app:both",
1175 "//crypto:platform",
1176 "//crypto:test_support",
1178 "//net:test_support",
1179 "//sync:test_support_sync_api",
1180 "//sync:test_support_sync_core",
1181 "//sync:test_support_sync_internal_api",
1185 # 3) anything tests directly depend on
1187 "//chrome:resources",
1189 "//courgette:courgette_lib",
1192 "//third_party/cacheinvalidation",
1193 "//third_party/icu",
1194 "//third_party/libxml",
1195 "//ui/base:test_support",
1196 "//ui/gfx:test_support",
1201 # TODO(GYP) Windows stuff
1202 # ['incremental_chrome_dll==1', {
1203 # 'UseLibraryDependencyInputs': "true",
1208 "//components/audio_modem:test_support",
1209 "//components/autofill/content/browser/wallet:test_support",
1210 "//components/autofill/content/renderer:test_support",
1211 "//components/metrics/proto",
1212 "//components/data_reduction_proxy/core/browser:test_support",
1213 "//components/safe_json:test_support",
1214 "//components/webdata_services:test_support",
1215 "//components/strings",
1216 "//device/bluetooth:mocks",
1217 "//content/app/resources",
1218 "//gpu:test_support",
1219 "//media:test_support",
1221 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP)
1222 "//third_party/leveldatabase",
1223 "//third_party/libaddressinput",
1224 "//third_party/libjingle",
1225 "//third_party/libphonenumber",
1226 "//third_party/webrtc/modules/desktop_capture",
1227 "//tools/json_schema_compiler/test",
1234 deps -= [ "//third_party/libaddressinput" ]
1236 # Some android targets still depend on --gc-sections to link.
1237 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
1238 ldflags = [ "-Wl,--gc-sections" ]
1239 deps += [ "//testing/android/native_test:native_test_native_code" ]
1240 isolate_file = "../unit_tests.isolate"
1242 sources += rebase_path(
1243 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_sources,
1247 if (is_ios || is_chromeos) {
1249 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ]
1251 if (enable_background) {
1252 sources += rebase_path(
1253 chrome_tests_unit_gypi_values.chrome_unit_tests_background_sources,
1257 if (enable_spellcheck) {
1258 sources += rebase_path(
1259 chrome_tests_unit_gypi_values.chrome_unit_tests_spellchecker_sources,
1262 if (is_mac && !is_ios) {
1263 deps += [ "//third_party/hunspell" ]
1267 if (enable_one_click_signin) {
1269 "../browser/ui/sync/one_click_signin_sync_observer_unittest.cc",
1270 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc",
1274 if (enable_extensions) {
1275 sources += rebase_path(
1276 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources,
1280 "//chrome/common/extensions/api",
1281 "//device/usb:mocks",
1282 "//extensions:extensions_resources",
1283 "//extensions/strings",
1285 if (enable_configuration_policy) {
1286 sources += rebase_path(
1287 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_policy_sources,
1292 sources += rebase_path(
1293 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_chromeos_sources,
1298 if (toolkit_views) {
1300 "//components/web_modal:test_support",
1302 "//ui/views:test_support",
1304 sources += rebase_path(
1305 chrome_tests_unit_gypi_values.chrome_unit_tests_views_sources,
1309 sources += rebase_path(
1310 chrome_tests_unit_gypi_values.chrome_unit_tests_views_non_mac_sources,
1316 sources += rebase_path(
1317 chrome_tests_unit_gypi_values.chrome_unit_tests_ash_sources,
1321 "//ash:test_support",
1326 # We eventually want to compile both in Win Aura builds, see
1327 # http://crbug.com/155545.
1329 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ]
1333 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ]
1336 "//ui/aura:test_support",
1337 "//ui/views:test_support",
1340 if (!is_chromeos && is_linux) {
1341 sources += rebase_path(
1342 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sources,
1346 if (!is_chromeos && !use_ozone && is_linux) {
1348 "//chrome/browser/ui/libgtk2ui",
1349 "//build/config/linux:gio",
1353 if (enable_task_manager) {
1354 sources += rebase_path(
1355 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sources,
1360 sources += rebase_path(
1361 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources,
1365 if (enable_service_discovery) {
1366 sources += rebase_path(
1367 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_sources,
1371 if (enable_configuration_policy) {
1372 sources += rebase_path(
1373 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_policy_sources,
1378 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ]
1379 } else if (is_android) {
1380 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ]
1382 if (!is_android && !is_ios && !is_chromeos) {
1384 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ]
1386 if (!is_android && !is_ios) {
1388 [ "../browser/download/download_dir_policy_handler_unittest.cc" ]
1391 if (enable_web_speech) {
1392 sources += rebase_path(
1393 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources,
1397 if (enable_notifications) {
1398 sources += rebase_path(
1399 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_sources,
1404 # Android does not use the Message Center notification system.
1405 "../browser/notifications/message_center_notifications_unittest.cc",
1406 "../browser/notifications/message_center_settings_controller_unittest.cc",
1410 if (safe_browsing_mode == 1) {
1411 # TODO(sgurun): enable tests for safe_browsing==2.
1412 sources += rebase_path(
1413 chrome_tests_unit_gypi_values.chrome_unit_tests_full_safe_browsing_sources,
1416 deps += [ ":test_proto" ]
1418 deps -= [ ":test_proto" ]
1420 # Android doesn't support download feedbacks.
1421 "../browser/safe_browsing/download_feedback_service_unittest.cc",
1422 "../browser/safe_browsing/download_feedback_unittest.cc",
1423 "../browser/safe_browsing/download_protection_service_unittest.cc",
1424 "../browser/safe_browsing/two_phase_uploader_unittest.cc",
1425 "../common/safe_browsing/ipc_protobuf_message_test_messages.h",
1426 "../common/safe_browsing/ipc_protobuf_message_unittest.cc",
1430 if (enable_autofill_dialog && !is_android) {
1431 sources += rebase_path(
1432 chrome_tests_unit_gypi_values.chrome_unit_tests_autofill_dialog_sources,
1436 if (enable_plugins) {
1437 sources += rebase_path(
1438 chrome_tests_unit_gypi_values.chrome_unit_tests_plugins_sources,
1442 if (enable_print_preview) {
1443 sources += rebase_path(
1444 chrome_tests_unit_gypi_values.chrome_unit_tests_print_preview_sources,
1448 if (enable_captive_portal_detection) {
1449 sources += rebase_path(
1450 chrome_tests_unit_gypi_values.chrome_unit_tests_captive_portal_sources,
1454 if (enable_session_service) {
1455 sources += rebase_path(
1456 chrome_tests_unit_gypi_values.chrome_unit_tests_session_service_sources,
1460 if (enable_media_router) {
1461 sources += rebase_path(
1462 chrome_tests_unit_gypi_values.chrome_unit_tests_media_router_sources,
1465 deps += [ "//chrome/browser/media/router:test_support" ]
1467 sources += rebase_path(
1468 chrome_tests_unit_gypi_values.chrome_unit_tests_media_router_non_android_sources,
1472 if (!toolkit_views) {
1473 sources -= [ "../browser/ui/views/media_router/media_router_ui_browsertest.cc" ]
1476 if (enable_webrtc) {
1477 sources += rebase_path(
1478 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources,
1483 deps += [ "//chrome/browser/chromeos:unit_tests" ]
1485 "../browser/signin/signin_global_error_unittest.cc",
1486 "../browser/signin/signin_manager_unittest.cc",
1487 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc",
1488 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc",
1489 "../browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc",
1493 deps += [ "//ui/events/devices" ]
1494 data_deps += [ "//tools/xdisplaycheck" ]
1496 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ]
1498 if (cld_version == 0 || cld_version == 2) {
1499 # Unit tests should be independent of the CLD2 access mechanism, just use
1500 # static for simplicity.
1501 deps += [ "//third_party/cld_2:cld2_static" ]
1503 if (is_desktop_linux && current_cpu == "x64") {
1504 # Only add this test for 64 bit builds because otherwise we need the 32
1505 # bit library on 64 bit systems when running this test.
1507 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ]
1509 "//chrome/browser:gnome_keyring",
1510 "//chrome/browser:gnome_keyring_direct",
1513 if (is_linux && !is_chromeos) {
1515 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ]
1517 if (is_linux && use_aura) {
1520 "//dbus:test_support",
1521 "//ui/aura:test_support",
1524 if (is_linux && is_chrome_branded && current_cpu == "x86") {
1525 ldflags = [ "-Wl,--strip-debug" ]
1528 sources += rebase_path(
1529 chrome_tests_unit_gypi_values.chrome_unit_tests_mac_sources,
1533 "../browser/ui/tests/ui_gfx_image_unittest.cc",
1534 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc",
1535 "../tools/convert_dict/convert_dict_unittest.cc",
1538 # The test fetches resources which means Mac need the app bundle to exist
1539 # on disk so it can pull from it.
1541 "//third_party/google_toolbox_for_mac",
1542 "//third_party/ocmock",
1545 # TODO(mark): We really want this for all non-static library targets,
1546 # but when we tried to pull it up to the common.gypi level, it broke
1547 # other things like the ui and startup tests. *shrug*
1548 ldflags = [ "-Wl,-ObjC" ]
1550 if (!is_mac && !is_ios) {
1552 "//chrome/tools/convert_dict:lib",
1553 "//chrome:packed_extra_resources",
1554 "//chrome:packed_resources",
1555 "//third_party/hunspell",
1558 if (is_win || is_mac) {
1559 sources += rebase_path(
1560 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources,
1564 if (is_win || is_mac || is_chromeos) {
1565 sources += [ "../common/extensions/api/networking_private/networking_private_crypto_unittest.cc" ]
1567 if (enable_rlz_support) {
1568 sources += [ "../browser/rlz/chrome_rlz_tracker_delegate_unittest.cc" ]
1570 "//chrome/browser:rlz",
1572 "//rlz:test_support",
1576 # The PDB gets too large for incremental linking.
1577 configs -= [ "//build/config/win:default_incremental_linking" ]
1578 configs += [ "//build/config/win:no_incremental_linking" ]
1580 sources += rebase_path(
1581 chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources,
1585 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_1', TODO(GYP) bug 512919
1586 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unittest.gyp:verifier_test_dll_2', TODO(GYP) bug 512919
1587 "//chrome:other_version",
1588 "//chrome_elf:blacklist_test_dll_1",
1589 "//chrome/installer/util:strings",
1590 "//third_party/iaccessible2",
1591 "//third_party/isimpledom",
1592 "//third_party/wtl",
1603 if (!is_chrome_branded) {
1604 sources -= [ "../browser/google/google_update_win_unittest.cc" ]
1607 if (is_android || is_ios) {
1609 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_unittest.cc",
1610 "../browser/ui/sync/sync_promo_ui_unittest.cc",
1614 "../browser/metrics/variations/variations_request_scheduler_mobile_unittest.cc",
1615 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc",
1617 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ]
1619 if (!is_android && !is_chromeos) {
1620 sources += rebase_path(
1621 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_or_chromeos_sources,
1625 if (enable_themes) {
1626 sources += rebase_path(
1627 chrome_tests_unit_gypi_values.chrome_unit_tests_themes_sources,
1631 if (!is_android && (use_nss_certs || use_openssl_certs)) {
1632 sources += [ "../common/net/x509_certificate_model_unittest.cc" ]
1634 if (enable_supervised_users) {
1635 sources += rebase_path(
1636 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_sources,
1640 if (enable_supervised_users && !is_android && !is_ios) {
1641 sources += rebase_path(
1642 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_legacy_sources,
1646 if (safe_browsing_mode == 1 && enable_extensions) {
1647 sources += [ "../browser/extensions/blacklist_unittest.cc" ]
1649 if (cld_version == 1) {
1650 sources += [ "//third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest_small.cc" ]
1651 defines += [ "CLD_WINDOWS" ]
1652 deps += [ "//third_party/cld" ]
1654 if (enable_app_list) {
1655 sources += rebase_path(
1656 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources,
1659 deps += [ "//ui/app_list:test_support" ]
1661 if (enable_app_list && is_chromeos) {
1662 sources += rebase_path(
1663 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_sources,
1667 if (enable_plugins && !enable_plugin_installation) {
1668 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ]
1672 if (is_win || (is_linux && !is_chromeos)) {
1673 # TODO(GYP): Figure out which of these work and are needed on other
1675 test("chrome_app_unittests") {
1677 "../app/chrome_watcher_client_unittest_win.cc",
1678 "../app/chrome_watcher_client_win.cc",
1679 "../app/chrome_watcher_command_line_unittest_win.cc",
1680 "../app/chrome_watcher_command_line_win.cc",
1681 "../app/delay_load_hook_unittest_win.cc",
1682 "../app/delay_load_hook_win.cc",
1683 "../app/delay_load_hook_win.h",
1684 "../app/signature_validator_win.cc",
1685 "../app/signature_validator_win.h",
1686 "../app/signature_validator_win_unittest.cc",
1687 "../common/crash_keys.cc",
1688 "../common/crash_keys.h",
1693 "//breakpad:client",
1696 "//base/test:run_all_unittests",
1697 "//base/test:test_support",
1699 if (cld_version == 0 || cld_version == 2) {
1700 # Use whatever CLD2 data access mode that the
1701 # application embedder is using.
1702 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
1706 test("performance_browser_tests") {
1707 sources = rebase_path(
1708 chrome_tests_gypi_values.performance_browser_tests_sources,
1712 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
1718 "//base/test:test_support",
1720 "//chrome/renderer",
1721 "//components/autofill/content/browser/wallet:test_support",
1722 "//components/autofill/content/renderer:test_support",
1723 "//media/cast:test_support",
1730 configs -= [ "//build/config/win:default_incremental_linking" ]
1732 [ "//build/config/win:default_large_module_incremental_linking" ]
1735 "../app/chrome_command_ids.h",
1737 #"../app/chrome_dll.rc",
1738 #"../app/chrome_dll_resource.h",
1739 "../app/chrome_version.rc.version",
1743 sources -= [ "perf/mach_ports_performancetest.cc" ]
1746 if (cld_version == 0 || cld_version == 2) {
1747 # Use whatever CLD2 data access mode that the
1748 # application embedder is using.
1749 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
1755 source_set("test_support_unit") {
1758 "../browser/sync/glue/session_sync_test_helper.cc",
1759 "../browser/sync/glue/session_sync_test_helper.h",
1760 "base/run_all_unittests.cc",
1766 "//chrome:resources",
1770 "//mojo/environment:chromium",
1771 "//third_party/mojo/src/mojo/edk/system",
1774 if (!is_android && use_ash) {
1775 sources += rebase_path(
1776 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources,