| OLD | NEW |
| 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/common/features.gni") | 10 import("//chrome/common/features.gni") |
| 11 import("//chrome/chrome_repack_locales.gni") | 11 import("//chrome/chrome_repack_locales.gni") |
| 12 import("//chrome/test/base/js2gtest.gni") | 12 import("//chrome/test/base/js2gtest.gni") |
| 13 import("//components/os_crypt/features.gni") | 13 import("//components/os_crypt/features.gni") |
| 14 import("//components/spellcheck/spellcheck_build_features.gni") | 14 import("//components/spellcheck/spellcheck_build_features.gni") |
| 15 import("//extensions/features/features.gni") | 15 import("//extensions/features/features.gni") |
| 16 import("//media/media_options.gni") | 16 import("//media/media_options.gni") |
| 17 import("//ppapi/features/features.gni") | 17 import("//ppapi/features/features.gni") |
| 18 import("//remoting/remoting_enable.gni") | 18 import("//remoting/remoting_enable.gni") |
| 19 import("//rlz/features/features.gni") | 19 import("//rlz/features/features.gni") |
| 20 import("//services/service_manager/public/service_manifest.gni") | 20 import("//services/service_manager/public/service_manifest.gni") |
| 21 import("//services/catalog/public/tools/catalog.gni") | 21 import("//services/catalog/public/tools/catalog.gni") |
| 22 import("//testing/test.gni") | 22 import("//testing/test.gni") |
| 23 import("//ui/base/ui_features.gni") | 23 import("//ui/base/ui_features.gni") |
| 24 import("//v8/gni/v8.gni") | 24 import("//v8/gni/v8.gni") |
| 25 | 25 |
| 26 if (is_android) { | 26 if (is_android) { |
| 27 import("//build/config/android/rules.gni") | 27 import("//build/config/android/rules.gni") |
| 28 } | 28 } |
| 29 | 29 |
| 30 skip_js_tests = is_asan || is_msan || is_tsan |
| 31 |
| 30 # This target exists to reference other test executables to bring these files | 32 # This target exists to reference other test executables to bring these files |
| 31 # into the build. | 33 # into the build. |
| 32 group("test") { | 34 group("test") { |
| 33 testonly = true | 35 testonly = true |
| 34 } | 36 } |
| 35 | 37 |
| 36 # Use a static library here because many test binaries depend on this but don't | 38 # Use a static library here because many test binaries depend on this but don't |
| 37 # require many files from it. This makes linking more efficient. | 39 # require many files from it. This makes linking more efficient. |
| 38 static_library("test_support") { | 40 static_library("test_support") { |
| 39 defines = [] | 41 defines = [] |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 ] | 467 ] |
| 466 } | 468 } |
| 467 if (is_linux) { | 469 if (is_linux) { |
| 468 data += [ "$root_out_dir/libppapi_tests.so" ] | 470 data += [ "$root_out_dir/libppapi_tests.so" ] |
| 469 } | 471 } |
| 470 | 472 |
| 471 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 473 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 472 ldflags = [] | 474 ldflags = [] |
| 473 | 475 |
| 474 deps = [ | 476 deps = [ |
| 475 ":interactive_ui_tests_js_webui", | |
| 476 ":test_support", | 477 ":test_support", |
| 477 ":test_support_ui", | 478 ":test_support_ui", |
| 478 "//chrome:packed_resources", | 479 "//chrome:packed_resources", |
| 479 "//chrome:resources", | 480 "//chrome:resources", |
| 480 "//chrome:strings", | 481 "//chrome:strings", |
| 481 "//chrome/browser", | 482 "//chrome/browser", |
| 482 "//chrome/browser/devtools", | 483 "//chrome/browser/devtools", |
| 483 "//chrome/renderer", | 484 "//chrome/renderer", |
| 484 "//components/resources", | 485 "//components/resources", |
| 485 "//components/sync", | 486 "//components/sync", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 503 "//ui/base:test_support", | 504 "//ui/base:test_support", |
| 504 "//ui/resources:ui_test_pak", | 505 "//ui/resources:ui_test_pak", |
| 505 "//ui/web_dialogs:test_support", | 506 "//ui/web_dialogs:test_support", |
| 506 ] | 507 ] |
| 507 | 508 |
| 508 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target | 509 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target |
| 509 # should be deleted and this line removed. See the | 510 # should be deleted and this line removed. See the |
| 510 # chrome_extensions_interactive_uitests target for more. | 511 # chrome_extensions_interactive_uitests target for more. |
| 511 deps += [ "//extensions:chrome_extensions_interactive_uitests" ] | 512 deps += [ "//extensions:chrome_extensions_interactive_uitests" ] |
| 512 | 513 |
| 514 if (!skip_js_tests) { |
| 515 deps += [ ":interactive_ui_tests_js_webui" ] |
| 516 } |
| 517 |
| 513 # Runtime dependencies | 518 # Runtime dependencies |
| 514 data_deps += [ | 519 data_deps += [ |
| 515 "//ppapi:ppapi_tests", | 520 "//ppapi:ppapi_tests", |
| 516 "//third_party/mesa:osmesa", | 521 "//third_party/mesa:osmesa", |
| 517 ] | 522 ] |
| 518 | 523 |
| 519 if (use_aura) { | 524 if (use_aura) { |
| 520 sources += [ "../browser/ui/views/drag_and_drop_interactive_uitest.cc" ] | 525 sources += [ "../browser/ui/views/drag_and_drop_interactive_uitest.cc" ] |
| 521 } | 526 } |
| 522 | 527 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 ] | 932 ] |
| 928 } | 933 } |
| 929 if (is_chromeos) { | 934 if (is_chromeos) { |
| 930 deps += [ | 935 deps += [ |
| 931 "//components/arc:arc_test_support", | 936 "//components/arc:arc_test_support", |
| 932 "//components/user_manager:test_support", | 937 "//components/user_manager:test_support", |
| 933 ] | 938 ] |
| 934 } | 939 } |
| 935 } | 940 } |
| 936 | 941 |
| 937 js2gtest("interactive_ui_tests_js_webui") { | 942 if (!skip_js_tests) { |
| 938 test_type = "webui" | 943 js2gtest("interactive_ui_tests_js_webui") { |
| 944 test_type = "webui" |
| 939 | 945 |
| 940 sources = [ | 946 sources = [ |
| 941 "data/webui/cr_elements/cr_elements_focus_test.js", | 947 "data/webui/cr_elements/cr_elements_focus_test.js", |
| 942 "data/webui/md_history/md_history_focus_test.js", | 948 "data/webui/md_history/md_history_focus_test.js", |
| 943 ] | 949 ] |
| 944 | 950 |
| 945 gen_include_files = [ | 951 gen_include_files = [ |
| 946 "data/webui/polymer_browser_test_base.js", | 952 "data/webui/polymer_browser_test_base.js", |
| 947 "data/webui/polymer_interactive_ui_test.js", | 953 "data/webui/polymer_interactive_ui_test.js", |
| 948 ] | 954 ] |
| 949 | 955 |
| 950 deps = [ | 956 deps = [ |
| 951 "//chrome/browser/ui", | 957 "//chrome/browser/ui", |
| 952 ] | 958 ] |
| 953 | 959 |
| 954 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 960 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 955 } | 961 } |
| 956 | 962 |
| 957 js2gtest("browser_tests_js_webui") { | 963 js2gtest("browser_tests_js_webui") { |
| 958 test_type = "webui" | 964 test_type = "webui" |
| 959 | 965 |
| 960 # Javascript sources. These are combined with the .cc files in the GYP build | 966 # Javascript sources. These are combined with the .cc files in the GYP bui
ld |
| 961 # and are handled by a rule, but in the GN build they're in a separate | 967 # and are handled by a rule, but in the GN build they're in a separate |
| 962 # action so need to be separated out. | 968 # action so need to be separated out. |
| 963 sources = [ | 969 sources = [ |
| 964 "../browser/ui/webui/app_list/start_page_browsertest.js", | 970 "../browser/ui/webui/app_list/start_page_browsertest.js", |
| 965 "../browser/ui/webui/chromeos/bluetooth_pairing_ui_browsertest.js", | 971 "../browser/ui/webui/chromeos/bluetooth_pairing_ui_browsertest.js", |
| 966 "../browser/ui/webui/chromeos/certificate_manager_dialog_browsertest.js", | 972 "../browser/ui/webui/chromeos/certificate_manager_dialog_browsertest.js"
, |
| 967 "../browser/ui/webui/chromeos/set_time_ui_browsertest.js", | 973 "../browser/ui/webui/chromeos/set_time_ui_browsertest.js", |
| 968 "../browser/ui/webui/extensions/chromeos/kiosk_apps_browsertest.js", | 974 "../browser/ui/webui/extensions/chromeos/kiosk_apps_browsertest.js", |
| 969 "../browser/ui/webui/extensions/extension_settings_browsertest.js", | 975 "../browser/ui/webui/extensions/extension_settings_browsertest.js", |
| 970 "../browser/ui/webui/help/help_browsertest.js", | 976 "../browser/ui/webui/help/help_browsertest.js", |
| 971 "../browser/ui/webui/identity_internals_ui_browsertest.js", | 977 "../browser/ui/webui/identity_internals_ui_browsertest.js", |
| 972 "../browser/ui/webui/options/autofill_options_browsertest.js", | 978 "../browser/ui/webui/options/autofill_options_browsertest.js", |
| 973 "../browser/ui/webui/options/browser_options_browsertest.js", | 979 "../browser/ui/webui/options/browser_options_browsertest.js", |
| 974 "../browser/ui/webui/options/certificate_manager_browsertest.js", | 980 "../browser/ui/webui/options/certificate_manager_browsertest.js", |
| 975 "../browser/ui/webui/options/chromeos/accounts_options_browsertest.js", | 981 "../browser/ui/webui/options/chromeos/accounts_options_browsertest.js", |
| 976 "../browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js", | 982 "../browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js", |
| 977 "../browser/ui/webui/options/chromeos/date_time_options_browsertest.js", | 983 "../browser/ui/webui/options/chromeos/date_time_options_browsertest.js", |
| 978 "../browser/ui/webui/options/chromeos/guest_mode_options_browsertest.js", | 984 "../browser/ui/webui/options/chromeos/guest_mode_options_browsertest.js"
, |
| 979 "../browser/ui/webui/options/chromeos/power_overlay_browsertest.js", | 985 "../browser/ui/webui/options/chromeos/power_overlay_browsertest.js", |
| 980 "../browser/ui/webui/options/content_options_browsertest.js", | 986 "../browser/ui/webui/options/content_options_browsertest.js", |
| 981 "../browser/ui/webui/options/content_settings_exception_area_browsertest.j
s", | 987 "../browser/ui/webui/options/content_settings_exception_area_browsertest
.js", |
| 982 "../browser/ui/webui/options/cookies_view_browsertest.js", | 988 "../browser/ui/webui/options/cookies_view_browsertest.js", |
| 983 "../browser/ui/webui/options/edit_dictionary_browsertest.js", | 989 "../browser/ui/webui/options/edit_dictionary_browsertest.js", |
| 984 "../browser/ui/webui/options/font_settings_browsertest.js", | 990 "../browser/ui/webui/options/font_settings_browsertest.js", |
| 985 "../browser/ui/webui/options/language_options_browsertest.js", | 991 "../browser/ui/webui/options/language_options_browsertest.js", |
| 986 "../browser/ui/webui/options/language_options_dictionary_download_browsert
est.js", | 992 "../browser/ui/webui/options/language_options_dictionary_download_browse
rtest.js", |
| 987 "../browser/ui/webui/options/manage_profile_browsertest.js", | 993 "../browser/ui/webui/options/manage_profile_browsertest.js", |
| 988 "../browser/ui/webui/options/multilanguage_options_webui_browsertest.js", | 994 "../browser/ui/webui/options/multilanguage_options_webui_browsertest.js"
, |
| 989 "../browser/ui/webui/options/options_browsertest.js", | 995 "../browser/ui/webui/options/options_browsertest.js", |
| 990 "../browser/ui/webui/options/options_browsertest_base.js", | 996 "../browser/ui/webui/options/options_browsertest_base.js", |
| 991 "../browser/ui/webui/options/password_manager_browsertest.js", | 997 "../browser/ui/webui/options/password_manager_browsertest.js", |
| 992 "../browser/ui/webui/options/profile_settings_reset_browsertest.js", | 998 "../browser/ui/webui/options/profile_settings_reset_browsertest.js", |
| 993 "../browser/ui/webui/options/search_engine_manager_browsertest.js", | 999 "../browser/ui/webui/options/search_engine_manager_browsertest.js", |
| 994 "../browser/ui/webui/options/settings_format_browsertest.js", | 1000 "../browser/ui/webui/options/settings_format_browsertest.js", |
| 995 "../browser/ui/webui/options/startup_page_list_browsertest.js", | 1001 "../browser/ui/webui/options/startup_page_list_browsertest.js", |
| 996 "../browser/ui/webui/sync_internals_browsertest.js", | 1002 "../browser/ui/webui/sync_internals_browsertest.js", |
| 997 "../browser/ui/webui/sync_setup_browsertest.js", | 1003 "../browser/ui/webui/sync_setup_browsertest.js", |
| 998 "data/chromeos/oobe_webui_browsertest.js", | 1004 "data/chromeos/oobe_webui_browsertest.js", |
| 999 "data/webui/about_invalidations_browsertest.js", | 1005 "data/webui/about_invalidations_browsertest.js", |
| 1000 "data/webui/accessibility_audit_browsertest.js", | 1006 "data/webui/accessibility_audit_browsertest.js", |
| 1001 "data/webui/assertions.js", | 1007 "data/webui/assertions.js", |
| 1002 "data/webui/async_gen.js", | 1008 "data/webui/async_gen.js", |
| 1003 "data/webui/bluetooth_internals_browsertest.js", | 1009 "data/webui/bluetooth_internals_browsertest.js", |
| 1004 "data/webui/certificate_viewer_dialog_test.js", | 1010 "data/webui/certificate_viewer_dialog_test.js", |
| 1005 "data/webui/chrome_send_browsertest.js", | 1011 "data/webui/chrome_send_browsertest.js", |
| 1006 "data/webui/cr_elements/cr_elements_browsertest.js", | 1012 "data/webui/cr_elements/cr_elements_browsertest.js", |
| 1007 "data/webui/extensions/cr_extensions_browsertest.js", | 1013 "data/webui/extensions/cr_extensions_browsertest.js", |
| 1008 "data/webui/history_browsertest.js", | 1014 "data/webui/history_browsertest.js", |
| 1009 "data/webui/md_bookmarks/md_bookmarks_browsertest.js", | 1015 "data/webui/md_bookmarks/md_bookmarks_browsertest.js", |
| 1010 "data/webui/md_downloads/downloads_browsertest.js", | 1016 "data/webui/md_downloads/downloads_browsertest.js", |
| 1011 "data/webui/md_history/md_history_browsertest.js", | 1017 "data/webui/md_history/md_history_browsertest.js", |
| 1012 "data/webui/md_user_manager/user_manager_browsertest.js", | 1018 "data/webui/md_user_manager/user_manager_browsertest.js", |
| 1013 "data/webui/mock4js_browsertest.js", | 1019 "data/webui/mock4js_browsertest.js", |
| 1014 "data/webui/net_internals/bandwidth_view.js", | 1020 "data/webui/net_internals/bandwidth_view.js", |
| 1015 "data/webui/net_internals/chromeos_view.js", | 1021 "data/webui/net_internals/chromeos_view.js", |
| 1016 "data/webui/net_internals/dns_view.js", | 1022 "data/webui/net_internals/dns_view.js", |
| 1017 "data/webui/net_internals/events_view.js", | 1023 "data/webui/net_internals/events_view.js", |
| 1018 "data/webui/net_internals/hsts_view.js", | 1024 "data/webui/net_internals/hsts_view.js", |
| 1019 "data/webui/net_internals/log_util.js", | 1025 "data/webui/net_internals/log_util.js", |
| 1020 "data/webui/net_internals/log_view_painter.js", | 1026 "data/webui/net_internals/log_view_painter.js", |
| 1021 "data/webui/net_internals/main.js", | 1027 "data/webui/net_internals/main.js", |
| 1022 "data/webui/net_internals/net_internals_test.js", | 1028 "data/webui/net_internals/net_internals_test.js", |
| 1023 "data/webui/net_internals/prerender_view.js", | 1029 "data/webui/net_internals/prerender_view.js", |
| 1024 "data/webui/net_internals/sdch_view.js", | 1030 "data/webui/net_internals/sdch_view.js", |
| 1025 "data/webui/net_internals/timeline_view.js", | 1031 "data/webui/net_internals/timeline_view.js", |
| 1026 "data/webui/ntp4.js", | 1032 "data/webui/ntp4.js", |
| 1027 "data/webui/polymer_browser_test_base.js", | 1033 "data/webui/polymer_browser_test_base.js", |
| 1028 "data/webui/print_preview.js", | 1034 "data/webui/print_preview.js", |
| 1029 "data/webui/print_preview_destination_search_test.js", | 1035 "data/webui/print_preview_destination_search_test.js", |
| 1030 "data/webui/sandboxstatus_browsertest.js", | 1036 "data/webui/sandboxstatus_browsertest.js", |
| 1031 "data/webui/text_defaults_browsertest.js", | |
| 1032 "data/webui/webui_resource_async_browsertest.js", | |
| 1033 ] | |
| 1034 | |
| 1035 if (!is_asan) { | |
| 1036 sources += [ | |
| 1037 "data/webui/settings/advanced_page_browsertest.js", | 1037 "data/webui/settings/advanced_page_browsertest.js", |
| 1038 "data/webui/settings/animation_browsertest.js", | 1038 "data/webui/settings/animation_browsertest.js", |
| 1039 "data/webui/settings/basic_page_browsertest.js", | 1039 "data/webui/settings/basic_page_browsertest.js", |
| 1040 "data/webui/settings/cr_settings_browsertest.js", | 1040 "data/webui/settings/cr_settings_browsertest.js", |
| 1041 "data/webui/settings/help_page_browsertest.js", | 1041 "data/webui/settings/help_page_browsertest.js", |
| 1042 "data/webui/settings/languages_page_browsertest.js", | 1042 "data/webui/settings/languages_page_browsertest.js", |
| 1043 "data/webui/settings/on_startup_browsertest.js", | 1043 "data/webui/settings/on_startup_browsertest.js", |
| 1044 "data/webui/settings/passwords_and_autofill_fake_data.js", | 1044 "data/webui/settings/passwords_and_autofill_fake_data.js", |
| 1045 "data/webui/settings/passwords_and_forms_browsertest.js", | 1045 "data/webui/settings/passwords_and_forms_browsertest.js", |
| 1046 "data/webui/settings/settings_autofill_section_browsertest.js", | 1046 "data/webui/settings/settings_autofill_section_browsertest.js", |
| 1047 "data/webui/settings/settings_idle_render_browsertest.js", | 1047 "data/webui/settings/settings_idle_render_browsertest.js", |
| 1048 "data/webui/settings/settings_page_browsertest.js", | 1048 "data/webui/settings/settings_page_browsertest.js", |
| 1049 "data/webui/settings/settings_passwords_section_browsertest.js", | 1049 "data/webui/settings/settings_passwords_section_browsertest.js", |
| 1050 "data/webui/settings/settings_subpage_browsertest.js", | 1050 "data/webui/settings/settings_subpage_browsertest.js", |
| 1051 "data/webui/settings/settings_ui_browsertest.js", | 1051 "data/webui/settings/settings_ui_browsertest.js", |
| 1052 "data/webui/settings/site_settings_page_browsertest.js", | 1052 "data/webui/settings/site_settings_page_browsertest.js", |
| 1053 "data/webui/text_defaults_browsertest.js", |
| 1054 "data/webui/webui_resource_async_browsertest.js", |
| 1053 ] | 1055 ] |
| 1054 | 1056 |
| 1055 if (is_chromeos) { | 1057 if (is_chrome_branded) { |
| 1058 # crbug.com/230471 |
| 1059 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] |
| 1060 } |
| 1061 if (!is_chromeos) { |
| 1062 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ] |
| 1063 } else { |
| 1064 sources -= [ "data/webui/md_user_manager/user_manager_browsertest.js" ] |
| 1056 sources += [ "data/webui/settings/easy_unlock_browsertest_chromeos.js" ] | 1065 sources += [ "data/webui/settings/easy_unlock_browsertest_chromeos.js" ] |
| 1057 } | 1066 } |
| 1067 if (is_mac) { |
| 1068 sources -= [ |
| 1069 # TODO(rouslan): This test depends on the custom dictionary UI, |
| 1070 # which is disabled on Mac. |
| 1071 "../browser/ui/webui/options/edit_dictionary_browsertest.js", |
| 1072 |
| 1073 # TODO(rouslan): This test depends on hunspell and we cannot run it |
| 1074 # on Mac, which does not use hunspell by default. |
| 1075 "../browser/ui/webui/options/language_options_dictionary_download_brow
sertest.js", |
| 1076 "../browser/ui/webui/options/multilanguage_options_webui_browsertest.j
s", |
| 1077 ] |
| 1078 } |
| 1079 if (!enable_app_list) { |
| 1080 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] |
| 1081 } |
| 1082 if (!enable_print_preview) { |
| 1083 sources -= [ "data/webui/print_preview.js" ] |
| 1084 } |
| 1085 if (enable_media_router) { |
| 1086 sources += |
| 1087 [ "data/webui/media_router/media_router_elements_browsertest.js" ] |
| 1088 } |
| 1089 deps = [ |
| 1090 "//chrome/browser/ui", |
| 1091 "//skia", |
| 1092 ] |
| 1093 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 1058 } | 1094 } |
| 1059 | |
| 1060 if (is_chrome_branded) { | |
| 1061 # crbug.com/230471 | |
| 1062 sources -= [ "data/webui/accessibility_audit_browsertest.js" ] | |
| 1063 } | |
| 1064 if (!is_chromeos) { | |
| 1065 sources -= [ "data/webui/certificate_viewer_dialog_test.js" ] | |
| 1066 } else { | |
| 1067 sources -= [ "data/webui/md_user_manager/user_manager_browsertest.js" ] | |
| 1068 } | |
| 1069 if (is_mac) { | |
| 1070 sources -= [ | |
| 1071 # TODO(rouslan): This test depends on the custom dictionary UI, | |
| 1072 # which is disabled on Mac. | |
| 1073 "../browser/ui/webui/options/edit_dictionary_browsertest.js", | |
| 1074 | |
| 1075 # TODO(rouslan): This test depends on hunspell and we cannot run it | |
| 1076 # on Mac, which does not use hunspell by default. | |
| 1077 "../browser/ui/webui/options/language_options_dictionary_download_browse
rtest.js", | |
| 1078 "../browser/ui/webui/options/multilanguage_options_webui_browsertest.js"
, | |
| 1079 ] | |
| 1080 } | |
| 1081 if (!enable_app_list) { | |
| 1082 sources -= [ "../browser/ui/webui/app_list/start_page_browsertest.js" ] | |
| 1083 } | |
| 1084 if (!enable_print_preview) { | |
| 1085 sources -= [ "data/webui/print_preview.js" ] | |
| 1086 } | |
| 1087 if (enable_media_router) { | |
| 1088 sources += | |
| 1089 [ "data/webui/media_router/media_router_elements_browsertest.js" ] | |
| 1090 } | |
| 1091 deps = [ | |
| 1092 "//chrome/browser/ui", | |
| 1093 "//skia", | |
| 1094 ] | |
| 1095 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 1096 } | 1095 } |
| 1097 | 1096 |
| 1098 # TODO(GYP_GONE): Delete this after we've converted everything to GN. | 1097 # TODO(GYP_GONE): Delete this after we've converted everything to GN. |
| 1099 # The _run targets exist only for compatibility w/ GYP. | 1098 # The _run targets exist only for compatibility w/ GYP. |
| 1100 group("telemetry_unittests_run") { | 1099 group("telemetry_unittests_run") { |
| 1101 testonly = true | 1100 testonly = true |
| 1102 deps = [ | 1101 deps = [ |
| 1103 ":telemetry_unittests", | 1102 ":telemetry_unittests", |
| 1104 ] | 1103 ] |
| 1105 } | 1104 } |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 "data/webui/ntp4_browsertest.h", | 1885 "data/webui/ntp4_browsertest.h", |
| 1887 "data/webui/print_preview.cc", | 1886 "data/webui/print_preview.cc", |
| 1888 "data/webui/print_preview.h", | 1887 "data/webui/print_preview.h", |
| 1889 "data/webui/webui_resource_browsertest.cc", | 1888 "data/webui/webui_resource_browsertest.cc", |
| 1890 "gpu/webgl_infobar_browsertest.cc", | 1889 "gpu/webgl_infobar_browsertest.cc", |
| 1891 "ppapi/ppapi_browsertest.cc", | 1890 "ppapi/ppapi_browsertest.cc", |
| 1892 "ppapi/ppapi_filechooser_browsertest.cc", | 1891 "ppapi/ppapi_filechooser_browsertest.cc", |
| 1893 ] | 1892 ] |
| 1894 | 1893 |
| 1895 deps += [ | 1894 deps += [ |
| 1896 ":browser_tests_js_webui", | |
| 1897 ":sync_integration_test_support", | 1895 ":sync_integration_test_support", |
| 1898 ":test_support_ui", | 1896 ":test_support_ui", |
| 1899 "//base:i18n", | 1897 "//base:i18n", |
| 1900 "//base/test:test_support", | 1898 "//base/test:test_support", |
| 1901 "//chrome:browser_tests_pak", | 1899 "//chrome:browser_tests_pak", |
| 1902 "//chrome:packed_resources", | 1900 "//chrome:packed_resources", |
| 1903 "//chrome:resources", | 1901 "//chrome:resources", |
| 1904 "//chrome:strings", | 1902 "//chrome:strings", |
| 1905 "//chrome/browser", | 1903 "//chrome/browser", |
| 1906 "//chrome/renderer", | 1904 "//chrome/renderer", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1945 "//third_party/webrtc_overrides", | 1943 "//third_party/webrtc_overrides", |
| 1946 "//third_party/widevine/cdm:headers", | 1944 "//third_party/widevine/cdm:headers", |
| 1947 "//ui/accessibility:test_support", | 1945 "//ui/accessibility:test_support", |
| 1948 "//ui/base:test_support", | 1946 "//ui/base:test_support", |
| 1949 "//ui/compositor:test_support", | 1947 "//ui/compositor:test_support", |
| 1950 "//ui/resources", | 1948 "//ui/resources", |
| 1951 "//ui/web_dialogs:test_support", | 1949 "//ui/web_dialogs:test_support", |
| 1952 "//v8", | 1950 "//v8", |
| 1953 ] | 1951 ] |
| 1954 | 1952 |
| 1953 if (!skip_js_tests) { |
| 1954 deps += [ ":browser_tests_js_webui" ] |
| 1955 } |
| 1956 |
| 1955 # Runtime dependencies | 1957 # Runtime dependencies |
| 1956 data_deps += [ | 1958 data_deps += [ |
| 1957 "//ppapi:ppapi_tests", | 1959 "//ppapi:ppapi_tests", |
| 1958 "//ppapi:power_saver_test_plugin", | 1960 "//ppapi:power_saver_test_plugin", |
| 1959 "//remoting/webapp:browser_test_resources", | 1961 "//remoting/webapp:browser_test_resources", |
| 1960 "//remoting/webapp:unit_tests", | 1962 "//remoting/webapp:unit_tests", |
| 1961 "//third_party/mesa:osmesa", | 1963 "//third_party/mesa:osmesa", |
| 1962 "//third_party/widevine/cdm:widevine_test_license_server", | 1964 "//third_party/widevine/cdm:widevine_test_license_server", |
| 1963 ] | 1965 ] |
| 1964 | 1966 |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3016 | 3018 |
| 3017 data = [ | 3019 data = [ |
| 3018 # Needed for isolate script to execute. | 3020 # Needed for isolate script to execute. |
| 3019 "//testing/scripts/common.py", | 3021 "//testing/scripts/common.py", |
| 3020 "//testing/xvfb.py", | 3022 "//testing/xvfb.py", |
| 3021 "//testing/scripts/run_gtest_perf_test.py", | 3023 "//testing/scripts/run_gtest_perf_test.py", |
| 3022 "//tools/perf/generate_legacy_perf_dashboard_json.py", | 3024 "//tools/perf/generate_legacy_perf_dashboard_json.py", |
| 3023 ] | 3025 ] |
| 3024 } | 3026 } |
| 3025 | 3027 |
| 3026 js2gtest("unit_tests_js") { | 3028 if (!skip_js_tests) { |
| 3027 test_type = "unit" | 3029 js2gtest("unit_tests_js") { |
| 3028 sources = [ | 3030 test_type = "unit" |
| 3029 "../browser/resources/md_downloads/action_service_unittest.gtestjs", | 3031 sources = [ |
| 3030 "../browser/resources/print_preview/data/measurement_system_unittest.gtestjs
", | 3032 "../browser/resources/md_downloads/action_service_unittest.gtestjs", |
| 3031 "../browser/resources/print_preview/print_preview_utils_unittest.gtestjs", | 3033 "../browser/resources/print_preview/data/measurement_system_unittest.gtest
js", |
| 3032 "../renderer/resources/extensions/notifications_custom_bindings.gtestjs", | 3034 "../browser/resources/print_preview/print_preview_utils_unittest.gtestjs", |
| 3033 "../test/data/unit/framework_unittest.gtestjs", | 3035 "../renderer/resources/extensions/notifications_custom_bindings.gtestjs", |
| 3034 ] | 3036 "../test/data/unit/framework_unittest.gtestjs", |
| 3035 extra_js_files = [ | |
| 3036 "../browser/resources/md_downloads/action_service.js", | |
| 3037 "../browser/resources/print_preview/data/measurement_system.js", | |
| 3038 "../browser/resources/print_preview/print_preview_utils.js", | |
| 3039 "../renderer/resources/extensions/notifications_custom_bindings.js", | |
| 3040 "../renderer/resources/extensions/notifications_test_util.js", | |
| 3041 "//ui/webui/resources/js/cr.js", | |
| 3042 ] | |
| 3043 if (is_chromeos) { | |
| 3044 sources += [ | |
| 3045 "../browser/resources/chromeos/braille_ime/braille_ime_unittest.gtestjs", | |
| 3046 "../browser/resources/chromeos/select_to_speak/select_to_speak_unittest.gt
estjs", | |
| 3047 "../browser/resources/chromeos/switch_access/switch_access_unittest.gtestj
s", | |
| 3048 ] | 3037 ] |
| 3049 extra_js_files += [ | 3038 extra_js_files = [ |
| 3050 "../browser/resources/chromeos/braille_ime/braille_ime.js", | 3039 "../browser/resources/md_downloads/action_service.js", |
| 3051 "../browser/resources/chromeos/select_to_speak/select_to_speak.js", | 3040 "../browser/resources/print_preview/data/measurement_system.js", |
| 3052 "../browser/resources/chromeos/select_to_speak/test_support.js", | 3041 "../browser/resources/print_preview/print_preview_utils.js", |
| 3053 "../browser/resources/chromeos/switch_access/switch_access.js", | 3042 "../renderer/resources/extensions/notifications_custom_bindings.js", |
| 3054 "../browser/resources/chromeos/switch_access/test_support.js", | 3043 "../renderer/resources/extensions/notifications_test_util.js", |
| 3055 "../browser/resources/chromeos/switch_access/testable_switch_access.js", | 3044 "//ui/webui/resources/js/cr.js", |
| 3056 ] | 3045 ] |
| 3046 if (is_chromeos) { |
| 3047 sources += [ |
| 3048 "../browser/resources/chromeos/braille_ime/braille_ime_unittest.gtestjs"
, |
| 3049 "../browser/resources/chromeos/select_to_speak/select_to_speak_unittest.
gtestjs", |
| 3050 "../browser/resources/chromeos/switch_access/switch_access_unittest.gtes
tjs", |
| 3051 ] |
| 3052 extra_js_files += [ |
| 3053 "../browser/resources/chromeos/braille_ime/braille_ime.js", |
| 3054 "../browser/resources/chromeos/select_to_speak/select_to_speak.js", |
| 3055 "../browser/resources/chromeos/select_to_speak/test_support.js", |
| 3056 "../browser/resources/chromeos/switch_access/switch_access.js", |
| 3057 "../browser/resources/chromeos/switch_access/test_support.js", |
| 3058 "../browser/resources/chromeos/switch_access/testable_switch_access.js", |
| 3059 ] |
| 3060 } |
| 3057 } | 3061 } |
| 3058 } | 3062 } |
| 3059 | 3063 |
| 3060 test("unit_tests") { | 3064 test("unit_tests") { |
| 3061 sources = [ | 3065 sources = [ |
| 3062 # histograms.xml is analyzed by AboutFlagsHistogramTest, so this | 3066 # histograms.xml is analyzed by AboutFlagsHistogramTest, so this |
| 3063 # dependency is needed to make commit bots run unit_tests on | 3067 # dependency is needed to make commit bots run unit_tests on |
| 3064 # histograms.xml changes. | 3068 # histograms.xml changes. |
| 3065 "../../tools/metrics/histograms/histograms.xml", | 3069 "../../tools/metrics/histograms/histograms.xml", |
| 3066 | 3070 |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3777 sources += [ | 3781 sources += [ |
| 3778 "../browser/devtools/devtools_ui_bindings_unittest.cc", | 3782 "../browser/devtools/devtools_ui_bindings_unittest.cc", |
| 3779 "../browser/download/download_dir_policy_handler_unittest.cc", | 3783 "../browser/download/download_dir_policy_handler_unittest.cc", |
| 3780 "../browser/lifetime/keep_alive_registry_unittest.cc", | 3784 "../browser/lifetime/keep_alive_registry_unittest.cc", |
| 3781 "../browser/renderer_context_menu/render_view_context_menu_test_util.cc", | 3785 "../browser/renderer_context_menu/render_view_context_menu_test_util.cc", |
| 3782 "../browser/renderer_context_menu/render_view_context_menu_test_util.h", | 3786 "../browser/renderer_context_menu/render_view_context_menu_test_util.h", |
| 3783 "../browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc", | 3787 "../browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc", |
| 3784 "../browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc", | 3788 "../browser/ui/bluetooth/bluetooth_chooser_controller_unittest.cc", |
| 3785 "../browser/ui/passwords/manage_passwords_ui_controller_unittest.cc", | 3789 "../browser/ui/passwords/manage_passwords_ui_controller_unittest.cc", |
| 3786 ] | 3790 ] |
| 3787 deps += [ | 3791 if (!skip_js_tests) { |
| 3788 ":unit_tests_js", | 3792 sources += [ ":unit_tests_js" ] |
| 3789 "//components/bubble:test_support", | 3793 } |
| 3790 ] | 3794 deps += [ "//components/bubble:test_support" ] |
| 3791 data += [ | 3795 data += [ |
| 3792 "$root_out_dir/test_data/chrome/browser/resources/print_preview/", | 3796 "$root_out_dir/test_data/chrome/browser/resources/print_preview/", |
| 3793 "$root_out_dir/test_data/chrome/renderer/resources/extensions/", | 3797 "$root_out_dir/test_data/chrome/renderer/resources/extensions/", |
| 3794 "$root_out_dir/test_data/ui/webui/", | 3798 "$root_out_dir/test_data/ui/webui/", |
| 3795 ] | 3799 ] |
| 3796 } | 3800 } |
| 3797 | 3801 |
| 3798 if (is_linux || is_win) { | 3802 if (is_linux || is_win) { |
| 3799 sources += [ "../browser/webshare/share_service_impl_unittest.cc" ] | 3803 sources += [ "../browser/webshare/share_service_impl_unittest.cc" ] |
| 3800 } | 3804 } |
| (...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5194 } | 5198 } |
| 5195 | 5199 |
| 5196 if (is_win) { | 5200 if (is_win) { |
| 5197 loadable_module("conflicts_dll") { | 5201 loadable_module("conflicts_dll") { |
| 5198 testonly = true | 5202 testonly = true |
| 5199 sources = [ | 5203 sources = [ |
| 5200 "conflicts/conflicts_dll.cc", | 5204 "conflicts/conflicts_dll.cc", |
| 5201 ] | 5205 ] |
| 5202 } | 5206 } |
| 5203 } | 5207 } |
| OLD | NEW |