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 if (is_android) { | 10 if (is_android) { |
(...skipping 19 matching lines...) Expand all Loading... |
30 ] | 30 ] |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 # To add a unit test to this target, make a "unit_test" source_set in your | 34 # To add a unit test to this target, make a "unit_test" source_set in your |
35 # component (it's important to use a source_set instead of a static library or | 35 # component (it's important to use a source_set instead of a static library or |
36 # no tests will run) and add a reference here. You can add more than one unit | 36 # no tests will run) and add a reference here. You can add more than one unit |
37 # test target if convenient. | 37 # test target if convenient. |
38 test("components_unittests") { | 38 test("components_unittests") { |
39 sources = [ | 39 sources = [ |
| 40 "test/components_test_suit.cc", |
| 41 "test/components_test_suit.h", |
40 "test/run_all_unittests.cc", | 42 "test/run_all_unittests.cc", |
41 ] | 43 ] |
42 | 44 |
43 if (is_android || is_linux || is_mac || is_win) { | 45 if (is_android || is_linux || is_mac || is_win) { |
44 data = [ | 46 data = [ |
45 "test/data/", | 47 "test/data/", |
46 | 48 |
47 # TODO(dpranke): Remove the next two lines after GN has rolled to 339778. | 49 # TODO(dpranke): Remove the next two lines after GN has rolled to 339778. |
48 "$root_out_dir/components_tests_resources.pak", | 50 "$root_out_dir/components_tests_resources.pak", |
49 "$root_out_dir/ui_test.pak", | 51 "$root_out_dir/ui_test.pak", |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 470 } |
469 | 471 |
470 if (enable_basic_printing || enable_print_preview) { | 472 if (enable_basic_printing || enable_print_preview) { |
471 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] | 473 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] |
472 deps += [ "//components/printing/test:test_support" ] | 474 deps += [ "//components/printing/test:test_support" ] |
473 } | 475 } |
474 } | 476 } |
475 | 477 |
476 test("components_perftests") { | 478 test("components_perftests") { |
477 sources = [ | 479 sources = [ |
| 480 "omnibox/browser/history_quick_provider_performance_unittest.cc", |
| 481 "test/components_test_suit.cc", |
| 482 "test/components_test_suit.h", |
| 483 "test/run_all_perftests.cc", |
478 "visitedlink/test/visitedlink_perftest.cc", | 484 "visitedlink/test/visitedlink_perftest.cc", |
479 ] | 485 ] |
480 | 486 |
481 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 487 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
482 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 488 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
483 | 489 |
484 deps = [ | 490 deps = [ |
485 "//base", | 491 "//base", |
486 "//base/test:test_support", | 492 "//base/test:test_support", |
487 "//base/test:test_support_perf", | 493 "//components/omnibox/browser/", |
488 "//components/visitedlink/browser", | 494 "//components/visitedlink/browser", |
489 "//content/test:test_support", | 495 "//content/test:test_support", |
490 "//testing/gtest", | 496 "//testing/gtest", |
491 "//testing/perf", | 497 "//testing/perf", |
492 "//url", | 498 "//url", |
493 ] | 499 ] |
494 } | 500 } |
495 } | 501 } |
OLD | NEW |