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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 if (is_ios) { | 391 if (is_ios) { |
392 deps -= [ "//components/devtools_http_handler:unit_tests" ] | 392 deps -= [ "//components/devtools_http_handler:unit_tests" ] |
393 } | 393 } |
394 | 394 |
395 if (!is_ios) { | 395 if (!is_ios) { |
396 deps += [ | 396 deps += [ |
397 "//components/safe_json:unit_tests", | 397 "//components/safe_json:unit_tests", |
398 "//components/scheduler:unit_tests", | 398 "//components/scheduler:unit_tests", |
399 ] | 399 ] |
400 } | 400 } |
| 401 |
| 402 if (enable_basic_printing || enable_print_preview) { |
| 403 deps += [ |
| 404 "//components/printing/browser", |
| 405 "//components/printing/common", |
| 406 "//components/printing/renderer", |
| 407 ] |
| 408 } |
401 } | 409 } |
402 | 410 |
403 repack("components_tests_pak") { | 411 repack("components_tests_pak") { |
404 sources = [ | 412 sources = [ |
405 "$root_gen_dir/components/components_resources.pak", | 413 "$root_gen_dir/components/components_resources.pak", |
406 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 414 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
407 ] | 415 ] |
408 | 416 |
409 output = "$root_out_dir/components_tests_resources.pak" | 417 output = "$root_out_dir/components_tests_resources.pak" |
410 | 418 |
(...skipping 11 matching lines...) Expand all Loading... |
422 ":components_browsertests", | 430 ":components_browsertests", |
423 ] | 431 ] |
424 } | 432 } |
425 | 433 |
426 test("components_browsertests") { | 434 test("components_browsertests") { |
427 sources = [ | 435 sources = [ |
428 "autofill/content/browser/risk/fingerprint_browsertest.cc", | 436 "autofill/content/browser/risk/fingerprint_browsertest.cc", |
429 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", | 437 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", |
430 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", | 438 "dom_distiller/content/browser/distillable_page_utils_browsertest.cc", |
431 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc", | 439 "dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc", |
| 440 "dom_distiller/content/browser/test/dom_distiller_js_browsertest.cc", |
432 "password_manager/content/renderer/credential_manager_client_browsertest.cc"
, | 441 "password_manager/content/renderer/credential_manager_client_browsertest.cc"
, |
433 ] | 442 ] |
434 | 443 |
435 data = [ | 444 data = [ |
436 "$root_out_dir/components_tests_resources.pak", | 445 "$root_out_dir/components_tests_resources.pak", |
437 "$root_out_dir/content_shell.pak", | 446 "$root_out_dir/content_shell.pak", |
438 ] | 447 ] |
439 | 448 |
440 if (is_android || is_linux || is_mac || is_win) { | 449 if (is_android || is_linux || is_mac || is_win) { |
441 data += [ | 450 data += [ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 496 |
488 if (is_linux) { | 497 if (is_linux) { |
489 # content_extractor_browsertest is a standalone content extraction tool buil
t as | 498 # content_extractor_browsertest is a standalone content extraction tool buil
t as |
490 # a MANUAL component_browsertest. | 499 # a MANUAL component_browsertest. |
491 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] | 500 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] |
492 deps += [ | 501 deps += [ |
493 "pref_registry:test_support", | 502 "pref_registry:test_support", |
494 "//base:prefs_test_support", | 503 "//base:prefs_test_support", |
495 ] | 504 ] |
496 } | 505 } |
| 506 |
| 507 if (enable_basic_printing || enable_print_preview) { |
| 508 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] |
| 509 deps += [ "//components/printing/test:test_support" ] |
| 510 } |
497 } | 511 } |
498 | 512 |
499 test("components_perftests") { | 513 test("components_perftests") { |
500 sources = [ | 514 sources = [ |
501 "scheduler/child/task_queue_manager_perftest.cc", | 515 "scheduler/child/task_queue_manager_perftest.cc", |
502 "visitedlink/test/visitedlink_perftest.cc", | 516 "visitedlink/test/visitedlink_perftest.cc", |
503 ] | 517 ] |
504 | 518 |
505 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 519 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
506 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 520 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
507 | 521 |
508 deps = [ | 522 deps = [ |
509 "//base", | 523 "//base", |
510 "//base/test:test_support_perf", | 524 "//base/test:test_support_perf", |
511 "//testing/gtest", | 525 "//testing/gtest", |
512 "//testing/perf", | 526 "//testing/perf", |
513 "//content/test:test_support", | 527 "//content/test:test_support", |
514 "//components/visitedlink/browser", | 528 "//components/visitedlink/browser", |
515 ] | 529 ] |
516 } | 530 } |
OLD | NEW |