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

Side by Side Diff: content/test/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 | « components/nacl/loader/BUILD.gn ('k') | crypto/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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//build_overrides/v8.gni") 9 import("//build_overrides/v8.gni")
10 import("//mojo/public/tools/bindings/mojom.gni") 10 import("//mojo/public/tools/bindings/mojom.gni")
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 ] 332 ]
333 } 333 }
334 334
335 android_resources("content_browsertests_resources") { 335 android_resources("content_browsertests_resources") {
336 testonly = true 336 testonly = true
337 resource_dirs = [ "//content/shell/android/browsertests_apk/res" ] 337 resource_dirs = [ "//content/shell/android/browsertests_apk/res" ]
338 custom_package = "org.chromium.content_browsertests_apk" 338 custom_package = "org.chromium.content_browsertests_apk"
339 } 339 }
340 } 340 }
341 341
342 # TODO(GYP): Delete this after we've converted everything to GN.
343 # The _run targets exist only for compatibility w/ GYP.
344 group("content_browsertests_run") {
345 testonly = true
346 deps = [
347 ":content_browsertests",
348 ]
349 }
350
351 test("content_browsertests") { 342 test("content_browsertests") {
352 sources = rebase_path(content_tests_gypi_values.content_browsertests_sources, 343 sources = rebase_path(content_tests_gypi_values.content_browsertests_sources,
353 ".", 344 ".",
354 "//content") 345 "//content")
355 346
356 if (is_android || is_linux || is_mac || is_win) { 347 if (is_android || is_linux || is_mac || is_win) {
357 data = [ 348 data = [
358 "data/", 349 "data/",
359 "//net/data/", 350 "//net/data/",
360 "//media/test/data/", 351 "//media/test/data/",
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 ] 544 ]
554 } else { 545 } else {
555 sources -= [ 546 sources -= [
556 "../browser/accessibility/touch_accessibility_aura_browsertest.cc", 547 "../browser/accessibility/touch_accessibility_aura_browsertest.cc",
557 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro wsertest.cc", 548 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro wsertest.cc",
558 "../browser/web_contents/web_contents_view_aura_browsertest.cc", 549 "../browser/web_contents/web_contents_view_aura_browsertest.cc",
559 ] 550 ]
560 } 551 }
561 } 552 }
562 553
563 # TODO(GYP): Delete this after we've converted everything to GN.
564 # The _run targets exist only for compatibility w/ GYP.
565 group("content_unittests_run") {
566 testonly = true
567 deps = [
568 ":content_unittests",
569 ]
570 }
571
572 test("content_unittests") { 554 test("content_unittests") {
573 defines = [] 555 defines = []
574 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, 556 sources = rebase_path(content_tests_gypi_values.content_unittests_sources,
575 ".", 557 ".",
576 "//content") 558 "//content")
577 559
578 if (is_android || is_linux || is_mac || is_win) { 560 if (is_android || is_linux || is_mac || is_win) {
579 data = [ 561 data = [
580 "data/", 562 "data/",
581 "//net/data/ssl/certificates/", 563 "//net/data/ssl/certificates/",
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 "//testing/perf", 809 "//testing/perf",
828 "//ui/gfx", 810 "//ui/gfx",
829 "//ui/gfx/geometry", 811 "//ui/gfx/geometry",
830 ] 812 ]
831 813
832 if (is_android) { 814 if (is_android) {
833 deps += [ "//testing/android/native_test:native_test_native_code" ] 815 deps += [ "//testing/android/native_test:native_test_native_code" ]
834 } 816 }
835 } 817 }
836 818
837 # TODO(GYP): Delete this after we've converted everything to GN.
838 # The _run targets exist only for compatibility w/ GYP.
839 group("content_gl_tests_run") {
840 testonly = true
841 deps = [
842 ":content_gl_tests",
843 ]
844 }
845
846 test("content_gl_tests") { 819 test("content_gl_tests") {
847 sources = [ 820 sources = [
848 "../common/gpu/client/gl_helper_unittest.cc", 821 "../common/gpu/client/gl_helper_unittest.cc",
849 "../common/gpu/client/gpu_in_process_context_tests.cc", 822 "../common/gpu/client/gpu_in_process_context_tests.cc",
850 ] 823 ]
851 824
852 deps = [ 825 deps = [
853 ":test_support", 826 ":test_support",
854 "//base/test:test_support", 827 "//base/test:test_support",
855 "//content/public/common", 828 "//content/public/common",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 deps += [ 905 deps += [
933 "//gpu:test_support", 906 "//gpu:test_support",
934 "//media/base/android", 907 "//media/base/android",
935 "//media/base/android:media_java", 908 "//media/base/android:media_java",
936 "//testing/gmock", 909 "//testing/gmock",
937 "//ui/android:ui_java", 910 "//ui/android:ui_java",
938 ] 911 ]
939 } 912 }
940 } 913 }
941 } 914 }
OLDNEW
« no previous file with comments | « components/nacl/loader/BUILD.gn ('k') | crypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698