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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 gypi_values = exec_script( | |
9 "//build/gypi_to_gn.py", | |
10 [ rebase_path("../chrome_tests.gypi") ], | |
11 "scope", | |
12 [ "../chrome_tests.gypi" ]) | |
13 | |
8 # This target exists to reference other test executables to bring these files | 14 # This target exists to reference other test executables to bring these files |
9 # into the build. | 15 # into the build. |
10 group("test") { | 16 group("test") { |
11 testonly = true | 17 testonly = true |
12 deps = [ | 18 deps = [ |
13 "//chrome/test/perf", | 19 "//chrome/test/perf", |
14 ] | 20 ] |
15 } | 21 } |
16 | 22 |
17 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common | 23 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 ":test_support", | 210 ":test_support", |
205 "//base", | 211 "//base", |
206 "//chrome:resources", | 212 "//chrome:resources", |
207 "//chrome:strings", | 213 "//chrome:strings", |
208 "//chrome/browser", | 214 "//chrome/browser", |
209 "//chrome/common", | 215 "//chrome/common", |
210 "//mojo/edk/system", | 216 "//mojo/edk/system", |
211 "//mojo/environment:chromium", | 217 "//mojo/environment:chromium", |
212 ] | 218 ] |
213 } | 219 } |
220 | |
221 source_set("sync_integration_test_support") { | |
222 testonly = true | |
223 | |
224 sources = rebase_path(gypi_values.test_support_sync_integration_sources, | |
225 ".", "//chrome") | |
226 deps = [ | |
227 ":test_support", | |
228 "//base", | |
229 "//chrome", | |
230 "//chrome/browser", | |
231 "//components/invalidation", | |
232 "//components/invalidation:test_support", | |
233 "//net", | |
234 "//skia", | |
235 "//sync", | |
236 "//sync:test_support_sync_testserver", | |
237 "//sync:test_support_sync_fake_server", | |
238 "//ui/app_list:test_support", | |
239 ] | |
240 | |
241 if (is_mac) { | |
242 sources -= [ | |
243 "../browser/sync/test/integration/dictionary_helper.cc", | |
244 "../browser/sync/test/integration/dictionary_helper.h", | |
245 "../browser/sync/test/integration/dictionary_load_observer.cc", | |
246 "../browser/sync/test/integration/dictionary_load_observer.h", | |
247 ] | |
248 } | |
249 if (!enable_app_list) { | |
250 sources -= [ | |
251 "../browser/sync/test/integration/sync_app_list_helper.cc", | |
252 "../browser/sync/test/integration/sync_app_list_helper.h", | |
253 ] | |
254 } | |
255 } | |
256 | |
257 test("sync_integration_tests") { | |
258 sources = rebase_path(gypi_values.sync_integration_tests_sources, | |
259 ".", "//chrome") | |
260 | |
261 # TODO(phajdan.jr): Only temporary, to make transition easier. | |
262 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
263 | |
264 deps = [ | |
265 ":sync_integration_test_support", | |
266 ":test_support", | |
267 "//base/allocator", | |
268 "//chrome:packed_extra_resources", | |
269 "//chrome:packed_resources", | |
270 "//chrome:resources", | |
271 "//chrome:strings", | |
272 "//chrome/common", | |
273 "//chrome/renderer", | |
274 "//crypto:platform", | |
275 "//sync", | |
276 "//testing/gmock", | |
277 "//testing/gtest", | |
278 "//third_party/icu", | |
279 "//third_party/leveldatabase", | |
280 "//third_party/npapi", | |
281 "//third_party/WebKit/public:blink", | |
282 ] | |
283 | |
284 if (cld_version == 0 || cld_version == 2) { | |
285 # Language detection is irrelevant to sync, so it can depend on any | |
286 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
287 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
288 } | |
289 if (is_mac) { | |
290 # Dictionary sync is disabled on Mac. | |
291 sources -= [ | |
292 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc" , | |
scottmg
2014/11/19 20:15:47
the ../ is kind of weird, do you think it's better
brettw
2014/11/19 20:22:36
I think there is value in keeping the toplevel Chr
| |
293 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc", | |
294 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", | |
295 ] | |
296 | |
297 # The sync_integration_tests do not run on mac without this flag. | |
298 # Search for comments about "xcode_settings" elsewhere in this file. | |
299 ldflags = [ "-Wl,-ObjC" ] | |
300 } | |
301 if (is_win) { | |
302 # TODO(GYP) figure out what these should map to. | |
303 #sources += [ | |
304 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
305 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
306 #] | |
307 deps += [ | |
308 "//third_party/wtl", | |
309 #'chrome_version_resources', TODO(GYP) | |
310 ] | |
311 | |
312 # TODO(GYP) | |
313 #'Debug': { 'msvs_settings': { 'VCLinkerTool': { | |
314 # 'LinkIncremental': '<(msvs_debug_link_nonincremental)', | |
315 } else { | |
316 sources -= [ | |
317 "../app/chrome_version.rc.version", | |
318 ] | |
319 } | |
320 | |
321 if (toolkit_views) { | |
322 deps += [ "//ui/views" ] | |
323 } | |
324 if (enable_basic_printing || enable_print_preview) { | |
325 deps += [ "//printing" ] | |
326 } | |
327 if (!enable_app_list) { | |
328 sources -= [ | |
329 "../browser/sync/test/integration/single_client_app_list_sync_test.cc", | |
330 "../browser/sync/test/integration/two_client_app_list_sync_test.cc", | |
331 ] | |
332 } | |
333 if (!enable_managed_users) { | |
334 sources -= [ | |
335 "../browser/sync/test/integration/single_client_supervised_user_settings_s ync_test.cc", | |
336 ] | |
337 } | |
338 } | |
339 | |
340 test("sync_performance_tests") { | |
341 sources = rebase_path(gypi_values.sync_performance_tests_sources, | |
342 ".", "//chrome") | |
343 | |
344 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
345 | |
346 deps = [ | |
347 ":sync_integration_test_support", | |
348 "//base/allocator", | |
349 "//crypto:platform", | |
350 "//sync", | |
351 "//testing/gmock", | |
352 "//testing/gtest", | |
353 ] | |
354 | |
355 if (cld_version == 0 || cld_version == 2) { | |
356 # Language detection is irrelevant to sync, so it can depend on any | |
357 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
358 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
359 } | |
360 | |
361 if (is_mac) { | |
362 # Dictionary sync is disabled on Mac. | |
363 sources -= [ | |
364 "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc ", | |
365 ] | |
366 | |
367 # The sync_performance_tests do not run on mac without this flag. | |
368 # Search for comments about "xcode_settings" elsewhere in this file. | |
369 ldflags = [ "-Wl,-ObjC" ] | |
370 } | |
371 if (is_win) { | |
372 # TODO(GYP) figure out what these should map to. | |
373 #sources += [ | |
374 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
375 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
376 #] | |
377 deps += [ | |
378 "//third_party/wtl", | |
379 #'chrome_version_resources', TODO(GYP) | |
380 ] | |
381 | |
382 # TODO(GYP) | |
scottmg
2014/11/19 20:15:46
just delete this
| |
383 #'Debug': { 'msvs_settings': { 'VCLinkerTool': { | |
384 # 'LinkIncremental': '<(msvs_debug_link_nonincremental)', | |
385 } else { | |
386 sources -= [ | |
387 "../app/chrome_version.rc.version", | |
388 ] | |
389 } | |
390 | |
391 if (toolkit_views) { | |
392 deps += [ "//ui/views" ] | |
393 } | |
394 } | |
OLD | NEW |