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

Side by Side Diff: components/BUILD.gn

Issue 1662053002: Move gn _run target generation into test(). (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +kbr changes Created 4 years, 10 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 | « chrome/test/chromedriver/BUILD.gn ('k') | components/nacl/loader/BUILD.gn » ('j') | no next file with comments »
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("//build_overrides/webrtc.gni") 7 import("//build_overrides/webrtc.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 import("//tools/grit/repack.gni") 9 import("//tools/grit/repack.gni")
10 10
11 if (is_android) { 11 if (is_android) {
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } 13 }
14 14
15 # TODO(GYP): Delete this after we've converted everything to GN.
16 # The _run targets exist only for compatibility w/ GYP.
17 group("components_unittests_run") {
18 testonly = true
19 deps = [
20 ":components_unittests",
21 ]
22 }
23
24 # To add a unit test to this target, make a "unit_test" source_set in your 15 # To add a unit test to this target, make a "unit_test" source_set in your
25 # component (it's important to use a source_set instead of a static library or 16 # component (it's important to use a source_set instead of a static library or
26 # no tests will run) and add a reference here. You can add more than one unit 17 # no tests will run) and add a reference here. You can add more than one unit
27 # test target if convenient. 18 # test target if convenient.
28 test("components_unittests") { 19 test("components_unittests") {
29 sources = [ 20 sources = [
30 "test/run_all_unittests.cc", 21 "test/run_all_unittests.cc",
31 ] 22 ]
32 23
33 if (is_android || is_linux || is_mac || is_win) { 24 if (is_android || is_linux || is_mac || is_win) {
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" 314 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml"
324 } 315 }
325 316
326 android_resources("components_browsertests_resources") { 317 android_resources("components_browsertests_resources") {
327 testonly = true 318 testonly = true
328 resource_dirs = [ "//components/test/android/browsertests_apk/res" ] 319 resource_dirs = [ "//components/test/android/browsertests_apk/res" ]
329 custom_package = "org.chromium.components_browsertests_apk" 320 custom_package = "org.chromium.components_browsertests_apk"
330 } 321 }
331 } 322 }
332 323
333 # TODO(GYP): Delete this after we've converted everything to GN.
334 # The _run targets exist only for compatibility w/ GYP.
335 group("components_browsertests_run") {
336 testonly = true
337 deps = [
338 ":components_browsertests",
339 ]
340 }
341
342 test("components_browsertests") { 324 test("components_browsertests") {
343 sources = [] 325 sources = []
344 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 326 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
345 data = [] 327 data = []
346 deps = [ 328 deps = [
347 "//base", 329 "//base",
348 "//base/test:test_support", 330 "//base/test:test_support",
349 "//components/strings", 331 "//components/strings",
350 "//testing/gmock", 332 "//testing/gmock",
351 "//testing/gtest", 333 "//testing/gtest",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 if (!is_ios) { 438 if (!is_ios) {
457 deps += [ 439 deps += [
458 "//base", 440 "//base",
459 "//base/test:test_support_perf", 441 "//base/test:test_support_perf",
460 "//components/scheduler", 442 "//components/scheduler",
461 "//components/visitedlink/browser", 443 "//components/visitedlink/browser",
462 "//content/test:test_support", 444 "//content/test:test_support",
463 ] 445 ]
464 } 446 }
465 } 447 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/BUILD.gn ('k') | components/nacl/loader/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698