Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: components/BUILD.gn

Issue 2358063002: Preparing components_perftests (Closed)
Patch Set: minimal chages Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/test/DEPS » ('j') | components/test/components_test_suite.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_suite.cc",
41 "test/components_test_suite.h",
Peter Kasting 2016/10/17 18:44:45 I don't think you want these sources (and their de
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "//components/update_client:unit_tests", 142 "//components/update_client:unit_tests",
141 "//components/upload_list:unit_tests", 143 "//components/upload_list:unit_tests",
142 "//components/url_formatter:unit_tests", 144 "//components/url_formatter:unit_tests",
143 "//components/url_matcher:unit_tests", 145 "//components/url_matcher:unit_tests",
144 "//components/user_prefs/tracked:unit_tests", 146 "//components/user_prefs/tracked:unit_tests",
145 "//components/variations:unit_tests", 147 "//components/variations:unit_tests",
146 "//components/variations/service:unit_tests", 148 "//components/variations/service:unit_tests",
147 "//components/web_resource:unit_tests", 149 "//components/web_resource:unit_tests",
148 "//components/webdata/common:unit_tests", 150 "//components/webdata/common:unit_tests",
149 151
150 # Direct dependencies of components/test/run_all_unittests.cc. 152 # Direct dependencies of components/test/components_test_suite.cc.
151 "//components/content_settings/core/common", 153 "//components/content_settings/core/common",
152 "//mojo/edk/system", 154 "//mojo/edk/system",
153 "//net", 155 "//net",
154 "//testing/gtest", 156 "//testing/gtest",
155 "//ui/base", 157 "//ui/base",
156 "//ui/resources:ui_test_pak", 158 "//ui/resources:ui_test_pak",
157 ] 159 ]
158 160
159 if (enable_nacl) { 161 if (enable_nacl) {
160 deps += [ "//components/nacl/browser:unit_tests" ] 162 deps += [ "//components/nacl/browser:unit_tests" ]
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "test/components_test_suite.cc",
481 "test/components_test_suite.h",
482 "test/run_all_perftests.cc",
478 "visitedlink/test/visitedlink_perftest.cc", 483 "visitedlink/test/visitedlink_perftest.cc",
479 ] 484 ]
480 485
481 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 486 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
482 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 487 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
483 488
484 deps = [ 489 deps = [
485 "//base", 490 "//base",
486 "//base/test:test_support",
487 "//components/visitedlink/browser", 491 "//components/visitedlink/browser",
488 "//content/test:test_support", 492 "//content/test:test_support",
489 "//mojo/edk/test:run_all_perftests",
490 "//testing/gtest", 493 "//testing/gtest",
491 "//testing/perf", 494 "//testing/perf",
492 "//url", 495 "//url",
496
497 # Direct dependencies of components/test/components_test_suite.cc.
498 "//components/content_settings/core/common",
499 "//mojo/edk/system",
500 "//net",
501 "//testing/gtest",
502 "//ui/base",
503 "//ui/resources:ui_test_pak",
493 ] 504 ]
494 } 505 }
495 } 506 }
OLDNEW
« no previous file with comments | « no previous file | components/test/DEPS » ('j') | components/test/components_test_suite.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698