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