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/features.gni")
6 import("//build/config/ui.gni")
8 # This target exists to reference other test executables to bring these files
17 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common
18 source_set("test_support") {
23 "base/chrome_process_util.cc",
24 "base/chrome_process_util.h",
25 "base/chrome_process_util_mac.cc",
26 "base/chrome_render_view_host_test_harness.cc",
27 "base/chrome_render_view_host_test_harness.h",
28 "base/chrome_test_launcher.cc",
29 "base/chrome_test_launcher.h",
30 "base/chrome_test_suite.cc",
31 "base/chrome_test_suite.h",
32 "base/chrome_unit_test_suite.cc",
33 "base/chrome_unit_test_suite.h",
34 "base/find_in_page_observer.cc",
35 "base/find_in_page_observer.h",
36 "base/history_index_restore_observer.cc",
37 "base/history_index_restore_observer.h",
38 "base/in_process_browser_test.cc",
39 "base/in_process_browser_test.h",
40 "base/profile_mock.cc",
41 "base/profile_mock.h",
42 "base/scoped_browser_locale.cc",
43 "base/scoped_browser_locale.h",
44 "base/scoped_testing_local_state.cc",
45 "base/scoped_testing_local_state.h",
46 "base/test_browser_window.cc",
47 "base/test_browser_window.h",
48 "base/test_launcher_utils.cc",
49 "base/test_launcher_utils.h",
50 "base/test_switches.cc",
51 "base/test_switches.h",
52 "base/testing_browser_process.cc",
53 "base/testing_browser_process.h",
54 "base/testing_browser_process_platform_part.h",
55 "base/testing_browser_process_platform_part.cc",
56 "base/testing_io_thread_state.cc",
57 "base/testing_io_thread_state.h",
58 "base/testing_pref_service_syncable.cc",
59 "base/testing_pref_service_syncable.h",
60 "base/testing_profile.cc",
61 "base/testing_profile.h",
62 "base/testing_profile_manager.cc",
63 "base/testing_profile_manager.h",
66 "base/ui_test_utils.cc",
67 "base/ui_test_utils.h",
68 "logging/win/file_logger.cc",
69 "logging/win/file_logger.h",
70 "logging/win/log_file_printer.cc",
71 "logging/win/log_file_printer.h",
72 "logging/win/log_file_reader.cc",
73 "logging/win/log_file_reader.h",
74 "logging/win/mof_data_parser.cc",
75 "logging/win/mof_data_parser.h",
76 "logging/win/test_log_collector.cc",
77 "logging/win/test_log_collector.h",
80 # New deps should go in the non-iOS section below.
82 "//content/test:test_support",
85 "//base:prefs_test_support",
86 "//base/test:test_support",
89 "//chrome/app:test_support",
90 #"//chrome/app/theme:theme_resources",
91 "//chrome/browser:test_support",
92 "//chrome/common:test_support",
93 "//chrome/renderer:test_support",
94 "//components/bookmarks/test",
95 "//components/component_updater:test_support",
96 "//components/gcm_driver:test_support",
97 "//components/history/core/test:test",
98 "//components/metrics:test_support",
99 "//components/omnibox:test_support",
100 "//components/ownership",
101 "//components/password_manager/core/browser:test_support",
102 "//components/pref_registry:test_support",
103 "//components/search_engines:test_support",
104 "//components/signin/core/browser:test_support",
105 "//components/sync_driver:test_support",
106 "//content/public/app:both",
107 "//ui/gfx:test_support",
109 "//net:test_support",
112 "//sql:test_support",
116 "//third_party/zlib",
117 "//ui/message_center:test_support",
125 "//content/public/child",
126 "//content/public/common",
127 "//content/public/plugin",
128 "//content/public/renderer",
129 "//content/public/utility",
130 "//components/autofill/core/browser:test_support",
131 "//components/captive_portal:test_support",
132 "//components/infobars/core",
133 "//components/sessions:test_support",
134 "//google_apis:test_support",
135 "//ipc:test_support",
136 "//media:test_support",
137 "//ppapi:ppapi_shared",
138 "//sql:test_support",
139 "//third_party/leveldatabase",
141 "//ui/events:events_base",
146 if (enable_extensions) {
148 "//chrome/common/extensions/api",
149 "//extensions:test_support",
154 deps += [ "//crypto:platform" ]
159 "//ui/snapshot:test_support",
163 #'../win8/win8.gyp:test_registrar_constants', TODO(GYP)
164 #'../win8/win8.gyp:test_support_win8', TODO(GYP)
169 if (enable_plugins) {
171 "ppapi/ppapi_test.cc",
172 "ppapi/ppapi_test.h",
177 deps += [ "//ash:test_support" ]
180 deps += [ "//ui/views:test_support" ]
183 if (enable_background) {
184 defines += [ "ENABLE_BACKGROUND=1" ]
187 if (enable_extensions) {
189 "//chrome/common/extensions/api",
190 "//extensions:test_support",
195 source_set("test_support_unit") {
198 "../browser/sync/glue/session_sync_test_helper.cc",
199 "../browser/sync/glue/session_sync_test_helper.h",
200 "base/run_all_unittests.cc",
206 "//chrome:resources",
211 "//mojo/environment:chromium",