Roll src/third_party/WebKit bf18a82:a9cee16 (svn 185297:185304)
[chromium-blink-merge.git] / chrome / test / BUILD.gn
blobc64cf596691786d05af54998b51b3b0bf7888e65
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
9 # into the build.
10 group("test") {
11   testonly = true
12   deps = [
13     "//chrome/test/perf",
14   ]
17 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common
18 source_set("test_support") {
19   defines = []
20   testonly = true
22   sources = [
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",
64     "base/tracing.cc",
65     "base/tracing.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",
78   ]
80   # New deps should go in the non-iOS section below.
81   public_deps = [
82     "//content/test:test_support",
83   ]
84   deps = [
85     "//base:prefs_test_support",
86     "//base/test:test_support",
87     "//chrome:resources",
88     "//chrome:strings",
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",
108     "//net",
109     "//net:test_support",
110     "//skia",
111     "//sql",
112     "//sql:test_support",
113     "//sync",
114     "//testing/gmock",
115     "//testing/gtest",
116     "//third_party/zlib",
117     "//ui/message_center:test_support",
118   ]
120   if (!is_ios) {
121     deps += [
122       "//chrome/plugin",
123       "//chrome/renderer",
124       "//chrome/utility",
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",
140       "//ui/base",
141       "//ui/events:events_base",
142       "//ui/gl",
143     ]
144   }
146   if (enable_extensions) {
147     deps += [
148       "//chrome/common/extensions/api",
149       "//extensions:test_support",
150     ]
151   }
153   if (is_linux) {
154     deps += [ "//crypto:platform" ]
155   }
156   if (is_win) {
157     deps += [
158       "//third_party/wtl",
159       "//ui/snapshot:test_support",
160     ]
161     if (use_aura) {
162       deps += [
163         #'../win8/win8.gyp:test_registrar_constants',  TODO(GYP)
164         #'../win8/win8.gyp:test_support_win8',  TODO(GYP)
165       ]
166     }
167   }
169   if (enable_plugins) {
170     sources += [
171       "ppapi/ppapi_test.cc",
172       "ppapi/ppapi_test.h",
173     ]
174   }
176   if (use_ash) {
177     deps += [ "//ash:test_support" ]
178   }
179   if (toolkit_views) {
180     deps += [ "//ui/views:test_support" ]
181   }
183   if (enable_background) {
184     defines += [ "ENABLE_BACKGROUND=1" ]
185   }
187   if (enable_extensions) {
188     deps += [
189       "//chrome/common/extensions/api",
190       "//extensions:test_support",
191     ]
192   }
195 source_set("test_support_unit") {
196   testonly = true
197   sources = [
198     "../browser/sync/glue/session_sync_test_helper.cc",
199     "../browser/sync/glue/session_sync_test_helper.h",
200     "base/run_all_unittests.cc",
201   ]
203   deps = [
204     ":test_support",
205     "//base",
206     "//chrome:resources",
207     "//chrome:strings",
208     "//chrome/browser",
209     "//chrome/common",
210     "//mojo/edk/system",
211     "//mojo/environment:chromium",
212   ]