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

Side by Side Diff: components/BUILD.gn

Issue 1664653003: Revert of 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
15 # To add a unit test to this target, make a "unit_test" source_set in your 24 # To add a unit test to this target, make a "unit_test" source_set in your
16 # component (it's important to use a source_set instead of a static library or 25 # component (it's important to use a source_set instead of a static library or
17 # no tests will run) and add a reference here. You can add more than one unit 26 # no tests will run) and add a reference here. You can add more than one unit
18 # test target if convenient. 27 # test target if convenient.
19 test("components_unittests") { 28 test("components_unittests") {
20 sources = [ 29 sources = [
21 "test/run_all_unittests.cc", 30 "test/run_all_unittests.cc",
22 ] 31 ]
23 32
24 if (is_android || is_linux || is_mac || is_win) { 33 if (is_android || is_linux || is_mac || is_win) {
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml" 319 "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml"
311 } 320 }
312 321
313 android_resources("components_browsertests_resources") { 322 android_resources("components_browsertests_resources") {
314 testonly = true 323 testonly = true
315 resource_dirs = [ "//components/test/android/browsertests_apk/res" ] 324 resource_dirs = [ "//components/test/android/browsertests_apk/res" ]
316 custom_package = "org.chromium.components_browsertests_apk" 325 custom_package = "org.chromium.components_browsertests_apk"
317 } 326 }
318 } 327 }
319 328
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
320 test("components_browsertests") { 338 test("components_browsertests") {
321 sources = [] 339 sources = []
322 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 340 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
323 data = [] 341 data = []
324 deps = [ 342 deps = [
325 "//base", 343 "//base",
326 "//base/test:test_support", 344 "//base/test:test_support",
327 "//components/strings", 345 "//components/strings",
328 "//testing/gmock", 346 "//testing/gmock",
329 "//testing/gtest", 347 "//testing/gtest",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 if (!is_ios) { 452 if (!is_ios) {
435 deps += [ 453 deps += [
436 "//base", 454 "//base",
437 "//base/test:test_support_perf", 455 "//base/test:test_support_perf",
438 "//components/scheduler", 456 "//components/scheduler",
439 "//components/visitedlink/browser", 457 "//components/visitedlink/browser",
440 "//content/test:test_support", 458 "//content/test:test_support",
441 ] 459 ]
442 } 460 }
443 } 461 }
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