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

Side by Side Diff: components/BUILD.gn

Issue 1653003006: Move gn _run target generation into test(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" 310 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml"
320 } 311 }
321 312
322 android_resources("components_browsertests_resources") { 313 android_resources("components_browsertests_resources") {
323 testonly = true 314 testonly = true
324 resource_dirs = [ "//components/test/android/browsertests_apk/res" ] 315 resource_dirs = [ "//components/test/android/browsertests_apk/res" ]
325 custom_package = "org.chromium.components_browsertests_apk" 316 custom_package = "org.chromium.components_browsertests_apk"
326 } 317 }
327 } 318 }
328 319
329 # TODO(GYP): Delete this after we've converted everything to GN.
330 # The _run targets exist only for compatibility w/ GYP.
331 group("components_browsertests_run") {
332 testonly = true
333 deps = [
334 ":components_browsertests",
335 ]
336 }
337
338 test("components_browsertests") { 320 test("components_browsertests") {
339 sources = [] 321 sources = []
340 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 322 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
341 data = [] 323 data = []
342 deps = [ 324 deps = [
343 "//base", 325 "//base",
344 "//base/test:test_support", 326 "//base/test:test_support",
345 "//components/strings", 327 "//components/strings",
346 "//testing/gmock", 328 "//testing/gmock",
347 "//testing/gtest", 329 "//testing/gtest",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 if (!is_ios) { 434 if (!is_ios) {
453 deps += [ 435 deps += [
454 "//base", 436 "//base",
455 "//base/test:test_support_perf", 437 "//base/test:test_support_perf",
456 "//components/scheduler", 438 "//components/scheduler",
457 "//components/visitedlink/browser", 439 "//components/visitedlink/browser",
458 "//content/test:test_support", 440 "//content/test:test_support",
459 ] 441 ]
460 } 442 }
461 } 443 }
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