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

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

Issue 1258753002: Add yet more GN isolates ... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isolates_4_2
Patch Set: add missing display_unittests_run target Created 5 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
« no previous file with comments | « no previous file | components/nacl/BUILD.gn » ('j') | net/BUILD.gn » ('J')
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/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//chrome/chrome_tests.gni") 9 import("//chrome/chrome_tests.gni")
10 import("//chrome/test/base/js2gtest.gni") 10 import("//chrome/test/base/js2gtest.gni")
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 if (!is_android) { 215 if (!is_android) {
216 import("//third_party/protobuf/proto_library.gni") 216 import("//third_party/protobuf/proto_library.gni")
217 217
218 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto 218 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto
219 proto_library("test_proto") { 219 proto_library("test_proto") {
220 sources = [ 220 sources = [
221 "../common/safe_browsing/ipc_protobuf_message_test.proto", 221 "../common/safe_browsing/ipc_protobuf_message_test.proto",
222 ] 222 ]
223 } 223 }
224 224
225 # TODO(GYP): Delete this after we've converted everything to GN.
226 # The _run targets exist only for compatibility w/ GYP.
227 group("interactive_ui_tests_run") {
228 testonly = true
229 deps = [
230 ":interactive_ui_tests",
231 ]
232 }
233
225 test("interactive_ui_tests") { 234 test("interactive_ui_tests") {
226 sources = 235 sources =
227 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources, 236 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources,
228 ".", 237 ".",
229 "//chrome") 238 "//chrome")
230 239
240 data = [
241 "//net/data/ssl/certificates/",
242 "//net/tools/testserver/",
243 "//ppapi/tests/test_case.html",
244 "//ppapi/tests/test_case.html.mock-http-headers",
245 "//ppapi/tests/test_page.css",
246 "//ppapi/tests/test_page.css.mock-http-headers",
247 "//third_party/pyftpdlib/",
248 "//third_party/pywebsocket/",
249 "//third_party/tlslite/",
250 "//third_party/zlib/google/test/data/",
251 "//tools/metrics/histograms/histograms.xml",
252 "$root_out_dir/pyproto/google/",
253 "$root_out_dir/resources.pak",
254 "$root_out_dir/ui_test.pak",
255 ]
256 if (is_android || is_linux || is_win) {
257 data += [
258 "$root_out_dir/chrome_100_percent.pak",
259 "$root_out_dir/locales/en-US.pak",
260 ]
261 }
262 if (is_linux) {
263 data += [ "$root_out_dir/libppapi_tests.so" ]
264 }
265 if (is_linux || is_win) {
266 data += [
267 "$root_out_dir/chrome_100_percent.pak",
268 "$root_out_dir/locales/en-US.pak",
M-A Ruel 2015/07/26 00:51:24 Why can't you depend on the targets?
Dirk Pranke 2015/07/26 17:52:53 There's a bug in GN where if something is listed a
269 "$root_out_dir/locales/fr.pak",
270 ]
271 }
272
231 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 273 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
232 ldflags = [] 274 ldflags = []
233 275
234 deps = [ 276 deps = [
235 "//base/allocator", 277 "//base/allocator",
236 "//chrome/browser", 278 "//chrome/browser",
237 "//chrome/browser/devtools", 279 "//chrome/browser/devtools",
238 "//chrome/renderer", 280 "//chrome/renderer",
239 "//chrome/test:test_support", 281 "//chrome/test:test_support",
240 "//chrome:resources", 282 "//chrome:resources",
(...skipping 19 matching lines...) Expand all
260 "//ui/resources:ui_test_pak", 302 "//ui/resources:ui_test_pak",
261 "//ui/web_dialogs:test_support", 303 "//ui/web_dialogs:test_support",
262 ] 304 ]
263 305
264 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target 306 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target
265 # should be deleted and this line removed. See the 307 # should be deleted and this line removed. See the
266 # chrome_extensions_interactive_uitests target for more. 308 # chrome_extensions_interactive_uitests target for more.
267 deps += [ "//extensions:chrome_extensions_interactive_uitests" ] 309 deps += [ "//extensions:chrome_extensions_interactive_uitests" ]
268 310
269 # Runtime dependencies 311 # Runtime dependencies
270 datadeps = [ 312 data_deps = [
M-A Ruel 2015/07/26 00:51:24 So typos get undetected? :/
Dirk Pranke 2015/07/26 17:52:53 Both variables are currently supported by GN; data
271 "//ppapi:ppapi_tests", 313 "//ppapi:ppapi_tests",
272 "//third_party/mesa:osmesa", 314 "//third_party/mesa:osmesa",
273 ] 315 ]
274 316
275 if (toolkit_views) { 317 if (toolkit_views) {
276 sources += rebase_path( 318 sources += rebase_path(
277 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources, 319 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources,
278 ".", 320 ".",
279 "//chrome") 321 "//chrome")
280 deps += [ 322 deps += [
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 446 }
405 447
406 if (cld_version == 0 || cld_version == 2) { 448 if (cld_version == 0 || cld_version == 2) {
407 # Interactive tests should use whatever CLD2 data access mode that the 449 # Interactive tests should use whatever CLD2 data access mode that the
408 # application embedder is using. 450 # application embedder is using.
409 deps += [ "//third_party/cld_2:cld2_platform_impl" ] 451 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
410 } 452 }
411 453
412 if (use_x11) { 454 if (use_x11) {
413 configs += [ "//build/config/linux:xtst" ] 455 configs += [ "//build/config/linux:xtst" ]
414 datadeps += [ "//tools/xdisplaycheck" ] 456 data_deps += [ "//tools/xdisplaycheck" ]
415 } 457 }
416 458
417 if (enable_app_list) { 459 if (enable_app_list) {
418 sources += rebase_path( 460 sources += rebase_path(
419 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es, 461 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es,
420 ".", 462 ".",
421 "//chrome") 463 "//chrome")
422 } 464 }
423 465
424 if (use_ash) { 466 if (use_ash) {
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources, 1008 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
967 ".", 1009 ".",
968 "//chrome") 1010 "//chrome")
969 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP) 1011 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP)
970 } 1012 }
971 if (use_x11) { 1013 if (use_x11) {
972 deps += [ "//tools/xdisplaycheck" ] 1014 deps += [ "//tools/xdisplaycheck" ]
973 } 1015 }
974 } 1016 }
975 1017
1018 # TODO(GYP): Delete this after we've converted everything to GN.
1019 # The _run targets exist only for compatibility w/ GYP.
1020 group("sync_integration_tests_run") {
1021 testonly = true
1022 deps = [
1023 ":sync_integration_tests",
1024 ]
1025 }
1026
976 test("sync_integration_tests") { 1027 test("sync_integration_tests") {
977 sources = 1028 sources =
978 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources, 1029 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources,
979 ".", 1030 ".",
980 "//chrome") 1031 "//chrome")
981 1032
1033 data = [
1034 "//chrome/test/data/sync/",
1035 "//net/tools/testserver/",
1036 "//sync/tools/testserver/",
1037 "//third_party/pyftpdlib/",
1038 "//third_party/pywebsocket/",
1039 "//third_party/tlslite/",
1040 "$root_out_dir/pyproto/",
1041 "$root_out_dir/resources.pak",
1042 ]
1043
1044 if (is_linux || is_win) {
1045 data += [
1046 "$root_out_dir/chrome_100_percent.pak",
1047 "$root_out_dir/locales/en-US.pak",
1048 ]
1049 }
1050
982 # TODO(phajdan.jr): Only temporary, to make transition easier. 1051 # TODO(phajdan.jr): Only temporary, to make transition easier.
983 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1052 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
984 1053
985 deps = [ 1054 deps = [
986 ":sync_integration_test_support", 1055 ":sync_integration_test_support",
987 ":test_support", 1056 ":test_support",
988 "//base/allocator", 1057 "//base/allocator",
989 "//chrome:packed_extra_resources", 1058 "//chrome:packed_extra_resources",
990 "//chrome:packed_resources", 1059 "//chrome:packed_resources",
991 "//chrome:resources", 1060 "//chrome:resources",
992 "//chrome:strings", 1061 "//chrome:strings",
993 "//chrome/common", 1062 "//chrome/common",
994 "//chrome/renderer", 1063 "//chrome/renderer",
995 "//crypto:platform", 1064 "//crypto:platform",
996 "//sync", 1065 "//sync",
997 "//testing/gmock", 1066 "//testing/gmock",
998 "//testing/gtest", 1067 "//testing/gtest",
999 "//third_party/icu", 1068 "//third_party/icu",
1000 "//third_party/leveldatabase", 1069 "//third_party/leveldatabase",
1001 "//third_party/WebKit/public:blink", 1070 "//third_party/WebKit/public:blink",
1002 ] 1071 ]
1003 1072
1073 data_deps = [ "//third_party/mesa:osmesa" ]
1074
1004 if (cld_version == 0 || cld_version == 2) { 1075 if (cld_version == 0 || cld_version == 2) {
1005 # Language detection is irrelevant to sync, so it can depend on any 1076 # Language detection is irrelevant to sync, so it can depend on any
1006 # implementation for CLD2. Dynamic is smaller, so go with dynamic. 1077 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1007 deps += [ "//third_party/cld_2:cld2_dynamic" ] 1078 deps += [ "//third_party/cld_2:cld2_dynamic" ]
1008 } 1079 }
1009 if (is_mac) { 1080 if (is_mac) {
1010 # Dictionary sync is disabled on Mac. 1081 # Dictionary sync is disabled on Mac.
1011 sources -= [ 1082 sources -= [
1012 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c", 1083 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c",
1013 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , 1084 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" ,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources, 1212 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources,
1142 ".", 1213 ".",
1143 "//chrome") 1214 "//chrome")
1144 extra_js_files += rebase_path( 1215 extra_js_files += rebase_path(
1145 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s, 1216 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s,
1146 ".", 1217 ".",
1147 "//chrome") 1218 "//chrome")
1148 } 1219 }
1149 } 1220 }
1150 1221
1222 # TODO(GYP): Delete this after we've converted everything to GN.
1223 # The _run targets exist only for compatibility w/ GYP.
1224 group("unit_tests_run") {
1225 testonly = true
1226 deps = [
1227 ":unit_tests",
1228 ]
1229 }
1230
1151 test("unit_tests") { 1231 test("unit_tests") {
1152 sources = 1232 sources =
1153 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources, 1233 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources,
1154 ".", 1234 ".",
1155 "//chrome") 1235 "//chrome")
1156 1236
1237 data = [
1238 "data/",
1239 "//base/test/data/",
1240 "//chrome/third_party/mock4js/",
1241 "//components/test/data/",
1242 "//extensions/test/data/",
1243 "//google_apis/test/data/",
1244 "//net/data/",
1245 "//net/tools/testserver/",
1246 "//third_party/accessibility-audit/axs_testing.js",
1247 "//third_party/hunspell_dictionaries/",
1248 "//third_party/pyftpdlib/",
1249 "//third_party/pywebsocket/",
1250 "//third_party/tlslite/",
1251 "//third_party/zlib/google/test/data/",
1252 "//tools/metrics/histograms/histograms.xml",
1253 "$root_out_dir/pyproto/google/",
1254 "$root_out_dir/test_data/chrome/browser/resources/google_now/",
1255 "$root_out_dir/test_data/chrome/browser/resources/print_preview/",
1256 "$root_out_dir/test_data/chrome/renderer/resources/extensions/",
1257 "$root_out_dir/test_data/ui/webui/",
1258 "$root_out_dir/resources.pak",
1259 ]
1260 if (is_android || is_linux || is_win) {
1261 data += [
1262 "$root_out_dir/chrome_100_percent.pak",
1263 "$root_out_dir/locales/en-US.pak",
1264 ]
1265 }
1266
1157 defines = [] 1267 defines = []
1158 1268
1159 deps = [ 1269 deps = [
1160 # NOTE: New depndencies should generally be added in the OS!="ios" 1270 # NOTE: New depndencies should generally be added in the OS!="ios"
1161 # dependencies block below, rather than here. 1271 # dependencies block below, rather than here.
1162 # Unit tests should only depend on: 1272 # Unit tests should only depend on:
1163 # 1) everything that the chrome binaries depend on: 1273 # 1) everything that the chrome binaries depend on:
1164 "//chrome:browser_dependencies", 1274 "//chrome:browser_dependencies",
1165 "//chrome:child_dependencies", 1275 "//chrome:child_dependencies",
1166 1276
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 "//third_party/mojo/src/mojo/edk/system", 1881 "//third_party/mojo/src/mojo/edk/system",
1772 ] 1882 ]
1773 1883
1774 if (!is_android && use_ash) { 1884 if (!is_android && use_ash) {
1775 sources += rebase_path( 1885 sources += rebase_path(
1776 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, 1886 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources,
1777 ".", 1887 ".",
1778 "//chrome") 1888 "//chrome")
1779 } 1889 }
1780 } 1890 }
OLDNEW
« no previous file with comments | « no previous file | components/nacl/BUILD.gn » ('j') | net/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698