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

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: fix 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
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 use hunspell by default.
brucedawson 2016/05/09 21:30:32 Is this supposed to be "does not use hunspell by d
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",
1198 1203 "//chrome/common:app_mode_app_support",
1199 #'../components/components.gyp:breakpad_stubs', TODO(GYP) 1204 "//components/crash/content/app:breakpad_stubs",
1200 "//third_party/ocmock", 1205 "//third_party/ocmock",
1201 ] 1206 ]
1202 sources += [ 1207 sources += [
1203 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm", 1208 "../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", 1209 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsert est.cc",
1205 ] 1210 ]
1206 sources -= [ 1211 sources -= [
1207 # TODO(groby): This test depends on hunspell and we cannot run it on 1212 # TODO(groby): This test depends on hunspell and we cannot run it on
1208 # Mac, which does not use hunspell by default. 1213 # Mac, which does not use hunspell by default.
1209 "../browser/spellchecker/spellcheck_service_browsertest.cc", 1214 "../browser/spellchecker/spellcheck_service_browsertest.cc",
1210 1215
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. 1216 # ProcessSingletonMac doesn"t do anything.
1222 "../browser/process_singleton_browsertest.cc", 1217 "../browser/process_singleton_browsertest.cc",
1223 1218
1224 # This test depends on GetCommandLineForRelaunch, which is not 1219 # This test depends on GetCommandLineForRelaunch, which is not
1225 # available on Mac. 1220 # available on Mac.
1226 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" , 1221 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1227 1222
1228 # single-process mode hangs on Mac sometimes because of multiple UI 1223 # single-process mode hangs on Mac sometimes because of multiple UI
1229 # message loops. See 306348 1224 # message loops. See 306348
1230 "../renderer/safe_browsing/phishing_classifier_browsertest.cc", 1225 "../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", 1339 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1345 ] 1340 ]
1346 } 1341 }
1347 if (is_android || is_ios) { 1342 if (is_android || is_ios) {
1348 } 1343 }
1349 if (enable_remoting) { 1344 if (enable_remoting) {
1350 sources += rebase_path( 1345 sources += rebase_path(
1351 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources, 1346 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
1352 ".", 1347 ".",
1353 "//chrome") 1348 "//chrome")
1354 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP) 1349 deps += [ "//remoting/webapp" ]
1355 } 1350 }
1356 if (use_x11) { 1351 if (use_x11) {
1357 deps += [ "//tools/xdisplaycheck" ] 1352 deps += [ "//tools/xdisplaycheck" ]
1358 } 1353 }
1359 1354
1360 if (use_aura) { 1355 if (use_aura) {
1361 sources += [ 1356 sources += [
1362 "base/mash_browser_tests_main.cc", 1357 "base/mash_browser_tests_main.cc",
1363 "base/mash_browser_tests_main.h", 1358 "base/mash_browser_tests_main.h",
1364 "base/mojo_test_connector.cc", 1359 "base/mojo_test_connector.cc",
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 "//third_party/cld_2:cld2_static", 1665 "//third_party/cld_2:cld2_static",
1671 "//third_party/icu", 1666 "//third_party/icu",
1672 "//third_party/libxml", 1667 "//third_party/libxml",
1673 "//ui/base:test_support", 1668 "//ui/base:test_support",
1674 "//ui/display:test_support", 1669 "//ui/display:test_support",
1675 "//ui/gfx:test_support", 1670 "//ui/gfx:test_support",
1676 "//ui/resources", 1671 "//ui/resources",
1677 ] 1672 ]
1678 data_deps = [] 1673 data_deps = []
1679 1674
1680 # TODO(GYP) Windows stuff
1681 # ['incremental_chrome_dll==1', {
1682 # 'UseLibraryDependencyInputs': "true",
1683
1684 if (!is_ios) { 1675 if (!is_ios) {
1685 deps += [ 1676 deps += [
1686 "//components/autofill/content/renderer:test_support", 1677 "//components/autofill/content/renderer:test_support",
1687 "//components/data_reduction_proxy/core/browser:test_support", 1678 "//components/data_reduction_proxy/core/browser:test_support",
1688 "//components/data_use_measurement/core", 1679 "//components/data_use_measurement/core",
1689 "//components/metrics/proto", 1680 "//components/metrics/proto",
1690 "//components/safe_browsing_db", 1681 "//components/safe_browsing_db",
1691 "//components/safe_json:test_support", 1682 "//components/safe_json:test_support",
1692 "//components/strings", 1683 "//components/strings",
1693 "//components/webdata_services:test_support", 1684 "//components/webdata_services:test_support",
1694 "//content/app/resources", 1685 "//content/app/resources",
1695 "//device/bluetooth:mocks", 1686 "//device/bluetooth:mocks",
1696 "//device/core:mocks", 1687 "//device/core:mocks",
1697 "//device/usb:mocks", 1688 "//device/usb:mocks",
1698 "//gpu:test_support", 1689 "//gpu:test_support",
1699 "//media:test_support", 1690 "//media:test_support",
1700
1701 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP)
1702 "//third_party/leveldatabase", 1691 "//third_party/leveldatabase",
1703 "//third_party/libaddressinput", 1692 "//third_party/libaddressinput",
1704 "//third_party/libjingle", 1693 "//third_party/libjingle",
1705 "//third_party/libphonenumber", 1694 "//third_party/libphonenumber",
1706 "//third_party/webrtc/modules/desktop_capture", 1695 "//third_party/webrtc/modules/desktop_capture",
1707 "//tools/json_schema_compiler/test", 1696 "//tools/json_schema_compiler/test",
1708 "//ui/gl", 1697 "//ui/gl",
1709 "//v8", 1698 "//v8",
1710 ] 1699 ]
1711 } 1700 }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 "$_output_dir/hfsx_case_sensitive.img", 2223 "$_output_dir/hfsx_case_sensitive.img",
2235 "$_output_dir/mach_o_in_dmg.dmg", 2224 "$_output_dir/mach_o_in_dmg.dmg",
2236 ] 2225 ]
2237 args = [ 2226 args = [
2238 rebase_path(shell_script, root_out_dir), 2227 rebase_path(shell_script, root_out_dir),
2239 rebase_path(_output_dir, root_out_dir), 2228 rebase_path(_output_dir, root_out_dir),
2240 ] 2229 ]
2241 } 2230 }
2242 } 2231 }
2243 2232
2244 if (is_win || is_mac || is_linux) { 2233 if (!is_android) {
2245 # TODO(GYP): Figure out which of these work and are needed on other 2234 # TODO(609855): Make this compile on Android and run on the bots.
2246 # platforms.
2247 test("chrome_app_unittests") { 2235 test("chrome_app_unittests") {
2248 sources = [ 2236 sources = [
2249 "../app/chrome_watcher_client_unittest_win.cc", 2237 "../app/chrome_watcher_client_unittest_win.cc",
2250 "../app/chrome_watcher_client_win.cc", 2238 "../app/chrome_watcher_client_win.cc",
2251 "../app/chrome_watcher_command_line_win.cc", 2239 "../app/chrome_watcher_command_line_win.cc",
2252 "../app/chrome_watcher_command_line_win_unittest.cc", 2240 "../app/chrome_watcher_command_line_win_unittest.cc",
2253 "../app/delay_load_hook_unittest_win.cc", 2241 "../app/delay_load_hook_unittest_win.cc",
2254 "../app/delay_load_hook_win.cc", 2242 "../app/delay_load_hook_win.cc",
2255 "../app/delay_load_hook_win.h", 2243 "../app/delay_load_hook_win.h",
2256 "../app/resources/resources_unittest.cc", 2244 "../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", 2287 "//third_party/cld_2:cld2_platform_impl",
2300 ] 2288 ]
2301 2289
2302 if (is_win) { 2290 if (is_win) {
2303 configs -= [ "//build/config/win:default_incremental_linking" ] 2291 configs -= [ "//build/config/win:default_incremental_linking" ]
2304 configs += 2292 configs +=
2305 [ "//build/config/win:default_large_module_incremental_linking" ] 2293 [ "//build/config/win:default_large_module_incremental_linking" ]
2306 } else { 2294 } else {
2307 sources -= [ 2295 sources -= [
2308 "../app/chrome_command_ids.h", 2296 "../app/chrome_command_ids.h",
2309
2310 #"../app/chrome_dll.rc",
2311 #"../app/chrome_dll_resource.h",
2312 "../app/chrome_version.rc.version", 2297 "../app/chrome_version.rc.version",
2313 ] 2298 ]
2314 } 2299 }
2315 if (!is_mac) { 2300 if (!is_mac) {
2316 sources -= [ "perf/mach_ports_performancetest.cc" ] 2301 sources -= [ "perf/mach_ports_performancetest.cc" ]
2317 } 2302 }
2318 } 2303 }
2319 } 2304 }
2320 2305
2321 source_set("test_support_unit") { 2306 source_set("test_support_unit") {
(...skipping 25 matching lines...) Expand all
2347 if (is_android) { 2332 if (is_android) {
2348 android_library("unit_tests_java") { 2333 android_library("unit_tests_java") {
2349 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2334 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2350 deps = [ 2335 deps = [
2351 "//base:base_java", 2336 "//base:base_java",
2352 "//chrome/android:chrome_java", 2337 "//chrome/android:chrome_java",
2353 "//content/public/android:content_java", 2338 "//content/public/android:content_java",
2354 ] 2339 ]
2355 } 2340 }
2356 } 2341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698