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 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 | 9 |
10 # Collection of all components. You wouldn't link to this, but this is rather | 10 # Collection of all components. You wouldn't link to this, but this is rather |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 output = "$root_out_dir/components_tests_resources.pak" | 300 output = "$root_out_dir/components_tests_resources.pak" |
301 | 301 |
302 deps = [ | 302 deps = [ |
303 "//components/resources", | 303 "//components/resources", |
304 "//components/strings", | 304 "//components/strings", |
305 "//ui/resources", | 305 "//ui/resources", |
306 "//ui/strings", | 306 "//ui/strings", |
307 ] | 307 ] |
308 } | 308 } |
309 | 309 |
310 if (is_linux && !is_chromeos) { | 310 test("components_browsertests") { |
Dirk Pranke
2015/03/27 03:12:35
I did not follow the pattern you set w/ components
| |
311 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 311 sources = [ |
312 "autofill/content/browser/risk/fingerprint_browsertest.cc", | |
313 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", | |
314 "dom_distiller/content/distiller_page_web_contents_browsertest.cc", | |
315 "password_manager/content/renderer/credential_manager_client_browsertest.cc" , | |
316 ] | |
312 | 317 |
313 # TODO(GYP): Finish me ... | 318 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
314 # test("components_browsertests") { | |
315 # sources = [ | |
316 # "autofill/content/browser/risk/fingerprint_browsertest.cc", | |
317 # "autofill/content/renderer/password_form_conversion_utils_browsertest.cc ", | |
318 # "dom_distiller/content/distiller_page_web_contents_browsertest.cc", | |
319 # "password_manager/content/renderer/credential_manager_client_browsertest .cc", | |
320 # ] | |
321 # | |
322 # defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
323 # | |
324 # deps = [ | |
325 # "//components/resources:components_resources", | |
326 # "//components/strings", | |
327 # "//components/autofill/content/browser", | |
328 # "//components/autofill/content/renderer", | |
329 # "//components/dom_distiller/content", | |
330 # "//components/dom_distiller/core", | |
331 # "//components/password_manager/content/renderer", | |
332 # "//testing/gmock", | |
333 # "//testing/gtest", | |
334 # "//content/public/common", | |
335 # "//content/public/renderer", | |
336 # ] | |
337 # | |
338 # if (is_android) { | |
339 # sources -= [ | |
340 # ] | |
341 # } | |
342 # if (is_linux) { | |
343 # # content_extractor_browsertest is a standalone content extraction tool built as | |
344 # # a MANUAL component_browsertest. | |
345 # sources += [ | |
346 # "dom_distiller/standalone/content_extractor_browsertest.cc", | |
347 # ] | |
348 # } | |
349 # } | |
350 | 319 |
351 test("components_perftests") { | 320 deps = [ |
352 sources = [ | 321 "autofill/content/browser", |
353 "visitedlink/test/visitedlink_perftest.cc", | 322 "autofill/content/renderer", |
354 ] | 323 "content_settings/core/common", |
324 "dom_distiller/content", | |
325 "dom_distiller/core", | |
326 "dom_distiller/core:test_support", | |
327 "password_manager/content/browser", | |
328 "password_manager/content/common", | |
329 "password_manager/content/renderer", | |
330 "strings", | |
331 "//base", | |
332 "//base/test:test_support", | |
333 "//content/test:browsertest_support", | |
334 "//content/test:test_support", | |
355 | 335 |
356 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 336 "//testing/gmock", |
357 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 337 "//testing/gtest", |
338 "//ui/base", | |
339 ] | |
358 | 340 |
359 deps = [ | 341 data_deps = [ ":components_tests_pak" ] |
360 "//base", | 342 |
361 "//base/test:test_support_perf", | 343 if (is_android) { |
362 "//testing/gtest", | 344 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] |
363 "//content/test:test_support", | 345 } |
364 "//components/visitedlink/browser", | 346 |
347 if (is_linux) { | |
348 # content_extractor_browsertest is a standalone content extraction tool buil t as | |
349 # a MANUAL component_browsertest. | |
350 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] | |
351 deps += [ | |
352 "pref_registry:test_support", | |
353 "//base:prefs_test_support", | |
365 ] | 354 ] |
366 } | 355 } |
367 } | 356 } |
357 | |
358 test("components_perftests") { | |
359 sources = [ | |
360 "visitedlink/test/visitedlink_perftest.cc", | |
361 ] | |
362 | |
363 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
364 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
365 | |
366 deps = [ | |
367 "//base", | |
368 "//base/test:test_support_perf", | |
369 "//testing/gtest", | |
370 "//content/test:test_support", | |
371 "//components/visitedlink/browser", | |
372 ] | |
373 } | |
OLD | NEW |