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

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: 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 # crbug.com/230471 691 # crbug.com/230471
692 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] 692 sources -= [ "data/webui/accessibility_audit_browsertest.js" ]
693 } 693 }
694 if (!is_chromeos) { 694 if (!is_chromeos) {
695 sources -= [ 695 sources -= [
696 "data/webui/certificate_viewer_dialog_test.js", 696 "data/webui/certificate_viewer_dialog_test.js",
697 "data/webui/settings/bluetooth_page_browsertest_chromeos.js", 697 "data/webui/settings/bluetooth_page_browsertest_chromeos.js",
698 "data/webui/settings/easy_unlock_browsertest_chromeos.js", 698 "data/webui/settings/easy_unlock_browsertest_chromeos.js",
699 ] 699 ]
700 } 700 }
701 if (is_mac) {
702 sources -= [
703 # TODO(rouslan): This test depends on the custom dictionary UI,
704 # which is disabled on Mac.
705 "../browser/ui/webui/options/edit_dictionary_browsertest.js",
706
707 # TODO(rouslan): This test depends on hunspell and we cannot run it
708 # on Mac, which does use hunspell by default.
709 "../browser/ui/webui/options/language_options_dictionary_download_browse rtest.js",
710 ]
711 }
701 if (!enable_app_list) { 712 if (!enable_app_list) {
702 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] 713 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ]
703 } 714 }
704 if (!enable_print_preview) { 715 if (!enable_print_preview) {
705 sources -= [ "data/webui/print_preview.js" ] 716 sources -= [ "data/webui/print_preview.js" ]
706 } 717 }
707 if (enable_media_router) { 718 if (enable_media_router) {
708 sources += 719 sources +=
709 [ "data/webui/media_router/media_router_elements_browsertest.js" ] 720 [ "data/webui/media_router/media_router_elements_browsertest.js" ]
710 } 721 }
711 deps = [ 722 deps = [
712 "//chrome/browser/ui", 723 "//chrome/browser/ui",
713 "//skia", 724 "//skia",
714 ] 725 ]
715 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 726 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
716 } 727 }
717 728
718 # TODO(GYP): Delete this after we've converted everything to GN. 729 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
719 # The _run targets exist only for compatibility w/ GYP. 730 # The _run targets exist only for compatibility w/ GYP.
720 group("telemetry_perf_unittests_run") { 731 group("telemetry_perf_unittests_run") {
721 testonly = true 732 testonly = true
722 deps = [ 733 deps = [
723 ":telemetry_perf_unittests", 734 ":telemetry_perf_unittests",
724 ] 735 ]
725 } 736 }
726 737
727 group("telemetry_perf_unittests") { 738 group("telemetry_perf_unittests") {
728 testonly = true 739 testonly = true
729 deps = [ 740 deps = [
730 "//tools/perf:perf", 741 "//tools/perf:perf",
731 ] 742 ]
732 743
733 data = [ 744 data = [
734 # For isolate contract. 745 # For isolate contract.
735 "//testing/scripts/common.py", 746 "//testing/scripts/common.py",
736 "//testing/xvfb.py", 747 "//testing/xvfb.py",
737 "//testing/scripts/run_telemetry_as_googletest.py", 748 "//testing/scripts/run_telemetry_as_googletest.py",
738 ] 749 ]
739 } 750 }
740 751
741 # TODO(GYP): Delete this after we've converted everything to GN. 752 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
742 # The _run targets exist only for compatibility w/ GYP. 753 # The _run targets exist only for compatibility w/ GYP.
743 group("telemetry_unittests_run") { 754 group("telemetry_unittests_run") {
744 testonly = true 755 testonly = true
745 deps = [ 756 deps = [
746 ":telemetry_unittests", 757 ":telemetry_unittests",
747 ] 758 ]
748 } 759 }
749 760
750 group("telemetry_unittests") { 761 group("telemetry_unittests") {
751 testonly = true 762 testonly = true
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 # For resolve the imports in content/test/gpu/run_gpu_test.py 799 # For resolve the imports in content/test/gpu/run_gpu_test.py
789 "//tools/perf/chrome_telemetry_build/", 800 "//tools/perf/chrome_telemetry_build/",
790 801
791 # From telemetry_gpu_unittests.isolate 802 # From telemetry_gpu_unittests.isolate
792 "//testing/scripts/common.py", 803 "//testing/scripts/common.py",
793 "//testing/xvfb.py", 804 "//testing/xvfb.py",
794 "//testing/scripts/run_telemetry_as_googletest.py", 805 "//testing/scripts/run_telemetry_as_googletest.py",
795 ] 806 ]
796 } 807 }
797 808
798 # TODO(GYP): Delete this after we've converted everything to GN. 809 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
799 # The _run targets exist only for compatibility w/ GYP. 810 # The _run targets exist only for compatibility w/ GYP.
800 group("tab_capture_end2end_tests_run") { 811 group("tab_capture_end2end_tests_run") {
801 testonly = true 812 testonly = true
802 deps = [ 813 deps = [
803 ":browser_tests", 814 ":browser_tests",
804 ] 815 ]
805 } 816 }
806 817
807 # TODO(GYP): Delete this after we've converted everything to GN. 818 # TODO(GYP_GONE): Delete this after we've converted everything to GN.
808 # The _run targets exist only for compatibility w/ GYP. 819 # The _run targets exist only for compatibility w/ GYP.
809 group("mash_browser_tests_run") { 820 group("mash_browser_tests_run") {
810 testonly = true 821 testonly = true
811 deps = [ 822 deps = [
812 ":mash_browser_tests", 823 ":mash_browser_tests",
813 ] 824 ]
814 } 825 }
815 826
816 group("mash_browser_tests") { 827 group("mash_browser_tests") {
817 testonly = true 828 testonly = true
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 "//ppapi:ppapi_tests", 969 "//ppapi:ppapi_tests",
959 "//ppapi:power_saver_test_plugin", 970 "//ppapi:power_saver_test_plugin",
960 "//remoting/webapp:browser_test_resources", 971 "//remoting/webapp:browser_test_resources",
961 "//remoting/webapp:unit_tests", 972 "//remoting/webapp:unit_tests",
962 "//third_party/mesa:osmesa", 973 "//third_party/mesa:osmesa",
963 "//third_party/widevine/cdm:widevine_test_license_server", 974 "//third_party/widevine/cdm:widevine_test_license_server",
964 ] 975 ]
965 976
966 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 977 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
967 978
968 # TODO(GYP) if (is_win) {
969 # ['incremental_chrome_dll==1', {
970 # 'UseLibraryDependencyInputs': "true",
971 # }
972
973 if (!enable_one_click_signin) { 979 if (!enable_one_click_signin) {
974 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ] 980 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ]
975 } 981 }
976 if (enable_nacl) { 982 if (enable_nacl) {
977 sources += [ 983 sources += [
978 "../browser/extensions/extension_nacl_browsertest.cc", 984 "../browser/extensions/extension_nacl_browsertest.cc",
979 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc", 985 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
980 "nacl/nacl_browsertest.cc", 986 "nacl/nacl_browsertest.cc",
981 "nacl/nacl_browsertest_uma.cc", 987 "nacl/nacl_browsertest_uma.cc",
982 "nacl/nacl_browsertest_util.cc", 988 "nacl/nacl_browsertest_util.cc",
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 if (is_mac) { 1183 if (is_mac) {
1178 # TODO(mark): We really want this for all non-static library 1184 # TODO(mark): We really want this for all non-static library
1179 # targets, but when we tried to pull it up to the common.gypi 1185 # targets, but when we tried to pull it up to the common.gypi
1180 # level, it broke other things like the ui and startup tests. *shrug* 1186 # level, it broke other things like the ui and startup tests. *shrug*
1181 ldflags = [ "-Wl,-ObjC" ] 1187 ldflags = [ "-Wl,-ObjC" ]
1182 1188
1183 # Other platforms only need 1189 # Other platforms only need
1184 # chrome_resources.gyp:{packed_extra_resources,packed_resources}, 1190 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
1185 # and can build this target standalone much faster. 1191 # and can build this target standalone much faster.
1186 deps += [ 1192 deps += [
1187 #'app_mode_app_support', TODO(GYP)
1188 "//chrome", 1193 "//chrome",
1189 1194 "//chrome/common:app_mode_app_support",
1190 #'../components/components.gyp:breakpad_stubs', TODO(GYP) 1195 "//components/crash/content/app:breakpad_stubs",
1191 "//third_party/ocmock", 1196 "//third_party/ocmock",
1192 ] 1197 ]
1193 sources += [ 1198 sources += [
1194 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm", 1199 "../browser/renderer_host/chrome_render_widget_host_view_mac_history_swi per_browsertest.mm",
1195 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsert est.cc", 1200 "../browser/spellchecker/spellcheck_message_filter_platform_mac_browsert est.cc",
1196 ] 1201 ]
1197 sources -= [ 1202 sources -= [
1198 # TODO(groby): This test depends on hunspell and we cannot run it on 1203 # TODO(groby): This test depends on hunspell and we cannot run it on
1199 # Mac, which does not use hunspell by default. 1204 # Mac, which does not use hunspell by default.
1200 "../browser/spellchecker/spellcheck_service_browsertest.cc", 1205 "../browser/spellchecker/spellcheck_service_browsertest.cc",
1201 1206
1202 # TODO(rouslan): This test depends on the custom dictionary UI,
1203 # which is disabled on Mac.
1204 # TODO(GYP): This should be added somewhere first ...
1205 # "../browser/ui/webui/options/edit_dictionary_browsertest.js",
1206
1207 # TODO(rouslan): This test depends on hunspell and we cannot run it
1208 # on Mac, which does use hunspell by default.
1209 # TODO(GYP): This should be added somewhere first ...
1210 # "../browser/ui/webui/options/language_options_dictionary_download_brow sertest.js",
1211
1212 # ProcessSingletonMac doesn"t do anything. 1207 # ProcessSingletonMac doesn"t do anything.
1213 "../browser/process_singleton_browsertest.cc", 1208 "../browser/process_singleton_browsertest.cc",
1214 1209
1215 # This test depends on GetCommandLineForRelaunch, which is not 1210 # This test depends on GetCommandLineForRelaunch, which is not
1216 # available on Mac. 1211 # available on Mac.
1217 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" , 1212 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1218 1213
1219 # single-process mode hangs on Mac sometimes because of multiple UI 1214 # single-process mode hangs on Mac sometimes because of multiple UI
1220 # message loops. See 306348 1215 # message loops. See 306348
1221 "../renderer/safe_browsing/phishing_classifier_browsertest.cc", 1216 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc", 1330 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1336 ] 1331 ]
1337 } 1332 }
1338 if (is_android || is_ios) { 1333 if (is_android || is_ios) {
1339 } 1334 }
1340 if (enable_remoting) { 1335 if (enable_remoting) {
1341 sources += rebase_path( 1336 sources += rebase_path(
1342 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources, 1337 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
1343 ".", 1338 ".",
1344 "//chrome") 1339 "//chrome")
1345 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP) 1340 deps += [ "//remoting/webapp" ]
1346 } 1341 }
1347 if (use_x11) { 1342 if (use_x11) {
1348 deps += [ "//tools/xdisplaycheck" ] 1343 deps += [ "//tools/xdisplaycheck" ]
1349 } 1344 }
1350 1345
1351 if (use_aura) { 1346 if (use_aura) {
1352 sources += [ 1347 sources += [
1353 "base/mash_browser_tests_main.cc", 1348 "base/mash_browser_tests_main.cc",
1354 "base/mash_browser_tests_main.h", 1349 "base/mash_browser_tests_main.h",
1355 "base/mojo_test_connector.cc", 1350 "base/mojo_test_connector.cc",
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 # static for simplicity. 1653 # static for simplicity.
1659 "//third_party/cld_2:cld2_static", 1654 "//third_party/cld_2:cld2_static",
1660 "//third_party/icu", 1655 "//third_party/icu",
1661 "//third_party/libxml", 1656 "//third_party/libxml",
1662 "//ui/base:test_support", 1657 "//ui/base:test_support",
1663 "//ui/gfx:test_support", 1658 "//ui/gfx:test_support",
1664 "//ui/resources", 1659 "//ui/resources",
1665 ] 1660 ]
1666 data_deps = [] 1661 data_deps = []
1667 1662
1668 # TODO(GYP) Windows stuff
1669 # ['incremental_chrome_dll==1', {
1670 # 'UseLibraryDependencyInputs': "true",
1671
1672 if (!is_ios) { 1663 if (!is_ios) {
1673 deps += [ 1664 deps += [
1674 "//components/autofill/content/renderer:test_support", 1665 "//components/autofill/content/renderer:test_support",
1675 "//components/data_reduction_proxy/core/browser:test_support", 1666 "//components/data_reduction_proxy/core/browser:test_support",
1676 "//components/data_use_measurement/core", 1667 "//components/data_use_measurement/core",
1677 "//components/metrics/proto", 1668 "//components/metrics/proto",
1678 "//components/safe_browsing_db", 1669 "//components/safe_browsing_db",
1679 "//components/safe_json:test_support", 1670 "//components/safe_json:test_support",
1680 "//components/strings", 1671 "//components/strings",
1681 "//components/webdata_services:test_support", 1672 "//components/webdata_services:test_support",
1682 "//content/app/resources", 1673 "//content/app/resources",
1683 "//device/bluetooth:mocks", 1674 "//device/bluetooth:mocks",
1684 "//device/core:mocks", 1675 "//device/core:mocks",
1685 "//device/usb:mocks", 1676 "//device/usb:mocks",
1686 "//gpu:test_support", 1677 "//gpu:test_support",
1687 "//media:test_support", 1678 "//media:test_support",
1688 1679 "//ppapi/proxy:test_support",
1689 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP) 1680 "//ppapi/shared_impl:test_support",
1690 "//third_party/leveldatabase", 1681 "//third_party/leveldatabase",
1691 "//third_party/libaddressinput", 1682 "//third_party/libaddressinput",
1692 "//third_party/libjingle", 1683 "//third_party/libjingle",
1693 "//third_party/libphonenumber", 1684 "//third_party/libphonenumber",
1694 "//third_party/webrtc/modules/desktop_capture", 1685 "//third_party/webrtc/modules/desktop_capture",
1695 "//tools/json_schema_compiler/test", 1686 "//tools/json_schema_compiler/test",
1696 "//ui/gl", 1687 "//ui/gl",
1697 "//v8", 1688 "//v8",
1698 ] 1689 ]
1699 } 1690 }
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 "$_output_dir/hfsx_case_sensitive.img", 2206 "$_output_dir/hfsx_case_sensitive.img",
2216 "$_output_dir/mach_o_in_dmg.dmg", 2207 "$_output_dir/mach_o_in_dmg.dmg",
2217 ] 2208 ]
2218 args = [ 2209 args = [
2219 rebase_path(shell_script, root_out_dir), 2210 rebase_path(shell_script, root_out_dir),
2220 rebase_path(_output_dir, root_out_dir), 2211 rebase_path(_output_dir, root_out_dir),
2221 ] 2212 ]
2222 } 2213 }
2223 } 2214 }
2224 2215
2225 if (is_win || is_mac || is_linux) { 2216 if (!is_android) {
2226 # TODO(GYP): Figure out which of these work and are needed on other 2217 # TODO(609855): Make this compile on Android and run on the bots.
2227 # platforms.
2228 test("chrome_app_unittests") { 2218 test("chrome_app_unittests") {
2229 sources = [ 2219 sources = [
2230 "../app/chrome_watcher_client_unittest_win.cc", 2220 "../app/chrome_watcher_client_unittest_win.cc",
2231 "../app/chrome_watcher_client_win.cc", 2221 "../app/chrome_watcher_client_win.cc",
2232 "../app/chrome_watcher_command_line_win.cc", 2222 "../app/chrome_watcher_command_line_win.cc",
2233 "../app/chrome_watcher_command_line_win_unittest.cc", 2223 "../app/chrome_watcher_command_line_win_unittest.cc",
2234 "../app/delay_load_hook_unittest_win.cc", 2224 "../app/delay_load_hook_unittest_win.cc",
2235 "../app/delay_load_hook_win.cc", 2225 "../app/delay_load_hook_win.cc",
2236 "../app/delay_load_hook_win.h", 2226 "../app/delay_load_hook_win.h",
2237 "../app/resources/resources_unittest.cc", 2227 "../app/resources/resources_unittest.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 "//third_party/cld_2:cld2_platform_impl", 2270 "//third_party/cld_2:cld2_platform_impl",
2281 ] 2271 ]
2282 2272
2283 if (is_win) { 2273 if (is_win) {
2284 configs -= [ "//build/config/win:default_incremental_linking" ] 2274 configs -= [ "//build/config/win:default_incremental_linking" ]
2285 configs += 2275 configs +=
2286 [ "//build/config/win:default_large_module_incremental_linking" ] 2276 [ "//build/config/win:default_large_module_incremental_linking" ]
2287 } else { 2277 } else {
2288 sources -= [ 2278 sources -= [
2289 "../app/chrome_command_ids.h", 2279 "../app/chrome_command_ids.h",
2290
2291 #"../app/chrome_dll.rc",
2292 #"../app/chrome_dll_resource.h",
2293 "../app/chrome_version.rc.version", 2280 "../app/chrome_version.rc.version",
2294 ] 2281 ]
2295 } 2282 }
2296 if (!is_mac) { 2283 if (!is_mac) {
2297 sources -= [ "perf/mach_ports_performancetest.cc" ] 2284 sources -= [ "perf/mach_ports_performancetest.cc" ]
2298 } 2285 }
2299 } 2286 }
2300 } 2287 }
2301 2288
2302 source_set("test_support_unit") { 2289 source_set("test_support_unit") {
(...skipping 25 matching lines...) Expand all
2328 if (is_android) { 2315 if (is_android) {
2329 android_library("unit_tests_java") { 2316 android_library("unit_tests_java") {
2330 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2317 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2331 deps = [ 2318 deps = [
2332 "//base:base_java", 2319 "//base:base_java",
2333 "//chrome/android:chrome_java", 2320 "//chrome/android:chrome_java",
2334 "//content/public/android:content_java", 2321 "//content/public/android:content_java",
2335 ] 2322 ]
2336 } 2323 }
2337 } 2324 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698