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

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: fix net_unittests conditional on android, fix wow_helper dependency on win Created 5 years, 4 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') | 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/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 if (!is_android) { 217 if (!is_android) {
218 import("//third_party/protobuf/proto_library.gni") 218 import("//third_party/protobuf/proto_library.gni")
219 219
220 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto 220 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto
221 proto_library("test_proto") { 221 proto_library("test_proto") {
222 sources = [ 222 sources = [
223 "../common/safe_browsing/ipc_protobuf_message_test.proto", 223 "../common/safe_browsing/ipc_protobuf_message_test.proto",
224 ] 224 ]
225 } 225 }
226 226
227 # TODO(GYP): Delete this after we've converted everything to GN.
228 # The _run targets exist only for compatibility w/ GYP.
229 group("interactive_ui_tests_run") {
230 testonly = true
231 deps = [
232 ":interactive_ui_tests",
233 ]
234 }
235
227 test("interactive_ui_tests") { 236 test("interactive_ui_tests") {
228 sources = 237 sources =
229 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources, 238 rebase_path(chrome_tests_gypi_values.chrome_interactive_ui_test_sources,
230 ".", 239 ".",
231 "//chrome") 240 "//chrome")
232 241
233 configs += [ "//build/config:precompiled_headers" ] 242 configs += [ "//build/config:precompiled_headers" ]
243
244 data = [
245 "//net/data/ssl/certificates/",
246 "//net/tools/testserver/",
247 "//ppapi/tests/test_case.html",
248 "//ppapi/tests/test_case.html.mock-http-headers",
249 "//ppapi/tests/test_page.css",
250 "//ppapi/tests/test_page.css.mock-http-headers",
251 "//third_party/pyftpdlib/",
252 "//third_party/pywebsocket/",
253 "//third_party/tlslite/",
254 "//third_party/zlib/google/test/data/",
255 "//tools/metrics/histograms/histograms.xml",
256 "$root_out_dir/pyproto/google/",
257 "$root_out_dir/resources.pak",
258 "$root_out_dir/ui_test.pak",
259 ]
260 if (is_android || is_linux || is_win) {
261 data += [
262 "$root_out_dir/chrome_100_percent.pak",
263 "$root_out_dir/locales/en-US.pak",
264 ]
265 }
266 if (is_linux) {
267 data += [ "$root_out_dir/libppapi_tests.so" ]
268 }
269 if (is_linux || is_win) {
270 data += [
271 "$root_out_dir/chrome_100_percent.pak",
272 "$root_out_dir/locales/en-US.pak",
273 "$root_out_dir/locales/fr.pak",
274 ]
275 }
276
234 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 277 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
235 ldflags = [] 278 ldflags = []
236 279
237 deps = [ 280 deps = [
238 "//base/allocator", 281 "//base/allocator",
239 "//chrome/browser", 282 "//chrome/browser",
240 "//chrome/browser/devtools", 283 "//chrome/browser/devtools",
241 "//chrome/renderer", 284 "//chrome/renderer",
242 "//chrome/test:test_support", 285 "//chrome/test:test_support",
243 "//chrome:resources", 286 "//chrome:resources",
(...skipping 19 matching lines...) Expand all
263 "//ui/resources:ui_test_pak", 306 "//ui/resources:ui_test_pak",
264 "//ui/web_dialogs:test_support", 307 "//ui/web_dialogs:test_support",
265 ] 308 ]
266 309
267 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target 310 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target
268 # should be deleted and this line removed. See the 311 # should be deleted and this line removed. See the
269 # chrome_extensions_interactive_uitests target for more. 312 # chrome_extensions_interactive_uitests target for more.
270 deps += [ "//extensions:chrome_extensions_interactive_uitests" ] 313 deps += [ "//extensions:chrome_extensions_interactive_uitests" ]
271 314
272 # Runtime dependencies 315 # Runtime dependencies
273 datadeps = [ 316 data_deps = [
274 "//ppapi:ppapi_tests", 317 "//ppapi:ppapi_tests",
275 "//third_party/mesa:osmesa", 318 "//third_party/mesa:osmesa",
276 ] 319 ]
277 320
278 if (toolkit_views) { 321 if (toolkit_views) {
279 sources += rebase_path( 322 sources += rebase_path(
280 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources, 323 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources,
281 ".", 324 ".",
282 "//chrome") 325 "//chrome")
283 deps += [ 326 deps += [
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 ] 434 ]
392 435
393 configs -= [ "//build/config/win:default_incremental_linking" ] 436 configs -= [ "//build/config/win:default_incremental_linking" ]
394 configs += 437 configs +=
395 [ "//build/config/win:default_large_module_incremental_linking" ] 438 [ "//build/config/win:default_large_module_incremental_linking" ]
396 439
397 libs = [ "oleacc.lib" ] 440 libs = [ "oleacc.lib" ]
398 } 441 }
399 442
400 if (is_mac) { 443 if (is_mac) {
401 datadeps += [ "//chrome" ] 444 data_deps += [ "//chrome" ]
402 445
403 # TODO(mark): We really want this for all non-static library targets, but 446 # TODO(mark): We really want this for all non-static library targets, but
404 # when we tried to pull it up to the common.gypi level, it broke other 447 # when we tried to pull it up to the common.gypi level, it broke other
405 # things like the ui and startup tests. *shrug* 448 # things like the ui and startup tests. *shrug*
406 ldflags += [ "-Wl,-ObjC" ] 449 ldflags += [ "-Wl,-ObjC" ]
407 } 450 }
408 451
409 if (cld_version == 0 || cld_version == 2) { 452 if (cld_version == 0 || cld_version == 2) {
410 # Interactive tests should use whatever CLD2 data access mode that the 453 # Interactive tests should use whatever CLD2 data access mode that the
411 # application embedder is using. 454 # application embedder is using.
412 deps += [ "//third_party/cld_2:cld2_platform_impl" ] 455 deps += [ "//third_party/cld_2:cld2_platform_impl" ]
413 } 456 }
414 457
415 if (use_x11) { 458 if (use_x11) {
416 configs += [ "//build/config/linux:xtst" ] 459 configs += [ "//build/config/linux:xtst" ]
417 datadeps += [ "//tools/xdisplaycheck" ] 460 data_deps += [ "//tools/xdisplaycheck" ]
418 } 461 }
419 462
420 if (enable_app_list) { 463 if (enable_app_list) {
421 sources += rebase_path( 464 sources += rebase_path(
422 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es, 465 chrome_tests_gypi_values.chrome_interactive_ui_test_app_list_sourc es,
423 ".", 466 ".",
424 "//chrome") 467 "//chrome")
425 } 468 }
426 469
427 if (use_ash) { 470 if (use_ash) {
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources, 1013 chrome_tests_gypi_values.chrome_browser_tests_remoting_sources,
971 ".", 1014 ".",
972 "//chrome") 1015 "//chrome")
973 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP) 1016 #deps += [ "//remoting:remoting_webapp" ] TODO(GYP)
974 } 1017 }
975 if (use_x11) { 1018 if (use_x11) {
976 deps += [ "//tools/xdisplaycheck" ] 1019 deps += [ "//tools/xdisplaycheck" ]
977 } 1020 }
978 } 1021 }
979 1022
1023 # TODO(GYP): Delete this after we've converted everything to GN.
1024 # The _run targets exist only for compatibility w/ GYP.
1025 group("sync_integration_tests_run") {
1026 testonly = true
1027 deps = [
1028 ":sync_integration_tests",
1029 ]
1030 }
1031
980 test("sync_integration_tests") { 1032 test("sync_integration_tests") {
981 sources = 1033 sources =
982 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources, 1034 rebase_path(chrome_tests_gypi_values.sync_integration_tests_sources,
983 ".", 1035 ".",
984 "//chrome") 1036 "//chrome")
985 1037
1038 data = [
1039 "//chrome/test/data/sync/",
1040 "//net/tools/testserver/",
1041 "//sync/tools/testserver/",
1042 "//third_party/pyftpdlib/",
1043 "//third_party/pywebsocket/",
1044 "//third_party/tlslite/",
1045 "$root_out_dir/pyproto/",
1046 "$root_out_dir/resources.pak",
1047 ]
1048
1049 if (is_linux || is_win) {
1050 data += [
1051 "$root_out_dir/chrome_100_percent.pak",
1052 "$root_out_dir/locales/en-US.pak",
1053 ]
1054 }
1055
986 # TODO(phajdan.jr): Only temporary, to make transition easier. 1056 # TODO(phajdan.jr): Only temporary, to make transition easier.
987 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 1057 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
988 1058
989 deps = [ 1059 deps = [
990 ":sync_integration_test_support", 1060 ":sync_integration_test_support",
991 ":test_support", 1061 ":test_support",
992 "//base/allocator", 1062 "//base/allocator",
993 "//chrome:packed_extra_resources", 1063 "//chrome:packed_extra_resources",
994 "//chrome:packed_resources", 1064 "//chrome:packed_resources",
995 "//chrome:resources", 1065 "//chrome:resources",
996 "//chrome:strings", 1066 "//chrome:strings",
997 "//chrome/common", 1067 "//chrome/common",
998 "//chrome/renderer", 1068 "//chrome/renderer",
999 "//crypto:platform", 1069 "//crypto:platform",
1000 "//sync", 1070 "//sync",
1001 "//testing/gmock", 1071 "//testing/gmock",
1002 "//testing/gtest", 1072 "//testing/gtest",
1003 "//third_party/icu", 1073 "//third_party/icu",
1004 "//third_party/leveldatabase", 1074 "//third_party/leveldatabase",
1005 "//third_party/WebKit/public:blink", 1075 "//third_party/WebKit/public:blink",
1006 ] 1076 ]
1007 1077
1078 data_deps = [ "//third_party/mesa:osmesa" ]
1079
1008 if (cld_version == 0 || cld_version == 2) { 1080 if (cld_version == 0 || cld_version == 2) {
1009 # Language detection is irrelevant to sync, so it can depend on any 1081 # Language detection is irrelevant to sync, so it can depend on any
1010 # implementation for CLD2. Dynamic is smaller, so go with dynamic. 1082 # implementation for CLD2. Dynamic is smaller, so go with dynamic.
1011 deps += [ "//third_party/cld_2:cld2_dynamic" ] 1083 deps += [ "//third_party/cld_2:cld2_dynamic" ]
1012 } 1084 }
1013 if (is_mac) { 1085 if (is_mac) {
1014 # Dictionary sync is disabled on Mac. 1086 # Dictionary sync is disabled on Mac.
1015 sources -= [ 1087 sources -= [
1016 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c", 1088 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c",
1017 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , 1089 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" ,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources, 1217 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s ources,
1146 ".", 1218 ".",
1147 "//chrome") 1219 "//chrome")
1148 extra_js_files += rebase_path( 1220 extra_js_files += rebase_path(
1149 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s, 1221 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source s,
1150 ".", 1222 ".",
1151 "//chrome") 1223 "//chrome")
1152 } 1224 }
1153 } 1225 }
1154 1226
1227 # TODO(GYP): Delete this after we've converted everything to GN.
1228 # The _run targets exist only for compatibility w/ GYP.
1229 group("unit_tests_run") {
1230 testonly = true
1231 deps = [
1232 ":unit_tests",
1233 ]
1234 }
1235
1155 test("unit_tests") { 1236 test("unit_tests") {
1156 sources = 1237 sources =
1157 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources, 1238 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources,
1158 ".", 1239 ".",
1159 "//chrome") 1240 "//chrome")
1160 1241
1161 configs += [ "//build/config:precompiled_headers" ] 1242 configs += [ "//build/config:precompiled_headers" ]
1243
1244 data = [
1245 "data/",
1246 "//base/test/data/",
1247 "//chrome/third_party/mock4js/",
1248 "//components/test/data/",
1249 "//extensions/test/data/",
1250 "//google_apis/test/data/",
1251 "//net/data/",
1252 "//net/tools/testserver/",
1253 "//third_party/accessibility-audit/axs_testing.js",
1254 "//third_party/hunspell_dictionaries/",
1255 "//third_party/pyftpdlib/",
1256 "//third_party/pywebsocket/",
1257 "//third_party/tlslite/",
1258 "//third_party/zlib/google/test/data/",
1259 "//tools/metrics/histograms/histograms.xml",
1260 "$root_out_dir/pyproto/google/",
1261 "$root_out_dir/test_data/chrome/browser/resources/google_now/",
1262 "$root_out_dir/test_data/chrome/browser/resources/print_preview/",
1263 "$root_out_dir/test_data/chrome/renderer/resources/extensions/",
1264 "$root_out_dir/test_data/ui/webui/",
1265 "$root_out_dir/resources.pak",
1266 ]
1267 if (is_android || is_linux || is_win) {
1268 data += [
1269 "$root_out_dir/chrome_100_percent.pak",
1270 "$root_out_dir/locales/en-US.pak",
1271 ]
1272 }
1273
1162 defines = [] 1274 defines = []
1163 1275
1164 deps = [ 1276 deps = [
1165 # NOTE: New depndencies should generally be added in the OS!="ios" 1277 # NOTE: New depndencies should generally be added in the OS!="ios"
1166 # dependencies block below, rather than here. 1278 # dependencies block below, rather than here.
1167 # Unit tests should only depend on: 1279 # Unit tests should only depend on:
1168 # 1) everything that the chrome binaries depend on: 1280 # 1) everything that the chrome binaries depend on:
1169 "//chrome:browser_dependencies", 1281 "//chrome:browser_dependencies",
1170 "//chrome:child_dependencies", 1282 "//chrome:child_dependencies",
1171 1283
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 "//third_party/mojo/src/mojo/edk/system", 1888 "//third_party/mojo/src/mojo/edk/system",
1777 ] 1889 ]
1778 1890
1779 if (!is_android && use_ash) { 1891 if (!is_android && use_ash) {
1780 sources += rebase_path( 1892 sources += rebase_path(
1781 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, 1893 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources,
1782 ".", 1894 ".",
1783 "//chrome") 1895 "//chrome")
1784 } 1896 }
1785 } 1897 }
OLDNEW
« no previous file with comments | « no previous file | components/nacl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698