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

Side by Side Diff: chrome/test/BUILD.gn

Issue 1957683002: Address more TODO(GYP) in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@todo
Patch Set: iOS Created 4 years, 7 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/installer/util/BUILD.gn ('k') | chrome/tools/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/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/chrome_tests.gni") 10 import("//chrome/chrome_tests.gni")
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 237 }
238 238
239 if (enable_extensions) { 239 if (enable_extensions) {
240 public_deps += [ 240 public_deps += [
241 "//chrome/common/extensions/api", 241 "//chrome/common/extensions/api",
242 "//extensions:test_support", 242 "//extensions:test_support",
243 ] 243 ]
244 } 244 }
245 } 245 }
246 246
247 # TODO(GYP): Delete this after we've converted everything to GN. 247 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
248 # The _run targets exist only for compatibility w/ GYP. 248 # The _run targets exist only for compatibility w/ GYP.
249 group("telemetry_gpu_test_run") { 249 group("telemetry_gpu_test_run") {
250 testonly = true 250 testonly = true
251 deps = [ 251 deps = [
252 ":telemetry_gpu_test", 252 ":telemetry_gpu_test",
253 ] 253 ]
254 } 254 }
255 255
256 group("telemetry_gpu_test") { 256 group("telemetry_gpu_test") {
257 testonly = true 257 testonly = true
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 # crbug.com/230471 695 # crbug.com/230471
696 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] 696 sources -= [ "data/webui/accessibility_audit_browsertest.js" ]
697 } 697 }
698 if (!is_chromeos) { 698 if (!is_chromeos) {
699 sources -= [ 699 sources -= [
700 "data/webui/certificate_viewer_dialog_test.js", 700 "data/webui/certificate_viewer_dialog_test.js",
701 "data/webui/settings/bluetooth_page_browsertest_chromeos.js", 701 "data/webui/settings/bluetooth_page_browsertest_chromeos.js",
702 "data/webui/settings/easy_unlock_browsertest_chromeos.js", 702 "data/webui/settings/easy_unlock_browsertest_chromeos.js",
703 ] 703 ]
704 } 704 }
705 if (is_mac) {
706 sources -= [
707 # TODO(rouslan): This test depends on the custom dictionary UI,
708 # which is disabled on Mac.
709 "../browser/ui/webui/options/edit_dictionary_browsertest.js",
710
711 # TODO(rouslan): This test depends on hunspell and we cannot run it
712 # on Mac, which does not use hunspell by default.
713 "../browser/ui/webui/options/language_options_dictionary_download_browse rtest.js",
714 ]
715 }
705 if (!enable_app_list) { 716 if (!enable_app_list) {
706 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] 717 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ]
707 } 718 }
708 if (!enable_print_preview) { 719 if (!enable_print_preview) {
709 sources -= [ "data/webui/print_preview.js" ] 720 sources -= [ "data/webui/print_preview.js" ]
710 } 721 }
711 if (enable_media_router) { 722 if (enable_media_router) {
712 sources += 723 sources +=
713 [ "data/webui/media_router/media_router_elements_browsertest.js" ] 724 [ "data/webui/media_router/media_router_elements_browsertest.js" ]
714 } 725 }
715 deps = [ 726 deps = [
716 "//chrome/browser/ui", 727 "//chrome/browser/ui",
717 "//skia", 728 "//skia",
718 ] 729 ]
719 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 730 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
720 } 731 }
721 732
722 # TODO(GYP): Delete this after we've converted everything to GN. 733 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
723 # The _run targets exist only for compatibility w/ GYP. 734 # The _run targets exist only for compatibility w/ GYP.
724 group("telemetry_perf_unittests_run") { 735 group("telemetry_perf_unittests_run") {
725 testonly = true 736 testonly = true
726 deps = [ 737 deps = [
727 ":telemetry_perf_unittests", 738 ":telemetry_perf_unittests",
728 ] 739 ]
729 } 740 }
730 741
731 group("telemetry_perf_unittests") { 742 group("telemetry_perf_unittests") {
732 testonly = true 743 testonly = true
733 deps = [ 744 deps = [
734 "//tools/perf:perf", 745 "//tools/perf:perf",
735 ] 746 ]
736 747
737 data = [ 748 data = [
738 # For isolate contract. 749 # For isolate contract.
739 "//testing/scripts/common.py", 750 "//testing/scripts/common.py",
740 "//testing/xvfb.py", 751 "//testing/xvfb.py",
741 "//testing/scripts/run_telemetry_as_googletest.py", 752 "//testing/scripts/run_telemetry_as_googletest.py",
742 ] 753 ]
743 } 754 }
744 755
745 # TODO(GYP): Delete this after we've converted everything to GN. 756 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
746 # The _run targets exist only for compatibility w/ GYP. 757 # The _run targets exist only for compatibility w/ GYP.
747 group("telemetry_unittests_run") { 758 group("telemetry_unittests_run") {
748 testonly = true 759 testonly = true
749 deps = [ 760 deps = [
750 ":telemetry_unittests", 761 ":telemetry_unittests",
751 ] 762 ]
752 } 763 }
753 764
754 group("telemetry_unittests") { 765 group("telemetry_unittests") {
755 testonly = true 766 testonly = true
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 805
795 # From telemetry_gpu_unittests.isolate 806 # From telemetry_gpu_unittests.isolate
796 "//third_party/pylint/", 807 "//third_party/pylint/",
797 "//third_party/logilab/", 808 "//third_party/logilab/",
798 "//testing/scripts/common.py", 809 "//testing/scripts/common.py",
799 "//testing/xvfb.py", 810 "//testing/xvfb.py",
800 "//testing/scripts/run_telemetry_as_googletest.py", 811 "//testing/scripts/run_telemetry_as_googletest.py",
801 ] 812 ]
802 } 813 }
803 814
804 # TODO(GYP): Delete this after we've converted everything to GN. 815 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
805 # The _run targets exist only for compatibility w/ GYP. 816 # The _run targets exist only for compatibility w/ GYP.
806 group("tab_capture_end2end_tests_run") { 817 group("tab_capture_end2end_tests_run") {
807 testonly = true 818 testonly = true
808 deps = [ 819 deps = [
809 ":browser_tests", 820 ":browser_tests",
810 ] 821 ]
811 } 822 }
812 823
813 # TODO(GYP): Delete this after we've converted everything to GN. 824 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
814 # The _run targets exist only for compatibility w/ GYP. 825 # The _run targets exist only for compatibility w/ GYP.
815 group("mash_browser_tests_run") { 826 group("mash_browser_tests_run") {
816 testonly = true 827 testonly = true
817 deps = [ 828 deps = [
818 ":mash_browser_tests", 829 ":mash_browser_tests",
819 ] 830 ]
820 } 831 }
821 832
822 group("mash_browser_tests") { 833 group("mash_browser_tests") {
823 testonly = true 834 testonly = true
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 "//third_party/mesa:osmesa", 978 "//third_party/mesa:osmesa",
968 "//third_party/widevine/cdm:widevine_test_license_server", 979 "//third_party/widevine/cdm:widevine_test_license_server",
969 ] 980 ]
970 981
971 if (!is_mac) { 982 if (!is_mac) {
972 data_deps += [ "//chrome:packed_extra_resources" ] 983 data_deps += [ "//chrome:packed_extra_resources" ]
973 } 984 }
974 985
975 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 986 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
976 987
977 # TODO(GYP) if (is_win) {
978 # ['incremental_chrome_dll==1', {
979 # 'UseLibraryDependencyInputs': "true",
980 # }
981
982 if (!enable_one_click_signin) { 988 if (!enable_one_click_signin) {
983 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ] 989 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ]
984 } 990 }
985 if (enable_nacl) { 991 if (enable_nacl) {
986 sources += [ 992 sources += [
987 "../browser/extensions/extension_nacl_browsertest.cc", 993 "../browser/extensions/extension_nacl_browsertest.cc",
988 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc", 994 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
989 "nacl/nacl_browsertest.cc", 995 "nacl/nacl_browsertest.cc",
990 "nacl/nacl_browsertest_uma.cc", 996 "nacl/nacl_browsertest_uma.cc",
991 "nacl/nacl_browsertest_util.cc", 997 "nacl/nacl_browsertest_util.cc",
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 if (is_mac) { 1192 if (is_mac) {
1187 # TODO(mark): We really want this for all non-static library 1193 # TODO(mark): We really want this for all non-static library
1188 # targets, but when we tried to pull it up to the common.gypi 1194 # targets, but when we tried to pull it up to the common.gypi
1189 # level, it broke other things like the ui and startup tests. *shrug* 1195 # level, it broke other things like the ui and startup tests. *shrug*
1190 ldflags = [ "-Wl,-ObjC" ] 1196 ldflags = [ "-Wl,-ObjC" ]
1191 1197
1192 # Other platforms only need 1198 # Other platforms only need
1193 # chrome_resources.gyp:{packed_extra_resources,packed_resources}, 1199 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
1194 # and can build this target standalone much faster. 1200 # and can build this target standalone much faster.
1195 deps += [ 1201 deps += [
1196 #'app_mode_app_support', TODO(GYP)
1197 "//chrome", 1202 "//chrome",
1203 "//chrome/common:app_mode_app_support",
1198 1204
1199 #'../components/components.gyp:breakpad_stubs', TODO(GYP) 1205 # TODO(GYP) Mac: GYP has this dependency. Uncommenting this line
1206 # generates duplicate symbols between
1207 # obj/components/crash/content/app/breakpad_stubs/crash_reporter_clien t.o
1208 # obj/components/crash/content/app/lib/crash_reporter_client.o
1209 # It's not clear how this is supposed to work. The intent seems to be
1210 # to not link breakpad in the tests. The dependency on .../app:lib
1211 # seems to come from //chrome/app:test_support. That reference maybe
1212 # should be a dependency on the stubs instead because it could be all
1213 # tests might want them. Or it could be that we need to make a new
1214 # "headers" target to make GN check happy, and then force each
1215 # executable to link the correct implementation. Somebody with a
1216 # higher-level understanding of Mac crash reporting needs to think
1217 # about this.
1218 # "//components/crash/content/app:breakpad_stubs",
1200 "//third_party/ocmock", 1219 "//third_party/ocmock",
1201 ] 1220 ]
1202 sources += [ 1221 sources += [
1203 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm", 1222 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm",
1204 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsert est.cc", 1223 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsert est.cc",
1205 ] 1224 ]
1206 sources -= [ 1225 sources -= [
1207 # TODO(groby): This test depends on hunspell and we cannot run it on 1226 # TODO(groby): This test depends on hunspell and we cannot run it on
1208 # Mac, which does not use hunspell by default. 1227 # Mac, which does not use hunspell by default.
1209 "../browser/spellchecker/spellcheck_service_browsertest.cc", 1228 "../browser/spellchecker/spellcheck_service_browsertest.cc",
1210 1229
1211 # TODO(rouslan): This test depends on the custom dictionary UI,
1212 # which is disabled on Mac.
1213 # TODO(GYP): This should be added somewhere first ...
1214 # "../browser/ui/webui/options/edit_dictionary_browsertest.js",
1215
1216 # TODO(rouslan): This test depends on hunspell and we cannot run it
1217 # on Mac, which does use hunspell by default.
1218 # TODO(GYP): This should be added somewhere first ...
1219 # "../browser/ui/webui/options/language_options_dictionary_download_brow sertest.js",
1220
1221 # ProcessSingletonMac doesn"t do anything. 1230 # ProcessSingletonMac doesn"t do anything.
1222 "../browser/process_singleton_browsertest.cc", 1231 "../browser/process_singleton_browsertest.cc",
1223 1232
1224 # This test depends on GetCommandLineForRelaunch, which is not 1233 # This test depends on GetCommandLineForRelaunch, which is not
1225 # available on Mac. 1234 # available on Mac.
1226 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" , 1235 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1227 1236
1228 # single-process mode hangs on Mac sometimes because of multiple UI 1237 # single-process mode hangs on Mac sometimes because of multiple UI
1229 # message loops. See 306348 1238 # message loops. See 306348
1230 "../renderer/safe_browsing/phishing_classifier_browsertest.cc", 1239 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc", 1353 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1345 ] 1354 ]
1346 } 1355 }
1347 if (is_android || is_ios) { 1356 if (is_android || is_ios) {
1348 } 1357 }
1349 if (enable_remoting) { 1358 if (enable_remoting) {
1350 sources += rebase_path( 1359 sources += rebase_path(
1351 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources, 1360 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
1352 ".", 1361 ".",
1353 "//chrome") 1362 "//chrome")
1354 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP) 1363 deps += [ "//remoting/webapp" ]
1355 } 1364 }
1356 if (use_x11) { 1365 if (use_x11) {
1357 deps += [ "//tools/xdisplaycheck" ] 1366 deps += [ "//tools/xdisplaycheck" ]
1358 } 1367 }
1359 1368
1360 if (use_aura) { 1369 if (use_aura) {
1361 sources += [ 1370 sources += [
1362 "base/mash_browser_tests_main.cc", 1371 "base/mash_browser_tests_main.cc",
1363 "base/mash_browser_tests_main.h", 1372 "base/mash_browser_tests_main.h",
1364 "base/mojo_test_connector.cc", 1373 "base/mojo_test_connector.cc",
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 "//third_party/cld_2:cld2_static", 1679 "//third_party/cld_2:cld2_static",
1671 "//third_party/icu", 1680 "//third_party/icu",
1672 "//third_party/libxml", 1681 "//third_party/libxml",
1673 "//ui/base:test_support", 1682 "//ui/base:test_support",
1674 "//ui/display:test_support", 1683 "//ui/display:test_support",
1675 "//ui/gfx:test_support", 1684 "//ui/gfx:test_support",
1676 "//ui/resources", 1685 "//ui/resources",
1677 ] 1686 ]
1678 data_deps = [] 1687 data_deps = []
1679 1688
1680 # TODO(GYP) Windows stuff
1681 # ['incremental_chrome_dll==1', {
1682 # 'UseLibraryDependencyInputs': "true",
1683
1684 if (!is_ios) { 1689 if (!is_ios) {
1685 deps += [ 1690 deps += [
1686 "//components/autofill/content/renderer:test_support", 1691 "//components/autofill/content/renderer:test_support",
1687 "//components/data_reduction_proxy/core/browser:test_support", 1692 "//components/data_reduction_proxy/core/browser:test_support",
1688 "//components/data_use_measurement/core", 1693 "//components/data_use_measurement/core",
1689 "//components/metrics/proto", 1694 "//components/metrics/proto",
1690 "//components/safe_browsing_db", 1695 "//components/safe_browsing_db",
1691 "//components/safe_json:test_support", 1696 "//components/safe_json:test_support",
1692 "//components/strings", 1697 "//components/strings",
1693 "//components/webdata_services:test_support", 1698 "//components/webdata_services:test_support",
1694 "//content/app/resources", 1699 "//content/app/resources",
1695 "//device/bluetooth:mocks", 1700 "//device/bluetooth:mocks",
1696 "//device/core:mocks", 1701 "//device/core:mocks",
1697 "//device/usb:mocks", 1702 "//device/usb:mocks",
1698 "//gpu:test_support", 1703 "//gpu:test_support",
1699 "//media:test_support", 1704 "//media:test_support",
1700
1701 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP)
1702 "//third_party/leveldatabase", 1705 "//third_party/leveldatabase",
1703 "//third_party/libaddressinput", 1706 "//third_party/libaddressinput",
1704 "//third_party/libjingle", 1707 "//third_party/libjingle",
1705 "//third_party/libphonenumber", 1708 "//third_party/libphonenumber",
1706 "//third_party/webrtc/modules/desktop_capture", 1709 "//third_party/webrtc/modules/desktop_capture",
1707 "//tools/json_schema_compiler/test", 1710 "//tools/json_schema_compiler/test",
1708 "//ui/gl", 1711 "//ui/gl",
1709 "//v8", 1712 "//v8",
1710 ] 1713 ]
1711 } 1714 }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 "$_output_dir/hfsx_case_sensitive.img", 2237 "$_output_dir/hfsx_case_sensitive.img",
2235 "$_output_dir/mach_o_in_dmg.dmg", 2238 "$_output_dir/mach_o_in_dmg.dmg",
2236 ] 2239 ]
2237 args = [ 2240 args = [
2238 rebase_path(shell_script, root_out_dir), 2241 rebase_path(shell_script, root_out_dir),
2239 rebase_path(_output_dir, root_out_dir), 2242 rebase_path(_output_dir, root_out_dir),
2240 ] 2243 ]
2241 } 2244 }
2242 } 2245 }
2243 2246
2244 if (is_win || is_mac || is_linux) { 2247 if (!is_android) {
2245 # TODO(GYP): Figure out which of these work and are needed on other 2248 # TODO(609855): Make this compile on Android and run on the bots.
2246 # platforms.
2247 test("chrome_app_unittests") { 2249 test("chrome_app_unittests") {
2248 sources = [ 2250 sources = [
2249 "../app/chrome_watcher_client_unittest_win.cc", 2251 "../app/chrome_watcher_client_unittest_win.cc",
2250 "../app/chrome_watcher_client_win.cc", 2252 "../app/chrome_watcher_client_win.cc",
2251 "../app/chrome_watcher_command_line_win.cc", 2253 "../app/chrome_watcher_command_line_win.cc",
2252 "../app/chrome_watcher_command_line_win_unittest.cc", 2254 "../app/chrome_watcher_command_line_win_unittest.cc",
2253 "../app/delay_load_hook_unittest_win.cc", 2255 "../app/delay_load_hook_unittest_win.cc",
2254 "../app/delay_load_hook_win.cc", 2256 "../app/delay_load_hook_win.cc",
2255 "../app/delay_load_hook_win.h", 2257 "../app/delay_load_hook_win.h",
2256 "../app/resources/resources_unittest.cc", 2258 "../app/resources/resources_unittest.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2299 "//third_party/cld_2:cld2_platform_impl", 2301 "//third_party/cld_2:cld2_platform_impl",
2300 ] 2302 ]
2301 2303
2302 if (is_win) { 2304 if (is_win) {
2303 configs -= [ "//build/config/win:default_incremental_linking" ] 2305 configs -= [ "//build/config/win:default_incremental_linking" ]
2304 configs += 2306 configs +=
2305 [ "//build/config/win:default_large_module_incremental_linking" ] 2307 [ "//build/config/win:default_large_module_incremental_linking" ]
2306 } else { 2308 } else {
2307 sources -= [ 2309 sources -= [
2308 "../app/chrome_command_ids.h", 2310 "../app/chrome_command_ids.h",
2309
2310 #"../app/chrome_dll.rc",
2311 #"../app/chrome_dll_resource.h",
2312 "../app/chrome_version.rc.version", 2311 "../app/chrome_version.rc.version",
2313 ] 2312 ]
2314 } 2313 }
2315 if (!is_mac) { 2314 if (!is_mac) {
2316 sources -= [ "perf/mach_ports_performancetest.cc" ] 2315 sources -= [ "perf/mach_ports_performancetest.cc" ]
2317 } 2316 }
2318 } 2317 }
2319 } 2318 }
2320 2319
2321 source_set("test_support_unit") { 2320 source_set("test_support_unit") {
(...skipping 25 matching lines...) Expand all
2347 if (is_android) { 2346 if (is_android) {
2348 android_library("unit_tests_java") { 2347 android_library("unit_tests_java") {
2349 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2348 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2350 deps = [ 2349 deps = [
2351 "//base:base_java", 2350 "//base:base_java",
2352 "//chrome/android:chrome_java", 2351 "//chrome/android:chrome_java",
2353 "//content/public/android:content_java", 2352 "//content/public/android:content_java",
2354 ] 2353 ]
2355 } 2354 }
2356 } 2355 }
OLDNEW
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698