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

Side by Side Diff: content/test/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 | « 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 "//testing/perf", 810 "//testing/perf",
829 "//ui/gfx", 811 "//ui/gfx",
830 "//ui/gfx/geometry", 812 "//ui/gfx/geometry",
831 ] 813 ]
832 814
833 if (is_android) { 815 if (is_android) {
834 deps += [ "//testing/android/native_test:native_test_native_code" ] 816 deps += [ "//testing/android/native_test:native_test_native_code" ]
835 } 817 }
836 } 818 }
837 819
838 # TODO(GYP): Delete this after we've converted everything to GN.
839 # The _run targets exist only for compatibility w/ GYP.
840 group("content_gl_tests_run") {
841 testonly = true
842 deps = [
843 ":content_gl_tests",
844 ]
845 }
846
847 test("content_gl_tests") { 820 test("content_gl_tests") {
848 sources = [ 821 sources = [
849 "../common/gpu/client/gl_helper_unittest.cc", 822 "../common/gpu/client/gl_helper_unittest.cc",
850 "../common/gpu/client/gpu_in_process_context_tests.cc", 823 "../common/gpu/client/gpu_in_process_context_tests.cc",
851 ] 824 ]
852 825
853 deps = [ 826 deps = [
854 ":test_support", 827 ":test_support",
855 "//base/test:test_support", 828 "//base/test:test_support",
856 "//content/public/common", 829 "//content/public/common",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 deps += [ 906 deps += [
934 "//gpu:test_support", 907 "//gpu:test_support",
935 "//media/base/android", 908 "//media/base/android",
936 "//media/base/android:media_java", 909 "//media/base/android:media_java",
937 "//testing/gmock", 910 "//testing/gmock",
938 "//ui/android:ui_java", 911 "//ui/android:ui_java",
939 ] 912 ]
940 } 913 }
941 } 914 }
942 } 915 }
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