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

Side by Side Diff: components/BUILD.gn

Issue 2358063002: Preparing components_perftests (Closed)
Patch Set: Review, round 1 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/BUILD.gn » ('j') | components/test/BUILD.gn » ('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/18 17:31:12 You still list these sources here and below, thoug
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 "//components/ssl_config:unit_tests", 128 "//components/ssl_config:unit_tests",
127 "//components/ssl_errors:unit_tests", 129 "//components/ssl_errors:unit_tests",
128 "//components/subresource_filter/core/browser:unit_tests", 130 "//components/subresource_filter/core/browser:unit_tests",
129 "//components/subresource_filter/core/common:unit_tests", 131 "//components/subresource_filter/core/common:unit_tests",
130 "//components/suggestions:unit_tests", 132 "//components/suggestions:unit_tests",
131 "//components/supervised_user_error_page:unit_tests", 133 "//components/supervised_user_error_page:unit_tests",
132 "//components/sync:unit_tests", 134 "//components/sync:unit_tests",
133 "//components/sync_bookmarks:unit_tests", 135 "//components/sync_bookmarks:unit_tests",
134 "//components/sync_sessions:unit_tests", 136 "//components/sync_sessions:unit_tests",
135 "//components/syncable_prefs:unit_tests", 137 "//components/syncable_prefs:unit_tests",
138 "//components/test:test_support",
136 "//components/translate/core/browser:unit_tests", 139 "//components/translate/core/browser:unit_tests",
137 "//components/translate/core/common:unit_tests", 140 "//components/translate/core/common:unit_tests",
138 "//components/translate/core/language_detection:unit_tests", 141 "//components/translate/core/language_detection:unit_tests",
139 "//components/undo:unit_tests", 142 "//components/undo:unit_tests",
140 "//components/update_client:unit_tests", 143 "//components/update_client:unit_tests",
141 "//components/upload_list:unit_tests", 144 "//components/upload_list:unit_tests",
142 "//components/url_formatter:unit_tests", 145 "//components/url_formatter:unit_tests",
143 "//components/url_matcher:unit_tests", 146 "//components/url_matcher:unit_tests",
144 "//components/user_prefs/tracked:unit_tests", 147 "//components/user_prefs/tracked:unit_tests",
145 "//components/variations:unit_tests", 148 "//components/variations:unit_tests",
146 "//components/variations/service:unit_tests", 149 "//components/variations/service:unit_tests",
147 "//components/web_resource:unit_tests", 150 "//components/web_resource:unit_tests",
148 "//components/webdata/common:unit_tests", 151 "//components/webdata/common:unit_tests",
149
150 # Direct dependencies of components/test/run_all_unittests.cc.
151 "//components/content_settings/core/common",
152 "//mojo/edk/system",
153 "//net",
154 "//testing/gtest",
155 "//ui/base",
156 "//ui/resources:ui_test_pak",
157 ] 152 ]
158 153
159 if (enable_nacl) { 154 if (enable_nacl) {
160 deps += [ "//components/nacl/browser:unit_tests" ] 155 deps += [ "//components/nacl/browser:unit_tests" ]
161 } 156 }
162 157
163 if (is_ios) { 158 if (is_ios) {
164 deps += [ 159 deps += [
165 "//components/signin/ios/browser:unit_tests", 160 "//components/signin/ios/browser:unit_tests",
166 "//components/translate/ios/browser:unit_tests", 161 "//components/translate/ios/browser:unit_tests",
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 463 }
469 464
470 if (enable_basic_printing || enable_print_preview) { 465 if (enable_basic_printing || enable_print_preview) {
471 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ] 466 sources += [ "printing/test/print_web_view_helper_browsertest.cc" ]
472 deps += [ "//components/printing/test:test_support" ] 467 deps += [ "//components/printing/test:test_support" ]
473 } 468 }
474 } 469 }
475 470
476 test("components_perftests") { 471 test("components_perftests") {
477 sources = [ 472 sources = [
473 "test/components_test_suite.cc",
474 "test/components_test_suite.h",
475 "test/run_all_perftests.cc",
478 "visitedlink/test/visitedlink_perftest.cc", 476 "visitedlink/test/visitedlink_perftest.cc",
479 ] 477 ]
480 478
481 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 479 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
482 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 480 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
483 481
484 deps = [ 482 deps = [
485 "//base", 483 "//base",
486 "//base/test:test_support", 484 "//components/test:test_support",
487 "//components/visitedlink/browser", 485 "//components/visitedlink/browser",
488 "//content/test:test_support", 486 "//content/test:test_support",
489 "//mojo/edk/test:run_all_perftests",
490 "//testing/gtest",
491 "//testing/perf", 487 "//testing/perf",
492 "//url", 488 "//url",
493 ] 489 ]
494 } 490 }
495 } 491 }
OLDNEW
« no previous file with comments | « no previous file | components/test/BUILD.gn » ('j') | components/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698