OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//chrome/chrome_tests.gni") | 10 import("//chrome/chrome_tests.gni") |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 "logging/win/mof_data_parser.cc", | 84 "logging/win/mof_data_parser.cc", |
85 "logging/win/mof_data_parser.h", | 85 "logging/win/mof_data_parser.h", |
86 "logging/win/test_log_collector.cc", | 86 "logging/win/test_log_collector.cc", |
87 "logging/win/test_log_collector.h", | 87 "logging/win/test_log_collector.h", |
88 ] | 88 ] |
89 | 89 |
90 configs += [ "//build/config:precompiled_headers" ] | 90 configs += [ "//build/config:precompiled_headers" ] |
91 | 91 |
92 # New deps should go in the non-iOS section below. | 92 # New deps should go in the non-iOS section below. |
93 public_deps = [ | 93 public_deps = [ |
94 "//content/test:test_support", | |
95 ] | |
96 deps = [ | |
97 "//base:prefs_test_support", | 94 "//base:prefs_test_support", |
98 "//base/test:test_support", | 95 "//base/test:test_support", |
99 "//chrome:resources", | 96 "//chrome:resources", |
100 "//chrome:strings", | 97 "//chrome:strings", |
101 "//chrome/app:test_support", | 98 "//chrome/app:test_support", |
102 | 99 |
103 #"//chrome/app/theme:theme_resources", | 100 #"//chrome/app/theme:theme_resources", |
104 "//chrome/browser:test_support", | 101 "//chrome/browser:test_support", |
105 "//chrome/common:test_support", | 102 "//chrome/common:test_support", |
106 "//chrome/renderer:test_support", | 103 "//chrome/renderer:test_support", |
107 "//components/bookmarks/test", | 104 "//components/bookmarks/test", |
108 "//components/gcm_driver:test_support", | 105 "//components/gcm_driver:test_support", |
109 "//components/gcm_driver/instance_id:test_support", | 106 "//components/gcm_driver/instance_id:test_support", |
110 "//components/history/core/test:test", | 107 "//components/history/core/test:test", |
111 "//components/metrics:test_support", | 108 "//components/metrics:test_support", |
112 "//components/omnibox/browser:test_support", | 109 "//components/omnibox/browser:test_support", |
113 "//components/password_manager/core/browser:test_support", | 110 "//components/password_manager/core/browser:test_support", |
114 "//components/pref_registry:test_support", | 111 "//components/pref_registry:test_support", |
115 "//components/rappor:test_support", | 112 "//components/rappor:test_support", |
116 "//components/search_engines:test_support", | 113 "//components/search_engines:test_support", |
117 "//components/signin/core/browser:test_support", | 114 "//components/signin/core/browser:test_support", |
118 "//components/sync_driver:test_support", | 115 "//components/sync_driver:test_support", |
119 "//components/sync_sessions:test_support", | 116 "//components/sync_sessions:test_support", |
120 "//components/syncable_prefs:test_support", | 117 "//components/syncable_prefs:test_support", |
121 "//components/ui/zoom:test_support", | 118 "//components/ui/zoom:test_support", |
122 "//components/update_client:test_support", | 119 "//components/update_client:test_support", |
123 "//content/public/app:both", | 120 "//content/public/app:both", |
| 121 "//content/test:test_support", |
124 "//net", | 122 "//net", |
125 "//net:test_support", | 123 "//net:test_support", |
126 "//skia", | 124 "//skia", |
127 "//sql", | 125 "//sql", |
128 "//sql:test_support", | 126 "//sql:test_support", |
129 "//sync", | 127 "//sync", |
130 "//testing/gmock", | 128 "//testing/gmock", |
131 "//testing/gtest", | 129 "//testing/gtest", |
132 "//third_party/zlib", | 130 "//third_party/zlib", |
133 "//ui/gfx:test_support", | 131 "//ui/gfx:test_support", |
134 "//ui/message_center:test_support", | 132 "//ui/message_center:test_support", |
135 ] | 133 ] |
136 | 134 |
137 if (!is_ios) { | 135 if (!is_ios) { |
138 deps += [ | 136 public_deps += [ |
139 "//chrome/child", | 137 "//chrome/child", |
140 "//chrome/plugin", | 138 "//chrome/plugin", |
141 "//chrome/renderer", | 139 "//chrome/renderer", |
142 "//chrome/utility", | 140 "//chrome/utility", |
143 "//components/autofill/core/browser:test_support", | 141 "//components/autofill/core/browser:test_support", |
144 "//components/captive_portal:test_support", | 142 "//components/captive_portal:test_support", |
145 "//components/guest_view/browser:test_support", | 143 "//components/guest_view/browser:test_support", |
146 "//components/infobars/core", | 144 "//components/infobars/core", |
147 "//components/sessions:test_support", | 145 "//components/sessions:test_support", |
148 "//components/user_manager:test_support", | 146 "//components/user_manager:test_support", |
149 "//components/web_resource:test_support", | 147 "//components/web_resource:test_support", |
150 "//content/public/child", | 148 "//content/public/child", |
151 "//content/public/common", | 149 "//content/public/common", |
152 "//content/public/plugin", | 150 "//content/public/plugin", |
153 "//content/public/renderer", | 151 "//content/public/renderer", |
154 "//content/public/utility", | 152 "//content/public/utility", |
155 "//google_apis:test_support", | 153 "//google_apis:test_support", |
156 "//ipc:test_support", | 154 "//ipc:test_support", |
157 "//media:test_support", | 155 "//media:test_support", |
158 "//ppapi/shared_impl", | 156 "//ppapi/shared_impl", |
159 "//sql:test_support", | 157 "//sql:test_support", |
160 "//third_party/leveldatabase", | 158 "//third_party/leveldatabase", |
161 "//ui/base", | 159 "//ui/base", |
162 "//ui/events:events_base", | 160 "//ui/events:events_base", |
163 "//ui/gl", | 161 "//ui/gl", |
164 ] | 162 ] |
165 } | 163 } |
166 | 164 |
167 if (is_android) { | 165 if (is_android) { |
168 deps -= [ "//ui/message_center:test_support" ] | 166 public_deps -= [ "//ui/message_center:test_support" ] |
169 sources -= [ | 167 sources -= [ |
170 "base/dialog_test_browser_window.cc", | 168 "base/dialog_test_browser_window.cc", |
171 "base/dialog_test_browser_window.h", | 169 "base/dialog_test_browser_window.h", |
172 "base/test_browser_window.cc", | 170 "base/test_browser_window.cc", |
173 "base/test_browser_window.h", | 171 "base/test_browser_window.h", |
174 ] | 172 ] |
175 } | 173 } |
176 | 174 |
177 if (enable_extensions) { | 175 if (enable_extensions) { |
178 deps += [ | 176 public_deps += [ |
179 "//chrome/common/extensions/api", | 177 "//chrome/common/extensions/api", |
180 "//extensions:test_support", | 178 "//extensions:test_support", |
181 ] | 179 ] |
182 } | 180 } |
183 | 181 |
184 if (is_linux) { | 182 if (is_linux) { |
185 deps += [ "//crypto:platform" ] | 183 public_deps += [ "//crypto:platform" ] |
186 } | 184 } |
187 if (is_mac) { | 185 if (is_mac) { |
188 sources += [ | 186 sources += [ |
189 "//chrome/app/chrome_crash_reporter_client.cc", | 187 "//chrome/app/chrome_crash_reporter_client.cc", |
190 "//chrome/app/chrome_crash_reporter_client_mac.mm", | 188 "//chrome/app/chrome_crash_reporter_client_mac.mm", |
191 ] | 189 ] |
192 deps += [ | 190 public_deps += [ |
193 "//breakpad", | 191 "//breakpad", |
194 "//components/crash/content/app", | 192 "//components/crash/content/app", |
195 "//third_party/ocmock", | 193 "//third_party/ocmock", |
196 ] | 194 ] |
197 } | 195 } |
198 if (is_win) { | 196 if (is_win) { |
199 deps += [ "//third_party/wtl" ] | 197 public_deps += [ "//third_party/wtl" ] |
200 if (use_aura) { | 198 if (use_aura) { |
201 deps += [ | 199 public_deps += [ |
202 "//win8:test_registrar_constants", | 200 "//win8:test_registrar_constants", |
203 "//win8:test_support_win8", | 201 "//win8:test_support_win8", |
204 ] | 202 ] |
205 } | 203 } |
206 } | 204 } |
207 if (is_chromeos) { | 205 if (is_chromeos) { |
208 deps += [ "//components/ownership" ] | 206 public_deps += [ "//components/ownership" ] |
209 } | 207 } |
210 | 208 |
211 if (use_aura) { | 209 if (use_aura) { |
212 sources += [ | 210 sources += [ |
213 "base/test_browser_window_aura.cc", | 211 "base/test_browser_window_aura.cc", |
214 "base/test_browser_window_aura.h", | 212 "base/test_browser_window_aura.h", |
215 ] | 213 ] |
216 } | 214 } |
217 | 215 |
218 if (enable_plugins && enable_pdf) { | 216 if (enable_plugins && enable_pdf) { |
219 deps += [ "//pdf" ] | 217 public_deps += [ "//pdf" ] |
220 } | 218 } |
221 | 219 |
222 if (use_ash) { | 220 if (use_ash) { |
223 deps += [ "//ash:test_support" ] | 221 public_deps += [ "//ash:test_support" ] |
224 } | 222 } |
225 if (toolkit_views) { | 223 if (toolkit_views) { |
226 deps += [ "//ui/views:test_support" ] | 224 public_deps += [ "//ui/views:test_support" ] |
227 } | 225 } |
228 | 226 |
229 if (enable_extensions) { | 227 if (enable_extensions) { |
230 deps += [ | 228 public_deps += [ |
231 "//chrome/common/extensions/api", | 229 "//chrome/common/extensions/api", |
232 "//extensions:test_support", | 230 "//extensions:test_support", |
233 ] | 231 ] |
234 } | 232 } |
235 } | 233 } |
236 | 234 |
237 if (!is_android) { | 235 if (!is_android) { |
238 # GYP version: chrome/chrome_tests.gypi:test_support_ui | 236 # GYP version: chrome/chrome_tests.gypi:test_support_ui |
239 source_set("test_support_ui") { | 237 source_set("test_support_ui") { |
240 defines = [] | 238 defines = [] |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2204 } | 2202 } |
2205 | 2203 |
2206 source_set("test_support_unit") { | 2204 source_set("test_support_unit") { |
2207 testonly = true | 2205 testonly = true |
2208 sources = [ | 2206 sources = [ |
2209 "../browser/sync/glue/session_sync_test_helper.cc", | 2207 "../browser/sync/glue/session_sync_test_helper.cc", |
2210 "../browser/sync/glue/session_sync_test_helper.h", | 2208 "../browser/sync/glue/session_sync_test_helper.h", |
2211 "base/run_all_unittests.cc", | 2209 "base/run_all_unittests.cc", |
2212 ] | 2210 ] |
2213 | 2211 |
2214 deps = [ | 2212 public_deps = [ |
2215 ":test_support", | 2213 ":test_support", |
2216 "//base", | 2214 "//base", |
2217 "//chrome:resources", | 2215 "//chrome:resources", |
2218 "//chrome:strings", | 2216 "//chrome:strings", |
2219 "//chrome/browser", | 2217 "//chrome/browser", |
2220 "//chrome/common", | 2218 "//chrome/common", |
2221 "//mojo/environment:chromium", | 2219 "//mojo/environment:chromium", |
2222 "//third_party/mojo/src/mojo/edk/system", | 2220 "//third_party/mojo/src/mojo/edk/system", |
2223 ] | 2221 ] |
2224 | 2222 |
2225 if (!is_android && use_ash) { | 2223 if (!is_android && use_ash) { |
2226 sources += rebase_path( | 2224 sources += rebase_path( |
2227 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, | 2225 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, |
2228 ".", | 2226 ".", |
2229 "//chrome") | 2227 "//chrome") |
2230 } | 2228 } |
2231 } | 2229 } |
2232 | 2230 |
2233 if (is_android) { | 2231 if (is_android) { |
2234 android_library("unit_tests_java") { | 2232 android_library("unit_tests_java") { |
2235 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" | 2233 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" |
2236 deps = [ | 2234 deps = [ |
2237 "//base:base_java", | 2235 "//base:base_java", |
2238 "//chrome/android:chrome_java", | 2236 "//chrome/android:chrome_java", |
2239 "//content/public/android:content_java", | 2237 "//content/public/android:content_java", |
2240 ] | 2238 ] |
2241 } | 2239 } |
2242 } | 2240 } |
OLD | NEW |