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

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

Issue 2106193002: [Android] Create buildable browser_tests gn target for android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: prereview: Rebase gn fixes. Created 4 years, 5 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
« chrome/chrome_tests.gypi ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/chrome_tests.gni") 10 import("//chrome/chrome_tests.gni")
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 852
853 group("mash_browser_tests") { 853 group("mash_browser_tests") {
854 testonly = true 854 testonly = true
855 data = [ 855 data = [
856 "//testing/buildbot/filters/mojo.fyi.browser_tests.filter", 856 "//testing/buildbot/filters/mojo.fyi.browser_tests.filter",
857 ] 857 ]
858 data_deps = [ 858 data_deps = [
859 ":browser_tests", 859 ":browser_tests",
860 ] 860 ]
861 } 861 }
862 }
862 863
863 test("browser_tests") { 864 test("browser_tests") {
864 sources = [ 865 sources = [
865 "base/browser_tests_main.cc", 866 "base/browser_tests_main.cc",
867 ]
868 sources += rebase_path(chrome_tests_gypi_values.chrome_browser_tests_sources,
869 ".",
870 "//chrome")
871
872 configs += [
873 "//build/config:precompiled_headers",
874 "//third_party/WebKit/public:debug_devtools",
875 ]
876
877 deps = [
878 ":test_support",
879 "//base",
880 "//sync:test_support_sync_api",
881 ]
882
883 data_deps = []
884
885 data = []
886
887 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
888
889 if (is_win) {
890 data += [ "$root_out_dir/chrome_200_percent.pak" ]
891 }
892 if (is_mac) {
893 data += [
894 "$root_out_dir/chrome_material_100_percent.pak",
895 "$root_out_dir/chrome_material_200_percent.pak",
866 ] 896 ]
867 sources += 897 }
868 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_sources, 898 if (is_chromeos) {
869 ".", 899 data += [
870 "//chrome") 900 # TODO(GYP): figure out which of these things are
901 # actually needed and also which should be pulled in via
902 # data or data_deps and through which dependencies.
903 "//chrome/browser/chromeos/login/test/https_forwarder.py",
904 "//chrome/browser/resources/chromeos/wallpaper_manager/",
905 "//chromeos/test/data/",
906 "//components/chrome_apps/webstore_widget/cws_widget/",
907 "//ui/file_manager/file_manager/",
908 "//ui/file_manager/gallery/",
909 "//ui/file_manager/image_loader/",
910 "//ui/file_manager/integration_tests/",
911 "//third_party/analytics/",
912 "//third_party/polymer/v1_0/components-chromium/polymer/",
913 "$root_out_dir/chromevox_test_data/",
914 "$root_out_dir/content_shell.pak",
915 "$root_out_dir/locales/",
916 "$root_out_dir/resources/chromeos/",
917 ]
918
919 data_deps += [ "//ui/keyboard:resources" ]
920
921 if (enable_nacl) {
922 data_deps += [
923 "//components/nacl/loader:nacl_helper",
924 "//ppapi/native_client:irt",
925 ]
926 }
927 }
928
929 # TODO(jbudorick): In progress. See crbug.com/611756
930 if (is_android) {
931 deps += [
932 "//chrome/android:chrome_java",
933 "//v8:v8_external_startup_data_assets",
934 ]
935
936 enable_multidex = true
937 } else {
871 sources += rebase_path( 938 sources += rebase_path(
872 chrome_tests_gypi_values.chrome_browser_extensions_test_support_sour ces, 939 chrome_tests_gypi_values.chrome_browser_tests_desktop_only_sources,
873 ".", 940 ".",
874 "//chrome") 941 "//chrome")
875 942
876 configs += [ 943 deps += [
877 "//build/config:precompiled_headers",
878 "//third_party/WebKit/public:debug_devtools",
879 ]
880
881 data = [
882 "data/",
883 "//chrome/browser/policy/test/asn1der.py",
884 "//chrome/browser/policy/test/policy_testserver.py",
885 "//chrome/common/extensions/docs/examples/apps/calculator/",
886 "//chrome/third_party/mock4js/",
887 "//content/test/data/",
888 "//google_apis/test/",
889 "//media/test/data/",
890 "//net/tools/testserver/",
891 "//ppapi/tests/test_case.html",
892 "//ppapi/tests/test_case.html.mock-http-headers",
893 "//ppapi/tests/test_page.css",
894 "//ppapi/tests/test_page.css.mock-http-headers",
895 "//testing/test_env.py",
896 "//third_party/accessibility-audit/axs_testing.js",
897 "//third_party/chaijs/chai.js",
898 "//third_party/mocha/mocha.js",
899 "//third_party/pyftpdlib/",
900 "//third_party/pywebsocket/",
901 "//third_party/simplejson/",
902 "//third_party/tlslite/",
903 "//ui/webui/resources/js/",
904 "$root_out_dir/pyproto/",
905 "$root_out_dir/browser_tests.pak",
906 "$root_out_dir/chrome_100_percent.pak",
907 "$root_out_dir/chrome_200_percent.pak",
908 "$root_out_dir/remoting/unittests/",
909 "$root_out_dir/resources/extension/",
910 "$root_out_dir/test_case.html",
911 "$root_out_dir/test_case.html.mock-http-headers",
912 "$root_out_dir/test_data/",
913 "$root_out_dir/test_page.css",
914 "$root_out_dir/test_page.css.mock-http-headers",
915 "$root_out_dir/test_url_loader_data/",
916 ]
917 if (is_win) {
918 data += [ "$root_out_dir/chrome_200_percent.pak" ]
919 }
920 if (is_mac) {
921 data += [
922 "$root_out_dir/chrome_material_100_percent.pak",
923 "$root_out_dir/chrome_material_200_percent.pak",
924 ]
925 }
926 if (is_chromeos) {
927 data += [
928 # TODO(GYP): figure out which of these things are
929 # actually needed and also which should be pulled in via
930 # data or data_deps and through which dependencies.
931 "//chrome/browser/chromeos/login/test/https_forwarder.py",
932 "//chrome/browser/resources/chromeos/wallpaper_manager/",
933 "//chromeos/test/data/",
934 "//components/chrome_apps/webstore_widget/cws_widget/",
935 "//ui/file_manager/file_manager/",
936 "//ui/file_manager/gallery/",
937 "//ui/file_manager/image_loader/",
938 "//ui/file_manager/integration_tests/",
939 "//third_party/analytics/",
940 "//third_party/polymer/v1_0/components-chromium/polymer/",
941 "$root_out_dir/chromevox_test_data/",
942 "$root_out_dir/content_shell.pak",
943 "$root_out_dir/locales/",
944 "$root_out_dir/resources/chromeos/",
945 ]
946
947 data_deps = [
948 "//ui/keyboard:resources",
949 ]
950
951 if (enable_nacl) {
952 data_deps += [
953 "//components/nacl/loader:nacl_helper",
954 "//ppapi/native_client:irt",
955 ]
956 }
957 } else {
958 data_deps = []
959 }
960
961 deps = [
962 ":browser_tests_js_webui", 944 ":browser_tests_js_webui",
963 ":sync_integration_test_support", 945 ":sync_integration_test_support",
964 ":test_support",
965 ":test_support_ui", 946 ":test_support_ui",
966 "//base",
967 "//base:i18n", 947 "//base:i18n",
968 "//base/test:test_support", 948 "//base/test:test_support",
969 "//chrome:browser_tests_pak", 949 "//chrome:browser_tests_pak",
970 "//chrome:packed_extra_resources", 950 "//chrome:packed_extra_resources",
971 "//chrome:packed_resources", 951 "//chrome:packed_resources",
972 "//chrome:resources", 952 "//chrome:resources",
973 "//chrome:strings", 953 "//chrome:strings",
974 "//chrome/browser", 954 "//chrome/browser",
975 "//chrome/browser/resources:extension_resource_demo", 955 "//chrome/browser/resources:extension_resource_demo",
976 "//chrome/common/extensions/api",
977 "//chrome/renderer", 956 "//chrome/renderer",
978 "//components/autofill/content/browser:risk_proto", 957 "//components/autofill/content/browser:risk_proto",
979 "//components/autofill/content/renderer:test_support", 958 "//components/autofill/content/renderer:test_support",
980 "//components/captive_portal:test_support", 959 "//components/captive_portal:test_support",
981 "//components/dom_distiller/content/browser", 960 "//components/dom_distiller/content/browser",
982 "//components/dom_distiller/content/renderer", 961 "//components/dom_distiller/content/renderer",
983 "//components/dom_distiller/core:test_support", 962 "//components/dom_distiller/core:test_support",
984 "//components/guest_view/browser:test_support", 963 "//components/guest_view/browser:test_support",
985 "//components/resources", 964 "//components/resources",
986 "//components/safe_browsing_db:test_database_manager", 965 "//components/safe_browsing_db:test_database_manager",
987 "//components/strings", 966 "//components/strings",
988 "//components/translate/core/common", 967 "//components/translate/core/common",
989 "//content/public/common:features", 968 "//content/public/common:features",
990 "//content/test:browsertest_base", 969 "//content/test:browsertest_base",
991 "//crypto:platform", 970 "//crypto:platform",
992 "//crypto:test_support", 971 "//crypto:test_support",
993 "//device/bluetooth:mocks", 972 "//device/bluetooth:mocks",
994 "//device/serial:test_support", 973 "//device/serial:test_support",
995 "//device/usb:test_support", 974 "//device/usb:test_support",
996 "//extensions/common/api",
997 "//google_apis:test_support", 975 "//google_apis:test_support",
998 "//media", 976 "//media",
999 "//media/base:test_support", 977 "//media/base:test_support",
1000 "//media/cast:test_support", 978 "//media/cast:test_support",
1001 "//net", 979 "//net",
1002 "//net:test_support", 980 "//net:test_support",
1003 "//sdch", 981 "//sdch",
1004 "//skia", 982 "//skia",
1005 "//sync", 983 "//sync",
1006 "//sync:test_support_sync_api",
1007 "//testing/gmock", 984 "//testing/gmock",
1008 "//testing/gtest", 985 "//testing/gtest",
1009 "//testing/perf", 986 "//testing/perf",
1010 "//third_party/cacheinvalidation", 987 "//third_party/cacheinvalidation",
1011 "//third_party/icu", 988 "//third_party/icu",
1012 "//third_party/leveldatabase", 989 "//third_party/leveldatabase",
1013 "//third_party/libjingle", 990 "//third_party/libjingle",
1014 "//third_party/webrtc/modules/desktop_capture", 991 "//third_party/webrtc/modules/desktop_capture",
1015 "//third_party/widevine/cdm:version_h", 992 "//third_party/widevine/cdm:version_h",
1016 "//ui/accessibility:test_support", 993 "//ui/accessibility:test_support",
1017 "//ui/base:test_support", 994 "//ui/base:test_support",
1018 "//ui/compositor:test_support", 995 "//ui/compositor:test_support",
1019 "//ui/resources", 996 "//ui/resources",
1020 "//ui/web_dialogs:test_support", 997 "//ui/web_dialogs:test_support",
1021 "//v8", 998 "//v8",
1022 ] 999 ]
1023 1000
1024 # TODO(rockot) bug 505926: The chrome_extensions_browsertests target should
1025 # be deleted and this line removed. See the chrome_extensions_browsertests
1026 # target for more.
1027 deps += [ "//extensions:chrome_extensions_browsertests" ]
1028
1029 # Runtime dependencies 1001 # Runtime dependencies
1030 data_deps += [ 1002 data_deps += [
1031 "//chrome", 1003 "//chrome",
1032 "//ppapi:ppapi_tests", 1004 "//ppapi:ppapi_tests",
1033 "//ppapi:power_saver_test_plugin", 1005 "//ppapi:power_saver_test_plugin",
1034 "//remoting/webapp:browser_test_resources", 1006 "//remoting/webapp:browser_test_resources",
1035 "//remoting/webapp:unit_tests", 1007 "//remoting/webapp:unit_tests",
1036 "//third_party/mesa:osmesa", 1008 "//third_party/mesa:osmesa",
1037 "//third_party/widevine/cdm:widevine_test_license_server", 1009 "//third_party/widevine/cdm:widevine_test_license_server",
1038 ] 1010 ]
1039 1011
1012 data += [
1013 "data/",
1014 "//chrome/browser/policy/test/asn1der.py",
1015 "//chrome/browser/policy/test/policy_testserver.py",
1016 "//chrome/common/extensions/docs/examples/apps/calculator/",
1017 "//chrome/third_party/mock4js/",
1018 "//content/test/data/",
1019 "//google_apis/test/",
1020 "//media/test/data/",
1021 "//net/tools/testserver/",
1022 "//ppapi/tests/test_case.html",
1023 "//ppapi/tests/test_case.html.mock-http-headers",
1024 "//ppapi/tests/test_page.css",
1025 "//ppapi/tests/test_page.css.mock-http-headers",
1026 "//testing/test_env.py",
1027 "//third_party/accessibility-audit/axs_testing.js",
1028 "//third_party/chaijs/chai.js",
1029 "//third_party/mocha/mocha.js",
1030 "//third_party/pyftpdlib/",
1031 "//third_party/pywebsocket/",
1032 "//third_party/simplejson/",
1033 "//third_party/tlslite/",
1034 "//ui/webui/resources/js/",
1035 "$root_out_dir/pyproto/",
1036 "$root_out_dir/browser_tests.pak",
1037 "$root_out_dir/chrome_100_percent.pak",
1038 "$root_out_dir/chrome_200_percent.pak",
1039 "$root_out_dir/remoting/unittests/",
1040 "$root_out_dir/resources/extension/",
1041 "$root_out_dir/test_case.html",
1042 "$root_out_dir/test_case.html.mock-http-headers",
1043 "$root_out_dir/test_data/",
1044 "$root_out_dir/test_page.css",
1045 "$root_out_dir/test_page.css.mock-http-headers",
1046 "$root_out_dir/test_url_loader_data/",
1047 ]
1048
1049 # TODO(jbudorick): The conditionals below are all platform-related and are
1050 # trivially always true on android.
1051
1040 if (!is_mac) { 1052 if (!is_mac) {
1041 data += [ "$root_out_dir/locales/" ] 1053 data += [ "$root_out_dir/locales/" ]
1042 data_deps += [ "//chrome:packed_extra_resources" ] 1054 data_deps += [ "//chrome:packed_extra_resources" ]
1043 } 1055 }
1056 if (!is_chromeos) {
1057 sources -= [
1058 "../browser/extensions/api/enterprise_device_attributes/enterprise_devic e_attributes_apitest.cc",
1059 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_ keys_apitest_nss.cc",
1060 "../browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc",
1061 "../browser/extensions/api/terminal/terminal_private_apitest.cc",
1062 "../browser/invalidation/profile_invalidation_provider_factory_browserte st.cc",
1063 "../browser/net/nss_context_chromeos_browsertest.cc",
1064 "data/webui/certificate_viewer_ui_test-inl.h",
1065 ]
1066 if (use_ash) {
1067 sources -= [ "../browser/ui/ash/keyboard_controller_browsertest.cc" ]
1068 sources -= [
1069 # On Windows and Linux, we currently don't support enough of the
1070 # ash environment to run these unit tests.
1071 #
1072 # TODO: enable these on windows and linux.
1073 "../browser/ui/ash/accelerator_commands_browsertest.cc",
1074 "../browser/ui/ash/accelerator_controller_browsertest.cc",
1075 "../browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertes t.cc",
1076 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
1077 "../browser/ui/ash/shelf_browsertest.cc",
1078 ]
1079 if (toolkit_views) {
1080 sources -= [ "../browser/ui/views/frame/browser_non_client_frame_view_ ash_browsertest.cc" ]
1081 }
1082 }
1083 if (is_win || is_linux) {
1084 sources +=
1085 [ "../browser/ui/views/ime/input_ime_apitest_nonchromeos.cc" ]
1086 }
1087 }
1088 if (!is_win) {
1089 sources -= [
1090 "../app/chrome_command_ids.h",
1091 "../app/chrome_dll_resource.h",
1092 "../app/chrome_version.rc.version",
1093 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc ",
1094 ]
1095 }
1096 if (is_android || is_ios || is_chromeos) {
1097 sources -= [ "../browser/profiles/profile_statistics_browsertest.cc" ]
1098 }
1044 1099
1045 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1100 # TODO(jbudorick): The conditionals below are configurable in gn but
1101 # default to true on android.
1046 1102
1103 if (enable_webrtc) {
1104 deps += [ "//content/public/common:feature_h264_with_openh264_ffmpeg" ]
1105 } else {
1106 sources -= [
1107 "../browser/extensions/api/webrtc_audio_private/webrtc_audio_private_bro wsertest.cc",
1108 "../browser/extensions/api/webrtc_logging_private/webrtc_event_log_apite st.cc",
1109 "../browser/extensions/api/webrtc_logging_private/webrtc_logging_private _apitest.cc",
1110 "../browser/media/webrtc_apprtc_browsertest.cc",
1111 "../browser/media/webrtc_audio_quality_browsertest.cc",
1112 "../browser/media/webrtc_browsertest.cc",
1113 "../browser/media/webrtc_disable_encryption_flag_browsertest.cc",
1114 "../browser/media/webrtc_getmediadevices_browsertest.cc",
1115 "../browser/media/webrtc_perf_browsertest.cc",
1116 "../browser/media/webrtc_simulcast_browsertest.cc",
1117 "../browser/media/webrtc_video_quality_browsertest.cc",
1118 "../browser/media/webrtc_webcam_browsertest.cc",
1119 ]
1120 }
1121 if (enable_media_router) {
1122 sources += [ "../browser/ui/webui/media_router/media_router_dialog_control ler_impl_browsertest.cc" ]
1123 deps += [ "//chrome/test/media_router:media_router_browsertests" ]
1124 }
1125 if (enable_supervised_users) {
1126 sources += rebase_path(
1127 chrome_tests_gypi_values.chrome_browser_tests_supervised_user_sour ces,
1128 ".",
1129 "//chrome")
1130 }
1131 if (!enable_print_preview) {
1132 sources -= [
1133 "../browser/extensions/api/cloud_print_private/cloud_print_private_apite st.cc",
1134 "../browser/printing/print_preview_dialog_controller_browsertest.cc",
1135 "../browser/printing/print_preview_pdf_generated_browsertest.cc",
1136 "../browser/service_process/service_process_control_browsertest.cc",
1137 "../browser/ui/webui/print_preview/print_preview_ui_browsertest.cc",
1138 "data/webui/print_preview.cc",
1139 "data/webui/print_preview.h",
1140 ]
1141 }
1142 if (!enable_print_preview || is_mac || is_chromeos) {
1143 sources -= [
1144 # This test depends on GetCommandLineForRelaunch, which is not
1145 # available on Mac. It is also not intended to run on ChromeOS.
1146 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1147 ]
1148 }
1149 if (!enable_print_preview || is_chromeos) {
1150 sources -= [
1151 # Not intended to run on ChromeOS.
1152 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc",
1153 ]
1154 }
1155 if (enable_remoting) {
1156 sources += rebase_path(
1157 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
1158 ".",
1159 "//chrome")
1160 deps += [ "//remoting/webapp" ]
1161 }
1162
1163 # TODO(jbudorick): The conditionals below are configurable in gn but
1164 # default to false on android.
1165
1166 if (enable_extensions) {
1167 sources += rebase_path(
1168 chrome_tests_gypi_values.chrome_browser_extensions_test_support_so urces,
1169 ".",
1170 "//chrome")
1171
1172 deps += [
1173 "//chrome/common/extensions/api",
1174
1175 # TODO(rockot) bug 505926: The chrome_extensions_browsertests target
1176 # should be deleted and this line removed. See the
1177 # chrome_extensions_browsertests target for more.
1178 "//extensions:chrome_extensions_browsertests",
1179 "//extensions/common/api",
1180 ]
1181 }
1047 if (!enable_one_click_signin) { 1182 if (!enable_one_click_signin) {
1048 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ] 1183 sources -= [ "../browser/ui/sync/one_click_signin_links_delegate_impl_brow sertest.cc" ]
1049 } 1184 }
1185
1050 if (enable_nacl) { 1186 if (enable_nacl) {
1051 sources += [ 1187 sources += [
1052 "../browser/extensions/extension_nacl_browsertest.cc", 1188 "../browser/extensions/extension_nacl_browsertest.cc",
1053 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc", 1189 "../browser/nacl_host/test/gdb_debug_stub_browsertest.cc",
1054 "nacl/nacl_browsertest.cc", 1190 "nacl/nacl_browsertest.cc",
1055 "nacl/nacl_browsertest_uma.cc", 1191 "nacl/nacl_browsertest_uma.cc",
1056 "nacl/nacl_browsertest_util.cc", 1192 "nacl/nacl_browsertest_util.cc",
1057 "nacl/nacl_browsertest_util.h", 1193 "nacl/nacl_browsertest_util.h",
1058 "nacl/pnacl_header_test.cc", 1194 "nacl/pnacl_header_test.cc",
1059 "nacl/pnacl_header_test.h", 1195 "nacl/pnacl_header_test.h",
(...skipping 29 matching lines...) Expand all
1089 configs += 1225 configs +=
1090 [ "//build/config/win:default_large_module_incremental_linking" ] 1226 [ "//build/config/win:default_large_module_incremental_linking" ]
1091 } 1227 }
1092 if (is_linux) { 1228 if (is_linux) {
1093 data_deps += [ 1229 data_deps += [
1094 "//components/nacl/loader:nacl_helper", 1230 "//components/nacl/loader:nacl_helper",
1095 "//components/nacl/loader:helper_nonsfi", 1231 "//components/nacl/loader:helper_nonsfi",
1096 ] 1232 ]
1097 } 1233 }
1098 } 1234 }
1235
1099 if (use_ash) { 1236 if (use_ash) {
1100 sources += 1237 sources +=
1101 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_ash_sources, 1238 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_ash_sources,
1102 ".", 1239 ".",
1103 "//chrome") 1240 "//chrome")
1104 deps += [ "//ash:test_support" ] 1241 deps += [ "//ash:test_support" ]
1105 1242
1106 if (enable_app_list) { 1243 if (enable_app_list) {
1107 deps += [ ":test_support_applist_ash" ] 1244 deps += [ ":test_support_applist_ash" ]
1108 } 1245 }
1109 } 1246 }
1247
1110 if (use_aura || toolkit_views) { 1248 if (use_aura || toolkit_views) {
1111 deps += [ "//ui/events:test_support" ] 1249 deps += [ "//ui/events:test_support" ]
1112 } 1250 }
1251
1113 if (toolkit_views) { 1252 if (toolkit_views) {
1114 sources += rebase_path( 1253 sources += rebase_path(
1115 chrome_tests_gypi_values.chrome_browser_tests_views_sources, 1254 chrome_tests_gypi_values.chrome_browser_tests_views_sources,
1116 ".", 1255 ".",
1117 "//chrome") 1256 "//chrome")
1118 deps += [ "//ui/views" ] 1257 deps += [ "//ui/views" ]
1119 if (!is_mac) { 1258 if (!is_mac) {
1120 sources += rebase_path( 1259 sources += rebase_path(
1121 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sour ces, 1260 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sour ces,
1122 ".", 1261 ".",
1123 "//chrome") 1262 "//chrome")
1124 if (!is_chromeos) { 1263 if (!is_chromeos) {
1125 sources += rebase_path( 1264 sources += rebase_path(
1126 chrome_tests_gypi_values.chrome_browser_tests_views_non_cros_o r_mac_sources, 1265 chrome_tests_gypi_values.chrome_browser_tests_views_non_cros_o r_mac_sources,
1127 ".", 1266 ".",
1128 "//chrome") 1267 "//chrome")
1129 } 1268 }
1130 } 1269 }
1270 if (!is_chromeos) {
1271 sources -= [ "../browser/ui/views/select_file_dialog_extension_browserte st.cc" ]
1272 }
1131 } 1273 }
1132 1274
1133 if (is_linux && !is_component_build) {
sky 2016/07/06 16:00:51 Can you try to try to keep the same order so this
jbudorick 2016/07/07 14:58:32 Done.
1134 # Set rpath to find the CDM adapter even in a non-component build.
1135 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
1136 }
1137
1138 if (is_chromeos) {
1139 sources += rebase_path(
1140 chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources,
1141 ".",
1142 "//chrome")
1143 sources -= [
1144 "../../apps/load_and_launch_browsertest.cc",
1145 "../browser/policy/policy_startup_browsertest.cc",
1146
1147 # chromeos does not support profile list avatar menu
1148 "../browser/profiles/profile_list_desktop_browsertest.cc",
1149 "../browser/service_process/service_process_control_browsertest.cc",
1150
1151 # chromeos does not use cross-platform panels
1152 "../browser/ui/panels/panel_extension_browsertest.cc",
1153
1154 # inline login UI is disabled on chromeos
1155 "../browser/ui/webui/signin/inline_login_ui_browsertest.cc",
1156
1157 # chromeos does not use the desktop user manager
1158 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc",
1159 ]
1160 deps += [
1161 "//chromeos/ime:gencode",
1162 "//components/arc:arc_test_support",
1163 "//components/user_manager:test_support",
1164 "//ui/login:resources",
1165 ]
1166
1167 if (use_dbus) {
1168 deps += [ "//dbus:test_support" ]
1169 }
1170 } else {
1171 sources -= [
1172 "../browser/extensions/api/enterprise_device_attributes/enterprise_devic e_attributes_apitest.cc",
1173 "../browser/extensions/api/enterprise_platform_keys/enterprise_platform_ keys_apitest_nss.cc",
1174 "../browser/extensions/api/platform_keys/platform_keys_apitest_nss.cc",
1175 "../browser/extensions/api/terminal/terminal_private_apitest.cc",
1176 "../browser/invalidation/profile_invalidation_provider_factory_browserte st.cc",
1177 "../browser/net/nss_context_chromeos_browsertest.cc",
1178 "data/webui/certificate_viewer_ui_test-inl.h",
1179 ]
1180 if (use_ash) {
1181 sources -= [ "../browser/ui/ash/keyboard_controller_browsertest.cc" ]
1182 }
1183 if (toolkit_views) {
1184 sources -= [ "../browser/ui/views/select_file_dialog_extension_browserte st.cc" ]
1185 }
1186 if (is_win || is_linux) {
1187 sources +=
1188 [ "../browser/ui/views/ime/input_ime_apitest_nonchromeos.cc" ]
1189 }
1190 }
1191 if (enable_web_speech) { 1275 if (enable_web_speech) {
1192 sources += rebase_path( 1276 sources += rebase_path(
1193 chrome_tests_gypi_values.chrome_browser_tests_speech_sources, 1277 chrome_tests_gypi_values.chrome_browser_tests_speech_sources,
1194 ".", 1278 ".",
1195 "//chrome") 1279 "//chrome")
1196 } 1280 }
1197 if (safe_browsing_mode == 1) { 1281 if (safe_browsing_mode == 1) {
1198 sources += rebase_path( 1282 sources += rebase_path(
1199 chrome_tests_gypi_values.chrome_browser_tests_full_safe_browsing_s ources, 1283 chrome_tests_gypi_values.chrome_browser_tests_full_safe_browsing_s ources,
1200 ".", 1284 ".",
1201 "//chrome") 1285 "//chrome")
1202 } 1286 }
1203 if (enable_captive_portal_detection) { 1287 if (enable_captive_portal_detection) {
1204 sources += [ "../browser/captive_portal/captive_portal_browsertest.cc" ] 1288 sources += [ "../browser/captive_portal/captive_portal_browsertest.cc" ]
1205 } 1289 }
1206 if (enable_webrtc) {
1207 deps += [ "//content/public/common:feature_h264_with_openh264_ffmpeg" ]
1208 } else {
1209 sources -= [
1210 "../browser/extensions/api/webrtc_audio_private/webrtc_audio_private_bro wsertest.cc",
1211 "../browser/extensions/api/webrtc_logging_private/webrtc_event_log_apite st.cc",
1212 "../browser/extensions/api/webrtc_logging_private/webrtc_logging_private _apitest.cc",
1213 "../browser/media/webrtc_apprtc_browsertest.cc",
1214 "../browser/media/webrtc_audio_quality_browsertest.cc",
1215 "../browser/media/webrtc_browsertest.cc",
1216 "../browser/media/webrtc_disable_encryption_flag_browsertest.cc",
1217 "../browser/media/webrtc_getmediadevices_browsertest.cc",
1218 "../browser/media/webrtc_perf_browsertest.cc",
1219 "../browser/media/webrtc_simulcast_browsertest.cc",
1220 "../browser/media/webrtc_video_quality_browsertest.cc",
1221 "../browser/media/webrtc_webcam_browsertest.cc",
1222 ]
1223 }
1224 if (enable_media_router) {
1225 sources += [ "../browser/ui/webui/media_router/media_router_dialog_control ler_impl_browsertest.cc" ]
1226 deps += [ "//chrome/test/media_router:media_router_browsertests" ]
1227 }
1228 if (is_win) {
1229 deps += [
1230 "//chrome:other_version",
1231 "//third_party/wtl",
1232 "//ui/resources",
1233 ]
1234 } else {
1235 sources -= [
1236 "../app/chrome_command_ids.h",
1237 "../app/chrome_dll_resource.h",
1238 "../app/chrome_version.rc.version",
1239 "../browser/media_galleries/fileapi/iapps_finder_impl_win_browsertest.cc ",
1240 ]
1241 }
1242 if (!is_chromeos && use_ash) {
1243 sources -= [
1244 # On Windows and Linux, we currently don't support enough of the
1245 # ash environment to run these unit tests.
1246 #
1247 # TODO: enable these on windows and linux.
1248 "../browser/ui/ash/accelerator_commands_browsertest.cc",
1249 "../browser/ui/ash/accelerator_controller_browsertest.cc",
1250 "../browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest. cc",
1251 "../browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc",
1252 "../browser/ui/ash/shelf_browsertest.cc",
1253 ]
1254
1255 if (toolkit_views) {
1256 sources -= [ "../browser/ui/views/frame/browser_non_client_frame_view_as h_browsertest.cc" ]
1257 }
1258 }
1259 if (is_mac) {
1260 # TODO(mark): We really want this for all non-static library
1261 # targets, but when we tried to pull it up to the common.gypi
1262 # level, it broke other things like the ui and startup tests. *shrug*
1263 ldflags = [ "-Wl,-ObjC" ]
1264
1265 # Other platforms only need
1266 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
1267 # and can build this target standalone much faster.
1268 deps += [
1269 "//chrome",
1270 "//chrome/common:app_mode_app_support",
1271
1272 # TODO(GYP) Mac: GYP has this dependency. Uncommenting this line
1273 # generates duplicate symbols between
1274 # obj/components/crash/content/app/breakpad_stubs/crash_reporter_clien t.o
1275 # obj/components/crash/content/app/lib/crash_reporter_client.o
1276 # It's not clear how this is supposed to work. The intent seems to be
1277 # to not link breakpad in the tests. The dependency on .../app:lib
1278 # seems to come from //chrome/app:test_support. That reference maybe
1279 # should be a dependency on the stubs instead because it could be all
1280 # tests might want them. Or it could be that we need to make a new
1281 # "headers" target to make GN check happy, and then force each
1282 # executable to link the correct implementation. Somebody with a
1283 # higher-level understanding of Mac crash reporting needs to think
1284 # about this.
1285 # "//components/crash/content/app:breakpad_stubs",
1286 "//third_party/ocmock",
1287 ]
1288 sources +=
1289 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_mac_sources,
1290 ".",
1291 "//chrome")
1292 sources -= [
1293 # TODO(groby): This test depends on hunspell and we cannot run it on
1294 # Mac, which does not use hunspell by default.
1295 "../browser/spellchecker/spellcheck_service_browsertest.cc",
1296
1297 # ProcessSingletonMac doesn"t do anything.
1298 "../browser/process_singleton_browsertest.cc",
1299 ]
1300
1301 if (safe_browsing_mode == 1) {
1302 sources -= [
1303 # single-process mode hangs on Mac sometimes because of multiple UI
1304 # message loops. See 306348
1305 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
1306 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc ",
1307 ]
1308 }
1309
1310 data_deps += [
1311 "//chrome",
1312 "//chrome:chrome_framework",
1313 ]
1314
1315 # TODO(rsesek): Remove once https://crbug.com/611414 is fixed.
1316 data += [
1317 "$root_out_dir/Chromium.app/",
1318 "$root_out_dir/Chromium Framework.framework/",
1319 "$root_out_dir/power_saver_test_plugin.plugin/",
1320 "$root_out_dir/ppapi_tests.plugin/",
1321 ]
1322
1323 # The browser window can be views or Cocoa on Mac. Test accordingly.
1324 if (mac_views_browser) {
1325 sources += rebase_path(
1326 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_sour ces,
1327 ".",
1328 "//chrome")
1329 } else {
1330 sources += rebase_path(
1331 chrome_tests_gypi_values.chrome_browser_tests_cocoa_sources,
1332 ".",
1333 "//chrome")
1334 }
1335 }
1336 if (is_mac || is_win) {
1337 sources += [
1338 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
1339 "../browser/extensions/api/networking_private/networking_private_service _client_apitest.cc",
1340 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc" ,
1341 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc" ,
1342 ]
1343 deps += [ "//components/wifi:test_support" ]
1344 }
1345 if (is_linux || is_win) {
1346 sources += rebase_path(
1347 chrome_tests_gypi_values.chrome_browser_tests_non_mac_desktop_sour ces,
1348 ".",
1349 "//chrome")
1350 }
1351 if (!is_posix || is_chromeos) {
1352 sources -= [ "../common/time_format_browsertest.cc" ]
1353 }
1354 if (is_android) {
1355 sources -= [
1356 "../browser/policy/cloud/component_cloud_policy_browsertest.cc",
1357 "../browser/prefs/pref_hash_browsertest.cc",
1358 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc",
1359 "../renderer/spellchecker/spellcheck_unittest.cc",
1360 ]
1361 }
1362 if (is_chromeos) {
1363 sources += [
1364 "../browser/extensions/api/networking_private/networking_private_apitest .cc",
1365 "../browser/extensions/api/networking_private/networking_private_chromeo s_apitest.cc",
1366 ]
1367 }
1368 if (is_android || is_ios || is_chromeos) {
1369 sources -= [ "../browser/profiles/profile_statistics_browsertest.cc" ]
1370 }
1371 if (!is_android && !is_ios) {
1372 sources +=
1373 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ]
1374 deps += [
1375 "//components/copresence",
1376 "//third_party/libaddressinput",
1377 ]
1378 }
1379 if (enable_app_list) { 1290 if (enable_app_list) {
1380 sources += rebase_path( 1291 sources += rebase_path(
1381 chrome_tests_gypi_values.chrome_browser_tests_app_list_sources, 1292 chrome_tests_gypi_values.chrome_browser_tests_app_list_sources,
1382 ".", 1293 ".",
1383 "//chrome") 1294 "//chrome")
1384 if (is_mac) { 1295 if (is_mac) {
1385 # This assumes the AppList is views-based, but Mac only links 1296 # This assumes the AppList is views-based, but Mac only links
1386 # browser parts for the Cocoa implementation. 1297 # browser parts for the Cocoa implementation.
1387 sources -= 1298 sources -=
1388 [ "../browser/ui/app_list/app_list_service_views_browsertest.cc" ] 1299 [ "../browser/ui/app_list/app_list_service_views_browsertest.cc" ]
1389 } 1300 }
1390 } 1301 }
1391 if (enable_service_discovery) { 1302 if (enable_service_discovery) {
1392 sources += rebase_path( 1303 sources += rebase_path(
1393 chrome_tests_gypi_values.chrome_browser_tests_service_discovery_so urces, 1304 chrome_tests_gypi_values.chrome_browser_tests_service_discovery_so urces,
1394 ".", 1305 ".",
1395 "//chrome") 1306 "//chrome")
1396 } 1307 }
1397 if (enable_supervised_users) {
1398 sources += rebase_path(
1399 chrome_tests_gypi_values.chrome_browser_tests_supervised_user_sour ces,
1400 ".",
1401 "//chrome")
1402 }
1403 if (enable_pepper_cdms) { 1308 if (enable_pepper_cdms) {
1404 # Runtime dependencies. 1309 # Runtime dependencies.
1405 data_deps += [ 1310 data_deps += [
1406 "//media/cdm/ppapi:clearkeycdmadapter", 1311 "//media/cdm/ppapi:clearkeycdmadapter",
1407 "//third_party/widevine/cdm:widevinecdmadapter", 1312 "//third_party/widevine/cdm:widevinecdmadapter",
1408 ] 1313 ]
1409 } 1314 }
1410 if (!enable_print_preview) {
1411 sources -= [
1412 "../browser/extensions/api/cloud_print_private/cloud_print_private_apite st.cc",
1413 "../browser/printing/print_preview_dialog_controller_browsertest.cc",
1414 "../browser/printing/print_preview_pdf_generated_browsertest.cc",
1415 "../browser/service_process/service_process_control_browsertest.cc",
1416 "../browser/ui/webui/print_preview/print_preview_ui_browsertest.cc",
1417 "data/webui/print_preview.cc",
1418 "data/webui/print_preview.h",
1419 ]
1420 }
1421 if (!enable_print_preview || is_mac || is_chromeos) {
1422 sources -= [
1423 # This test depends on GetCommandLineForRelaunch, which is not
1424 # available on Mac. It is also not intended to run on ChromeOS.
1425 "../browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc" ,
1426 ]
1427 }
1428 if (!enable_print_preview || is_chromeos) {
1429 sources -= [
1430 # Not intended to run on ChromeOS.
1431 "../browser/printing/cloud_print/test/cloud_print_proxy_process_browsert est.cc",
1432 ]
1433 }
1434 if (enable_mdns) { 1315 if (enable_mdns) {
1435 sources += [ 1316 sources += [
1436 "../browser/extensions/api/gcd_private/gcd_private_apitest.cc", 1317 "../browser/extensions/api/gcd_private/gcd_private_apitest.cc",
1437 "../browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc", 1318 "../browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc",
1438 ] 1319 ]
1439 } 1320 }
1440 if (use_brlapi) { 1321 if (use_brlapi) {
1441 deps += [ "//build/linux/libbrlapi" ] 1322 deps += [ "//build/linux/libbrlapi" ]
1442 } else { 1323 } else {
1443 sources -= [ "../browser/extensions/api/braille_display_private/braille_di splay_private_apitest.cc" ] 1324 sources -= [ "../browser/extensions/api/braille_display_private/braille_di splay_private_apitest.cc" ]
1444 } 1325 }
1445 if (is_chrome_branded && safe_browsing_mode == 1 && !is_mac) { 1326 if (is_chrome_branded && safe_browsing_mode == 1 && !is_mac) {
1446 sources -= [ 1327 sources -= [
1447 # These tests depend on single process mode, which is disabled in 1328 # These tests depend on single process mode, which is disabled in
1448 # official builds. 1329 # official builds.
1449 "../renderer/safe_browsing/phishing_classifier_browsertest.cc", 1330 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
1450 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc", 1331 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1451 ] 1332 ]
1452 } 1333 }
1453 if (is_android || is_ios) {
1454 }
1455 if (enable_remoting) {
1456 sources += rebase_path(
1457 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
1458 ".",
1459 "//chrome")
1460 deps += [ "//remoting/webapp" ]
1461 }
1462 if (use_x11) { 1334 if (use_x11) {
1463 deps += [ "//tools/xdisplaycheck" ] 1335 deps += [ "//tools/xdisplaycheck" ]
1464 } 1336 }
1465
1466 if (use_aura) { 1337 if (use_aura) {
1467 sources += [ 1338 sources += [
1468 "base/mash_browser_tests_main.cc", 1339 "base/mash_browser_tests_main.cc",
1469 "base/mash_browser_tests_main.h", 1340 "base/mash_browser_tests_main.h",
1470 "base/mojo_test_connector.cc", 1341 "base/mojo_test_connector.cc",
1471 "base/mojo_test_connector.h", 1342 "base/mojo_test_connector.h",
1472 ] 1343 ]
1473 1344
1474 deps += [ 1345 deps += [
1475 "//services/shell/background:lib", 1346 "//services/shell/background:lib",
1476 "//services/shell/background/tests:test_support", 1347 "//services/shell/background/tests:test_support",
1477 ] 1348 ]
1478 1349
1479 data_deps += [ 1350 data_deps += [
1480 "//chrome/app:mojo_manifests", 1351 "//chrome/app:mojo_manifests",
1481 "//mash/session", 1352 "//mash/session",
1482 ] 1353 ]
1483 1354
1484 defines += [ "MOJO_SHELL_CLIENT" ] 1355 defines += [ "MOJO_SHELL_CLIENT" ]
1485 1356
1486 if (enable_wifi_display) { 1357 if (enable_wifi_display) {
1487 sources += rebase_path( 1358 sources += rebase_path(
1488 chrome_tests_gypi_values.chrome_browser_tests_display_source_api test, 1359 chrome_tests_gypi_values.chrome_browser_tests_display_source_api test,
1489 ".", 1360 ".",
1490 "//chrome") 1361 "//chrome")
1491 } 1362 }
1492 } 1363 }
1493 } 1364 }
1494 1365
1366 if (is_linux && !is_component_build) {
1367 # Set rpath to find the CDM adapter even in a non-component build.
1368 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
1369 }
1370
1371 if (is_chromeos) {
1372 sources += rebase_path(
1373 chrome_tests_gypi_values.chrome_browser_tests_chromeos_sources,
1374 ".",
1375 "//chrome")
1376 sources -= [
1377 "../../apps/load_and_launch_browsertest.cc",
1378 "../browser/policy/policy_startup_browsertest.cc",
1379
1380 # chromeos does not support profile list avatar menu
1381 "../browser/profiles/profile_list_desktop_browsertest.cc",
1382 "../browser/service_process/service_process_control_browsertest.cc",
1383
1384 # chromeos does not use cross-platform panels
1385 "../browser/ui/panels/panel_extension_browsertest.cc",
1386
1387 # inline login UI is disabled on chromeos
1388 "../browser/ui/webui/signin/inline_login_ui_browsertest.cc",
1389
1390 # chromeos does not use the desktop user manager
1391 "../browser/ui/webui/signin/user_manager_ui_browsertest.cc",
1392 ]
1393 deps += [
1394 "//chromeos/ime:gencode",
1395 "//components/arc:arc_test_support",
1396 "//components/user_manager:test_support",
1397 "//ui/login:resources",
1398 ]
1399
1400 if (use_dbus) {
1401 deps += [ "//dbus:test_support" ]
1402 }
1403 }
1404
1405 if (is_win) {
1406 deps += [
1407 "//chrome:other_version",
1408 "//third_party/wtl",
1409 "//ui/resources",
1410 ]
1411 }
1412
1413 if (is_mac) {
1414 # TODO(mark): We really want this for all non-static library
1415 # targets, but when we tried to pull it up to the common.gypi
1416 # level, it broke other things like the ui and startup tests. *shrug*
1417 ldflags = [ "-Wl,-ObjC" ]
1418
1419 # Other platforms only need
1420 # chrome_resources.gyp:{packed_extra_resources,packed_resources},
1421 # and can build this target standalone much faster.
1422 deps += [
1423 "//chrome",
1424 "//chrome/common:app_mode_app_support",
1425
1426 # TODO(GYP) Mac: GYP has this dependency. Uncommenting this line
1427 # generates duplicate symbols between
1428 # obj/components/crash/content/app/breakpad_stubs/crash_reporter_client. o
1429 # obj/components/crash/content/app/lib/crash_reporter_client.o
1430 # It's not clear how this is supposed to work. The intent seems to be
1431 # to not link breakpad in the tests. The dependency on .../app:lib
1432 # seems to come from //chrome/app:test_support. That reference maybe
1433 # should be a dependency on the stubs instead because it could be all
1434 # tests might want them. Or it could be that we need to make a new
1435 # "headers" target to make GN check happy, and then force each
1436 # executable to link the correct implementation. Somebody with a
1437 # higher-level understanding of Mac crash reporting needs to think
1438 # about this.
1439 # "//components/crash/content/app:breakpad_stubs",
1440 "//third_party/ocmock",
1441 ]
1442 sources +=
1443 rebase_path(chrome_tests_gypi_values.chrome_browser_tests_mac_sources,
1444 ".",
1445 "//chrome")
1446 sources -= [
1447 # TODO(groby): This test depends on hunspell and we cannot run it on
1448 # Mac, which does not use hunspell by default.
1449 "../browser/spellchecker/spellcheck_service_browsertest.cc",
1450
1451 # ProcessSingletonMac doesn"t do anything.
1452 "../browser/process_singleton_browsertest.cc",
1453 ]
1454
1455 if (safe_browsing_mode == 1) {
1456 sources -= [
1457 # single-process mode hangs on Mac sometimes because of multiple UI
1458 # message loops. See 306348
1459 "../renderer/safe_browsing/phishing_classifier_browsertest.cc",
1460 "../renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc",
1461 ]
1462 }
1463
1464 data_deps += [
1465 "//chrome",
1466 "//chrome:chrome_framework",
1467 ]
1468
1469 # TODO(rsesek): Remove once https://crbug.com/611414 is fixed.
1470 data += [
1471 "$root_out_dir/Chromium.app/",
1472 "$root_out_dir/Chromium Framework.framework/",
1473 "$root_out_dir/power_saver_test_plugin.plugin/",
1474 "$root_out_dir/ppapi_tests.plugin/",
1475 ]
1476
1477 # The browser window can be views or Cocoa on Mac. Test accordingly.
1478 if (mac_views_browser) {
1479 sources += rebase_path(
1480 chrome_tests_gypi_values.chrome_browser_tests_views_non_mac_source s,
1481 ".",
1482 "//chrome")
1483 } else {
1484 sources += rebase_path(
1485 chrome_tests_gypi_values.chrome_browser_tests_cocoa_sources,
1486 ".",
1487 "//chrome")
1488 }
1489 }
1490 if (is_mac || is_win) {
1491 sources += [
1492 "../browser/extensions/api/networking_private/networking_private_apitest.c c",
1493 "../browser/extensions/api/networking_private/networking_private_service_c lient_apitest.cc",
1494 "../browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc",
1495 "../browser/media_galleries/fileapi/picasa_data_provider_browsertest.cc",
1496 ]
1497 deps += [ "//components/wifi:test_support" ]
1498 }
1499 if (is_linux || is_win) {
1500 sources += rebase_path(
1501 chrome_tests_gypi_values.chrome_browser_tests_non_mac_desktop_source s,
1502 ".",
1503 "//chrome")
1504 }
1505 if (!is_posix || is_chromeos) {
1506 sources -= [ "../common/time_format_browsertest.cc" ]
1507 }
1508 if (is_chromeos) {
1509 sources += [
1510 "../browser/extensions/api/networking_private/networking_private_apitest.c c",
1511 "../browser/extensions/api/networking_private/networking_private_chromeos_ apitest.cc",
1512 ]
1513 }
1514 if (!is_android && !is_ios) {
1515 sources +=
1516 [ "../browser/copresence/chrome_whispernet_client_browsertest.cc" ]
1517 deps += [
1518 "//components/copresence",
1519 "//third_party/libaddressinput",
1520 ]
1521 }
1522 }
1523
1524 if (!is_android) {
1495 test("sync_integration_tests") { 1525 test("sync_integration_tests") {
1496 sources = 1526 sources =
1497 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources, 1527 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources,
1498 ".", 1528 ".",
1499 "//chrome") 1529 "//chrome")
1500 1530
1501 data = [ 1531 data = [
1502 "//chrome/test/data/sync/", 1532 "//chrome/test/data/sync/",
1503 "//net/tools/testserver/", 1533 "//net/tools/testserver/",
1504 "//sync/tools/testserver/", 1534 "//sync/tools/testserver/",
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 if (is_android) { 2483 if (is_android) {
2454 android_library("unit_tests_java") { 2484 android_library("unit_tests_java") {
2455 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ] 2485 java_files = [ "android/unit_tests_apk/src/org/chromium/chrome/unit_tests_ap k/ChromeNativeTestApplication.java" ]
2456 deps = [ 2486 deps = [
2457 "//base:base_java", 2487 "//base:base_java",
2458 "//chrome/android:chrome_java", 2488 "//chrome/android:chrome_java",
2459 "//content/public/android:content_java", 2489 "//content/public/android:content_java",
2460 ] 2490 ]
2461 } 2491 }
2462 } 2492 }
OLDNEW
« chrome/chrome_tests.gypi ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698