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/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/test/base/js2gtest.gni") | 10 import("//chrome/test/base/js2gtest.gni") |
10 import("//testing/test.gni") | 11 import("//testing/test.gni") |
11 | 12 |
12 # This target exists to reference other test executables to bring these files | 13 # This target exists to reference other test executables to bring these files |
13 # into the build. | 14 # into the build. |
14 group("test") { | 15 group("test") { |
15 testonly = true | 16 testonly = true |
16 } | 17 } |
17 | 18 |
18 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common | 19 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 198 |
198 if (enable_extensions) { | 199 if (enable_extensions) { |
199 deps += [ | 200 deps += [ |
200 "//chrome/common/extensions/api", | 201 "//chrome/common/extensions/api", |
201 "//extensions:test_support", | 202 "//extensions:test_support", |
202 ] | 203 ] |
203 } | 204 } |
204 } | 205 } |
205 | 206 |
206 if (!is_android) { | 207 if (!is_android) { |
207 import("//chrome/chrome_tests.gni") | |
208 import("//third_party/protobuf/proto_library.gni") | 208 import("//third_party/protobuf/proto_library.gni") |
209 | 209 |
210 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto | 210 # GYP version: chrome/chrome_tests_unit.gypi:ipc_protobuf_message_test_proto |
211 proto_library("test_proto") { | 211 proto_library("test_proto") { |
212 sources = [ | 212 sources = [ |
213 "../common/safe_browsing/ipc_protobuf_message_test.proto", | 213 "../common/safe_browsing/ipc_protobuf_message_test.proto", |
214 ] | 214 ] |
215 } | 215 } |
216 | 216 |
217 test("interactive_ui_tests") { | 217 test("interactive_ui_tests") { |
(...skipping 28 matching lines...) Expand all Loading... |
246 "//testing/gtest", | 246 "//testing/gtest", |
247 "//third_party/hunspell", | 247 "//third_party/hunspell", |
248 "//third_party/icu", | 248 "//third_party/icu", |
249 "//third_party/libpng", | 249 "//third_party/libpng", |
250 "//third_party/zlib", | 250 "//third_party/zlib", |
251 "//ui/base:test_support", | 251 "//ui/base:test_support", |
252 "//ui/resources:ui_test_pak", | 252 "//ui/resources:ui_test_pak", |
253 "//ui/web_dialogs:test_support", | 253 "//ui/web_dialogs:test_support", |
254 ] | 254 ] |
255 | 255 |
| 256 # TODO(rockot) bug 505926: The chrome_extensions_interactive_uitests target |
| 257 # should be deleted and this line removed. See the |
| 258 # chrome_extensions_interactive_uitests target for more. |
| 259 deps += [ "//extensions:chrome_extensions_interactive_uitests" ] |
| 260 |
256 # Runtime dependencies | 261 # Runtime dependencies |
257 datadeps = [ | 262 datadeps = [ |
258 "//ppapi:ppapi_tests", | 263 "//ppapi:ppapi_tests", |
259 "//third_party/mesa:osmesa", | 264 "//third_party/mesa:osmesa", |
260 ] | 265 ] |
261 | 266 |
262 if (toolkit_views) { | 267 if (toolkit_views) { |
263 sources += rebase_path( | 268 sources += rebase_path( |
264 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources, | 269 chrome_tests_gypi_values.chrome_interactive_ui_test_views_sources, |
265 ".", | 270 ".", |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 "//third_party/webrtc/modules/desktop_capture", | 594 "//third_party/webrtc/modules/desktop_capture", |
590 "//third_party/widevine/cdm:version_h", | 595 "//third_party/widevine/cdm:version_h", |
591 "//ui/accessibility:test_support", | 596 "//ui/accessibility:test_support", |
592 "//ui/base:test_support", | 597 "//ui/base:test_support", |
593 "//ui/compositor:test_support", | 598 "//ui/compositor:test_support", |
594 "//ui/resources", | 599 "//ui/resources", |
595 "//ui/web_dialogs:test_support", | 600 "//ui/web_dialogs:test_support", |
596 "//v8", | 601 "//v8", |
597 ] | 602 ] |
598 | 603 |
| 604 # TODO(rockot) bug 505926: The chrome_extensions_browsertests target should |
| 605 # be deleted and this line removed. See the chrome_extensions_browsertests |
| 606 # target for more. |
| 607 deps += [ "//extensions:chrome_extensions_browsertests" ] |
| 608 |
599 # Runtime dependencies | 609 # Runtime dependencies |
600 data_deps = [ | 610 data_deps = [ |
601 "//ppapi:ppapi_tests", | 611 "//ppapi:ppapi_tests", |
602 | 612 |
603 #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP) | 613 #'../remoting/remoting.gyp:remoting_browser_test_resources', TODO(GYP) |
604 #'../remoting/remoting.gyp:remoting_webapp_unittests', TODO(GYP) | 614 #'../remoting/remoting.gyp:remoting_webapp_unittests', TODO(GYP) |
605 "//third_party/mesa:osmesa", | 615 "//third_party/mesa:osmesa", |
606 "//third_party/widevine/cdm:widevine_test_license_server", | 616 "//third_party/widevine/cdm:widevine_test_license_server", |
607 ] | 617 ] |
608 | 618 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 ] | 1110 ] |
1101 | 1111 |
1102 if (enable_pepper_cdms) { | 1112 if (enable_pepper_cdms) { |
1103 data_deps = [ | 1113 data_deps = [ |
1104 "//media/cdm/ppapi:clearkeycdmadapter", | 1114 "//media/cdm/ppapi:clearkeycdmadapter", |
1105 "//third_party/widevine/cdm:widevinecdmadapter", | 1115 "//third_party/widevine/cdm:widevinecdmadapter", |
1106 ] | 1116 ] |
1107 } | 1117 } |
1108 } | 1118 } |
1109 | 1119 |
1110 unit_gypi_values = exec_script("//build/gypi_to_gn.py", | |
1111 [ rebase_path("../chrome_tests_unit.gypi") ], | |
1112 "scope", | |
1113 [ "../chrome_tests_unit.gypi" ]) | |
1114 | |
1115 js2gtest("unit_tests_js") { | 1120 js2gtest("unit_tests_js") { |
1116 test_type = "unit" | 1121 test_type = "unit" |
1117 sources = rebase_path(unit_gypi_values.chrome_unit_tests_gtestjs_sources, | 1122 sources = rebase_path( |
1118 ".", | 1123 chrome_tests_unit_gypi_values.chrome_unit_tests_gtestjs_sources, |
1119 "//chrome") | 1124 ".", |
1120 extra_js_files = rebase_path(unit_gypi_values.chrome_unit_tests_js_sources, | 1125 "//chrome") |
1121 ".", | 1126 extra_js_files = |
1122 "//chrome") | 1127 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_js_sources, |
| 1128 ".", |
| 1129 "//chrome") |
1123 if (is_chromeos) { | 1130 if (is_chromeos) { |
1124 sources += rebase_path( | 1131 sources += rebase_path( |
1125 unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_sources, | 1132 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_gtestjs_s
ources, |
1126 ".", | 1133 ".", |
1127 "//chrome") | 1134 "//chrome") |
1128 extra_js_files += | 1135 extra_js_files += rebase_path( |
1129 rebase_path(unit_gypi_values.chrome_unit_tests_chromeos_js_sources, | 1136 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_js_source
s, |
1130 ".", | 1137 ".", |
1131 "//chrome") | 1138 "//chrome") |
1132 } | 1139 } |
1133 } | 1140 } |
1134 | 1141 |
1135 test("unit_tests") { | 1142 test("unit_tests") { |
1136 sources = | 1143 sources = |
1137 rebase_path(unit_gypi_values.chrome_unit_tests_sources, ".", "//chrome") | 1144 rebase_path(chrome_tests_unit_gypi_values.chrome_unit_tests_sources, |
| 1145 ".", |
| 1146 "//chrome") |
1138 | 1147 |
1139 defines = [] | 1148 defines = [] |
1140 | 1149 |
1141 deps = [ | 1150 deps = [ |
1142 # NOTE: New depndencies should generally be added in the OS!="ios" | 1151 # NOTE: New depndencies should generally be added in the OS!="ios" |
1143 # dependencies block below, rather than here. | 1152 # dependencies block below, rather than here. |
1144 # Unit tests should only depend on: | 1153 # Unit tests should only depend on: |
1145 # 1) everything that the chrome binaries depend on: | 1154 # 1) everything that the chrome binaries depend on: |
1146 "//chrome:browser_dependencies", | 1155 "//chrome:browser_dependencies", |
1147 "//chrome:child_dependencies", | 1156 "//chrome:child_dependencies", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 | 1223 |
1215 if (is_android) { | 1224 if (is_android) { |
1216 deps -= [ "//third_party/libaddressinput" ] | 1225 deps -= [ "//third_party/libaddressinput" ] |
1217 | 1226 |
1218 # Some android targets still depend on --gc-sections to link. | 1227 # Some android targets still depend on --gc-sections to link. |
1219 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). | 1228 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). |
1220 ldflags = [ "-Wl,--gc-sections" ] | 1229 ldflags = [ "-Wl,--gc-sections" ] |
1221 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1230 deps += [ "//testing/android/native_test:native_test_native_code" ] |
1222 isolate_file = "../unit_tests.isolate" | 1231 isolate_file = "../unit_tests.isolate" |
1223 } else { | 1232 } else { |
1224 sources += | 1233 sources += rebase_path( |
1225 rebase_path(unit_gypi_values.chrome_unit_tests_non_android_sources, | 1234 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_source
s, |
1226 ".", | 1235 ".", |
1227 "//chrome") | 1236 "//chrome") |
1228 } | 1237 } |
1229 if (is_ios || is_chromeos) { | 1238 if (is_ios || is_chromeos) { |
1230 sources -= | 1239 sources -= |
1231 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ] | 1240 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ] |
1232 } | 1241 } |
1233 if (enable_background) { | 1242 if (enable_background) { |
1234 sources += | 1243 sources += rebase_path( |
1235 rebase_path(unit_gypi_values.chrome_unit_tests_background_sources, | 1244 chrome_tests_unit_gypi_values.chrome_unit_tests_background_sources
, |
1236 ".", | 1245 ".", |
1237 "//chrome") | 1246 "//chrome") |
1238 } | 1247 } |
1239 if (enable_spellcheck) { | 1248 if (enable_spellcheck) { |
1240 sources += | 1249 sources += rebase_path( |
1241 rebase_path(unit_gypi_values.chrome_unit_tests_spellchecker_sources, | 1250 chrome_tests_unit_gypi_values.chrome_unit_tests_spellchecker_sourc
es, |
1242 ".", | 1251 ".", |
1243 "//chrome") | 1252 "//chrome") |
1244 if (is_mac && !is_ios) { | 1253 if (is_mac && !is_ios) { |
1245 deps += [ "//third_party/hunspell" ] | 1254 deps += [ "//third_party/hunspell" ] |
1246 } | 1255 } |
1247 } | 1256 } |
1248 | 1257 |
1249 if (enable_one_click_signin) { | 1258 if (enable_one_click_signin) { |
1250 sources += [ | 1259 sources += [ |
1251 "../browser/ui/sync/one_click_signin_sync_observer_unittest.cc", | 1260 "../browser/ui/sync/one_click_signin_sync_observer_unittest.cc", |
1252 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc", | 1261 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc", |
1253 ] | 1262 ] |
1254 } | 1263 } |
1255 | 1264 |
1256 if (enable_extensions) { | 1265 if (enable_extensions) { |
1257 sources += | 1266 sources += rebase_path( |
1258 rebase_path(unit_gypi_values.chrome_unit_tests_extensions_sources, | 1267 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_sources
, |
1259 ".", | 1268 ".", |
1260 "//chrome") | 1269 "//chrome") |
1261 deps += [ | 1270 deps += [ |
1262 "//chrome/common/extensions/api", | 1271 "//chrome/common/extensions/api", |
1263 "//device/usb:mocks", | 1272 "//device/usb:mocks", |
1264 "//extensions:extensions_resources", | 1273 "//extensions:extensions_resources", |
1265 "//extensions/strings", | 1274 "//extensions/strings", |
1266 ] | 1275 ] |
1267 if (enable_configuration_policy) { | 1276 if (enable_configuration_policy) { |
1268 sources += rebase_path( | 1277 sources += rebase_path( |
1269 unit_gypi_values.chrome_unit_tests_extensions_policy_sources, | 1278 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_polic
y_sources, |
1270 ".", | 1279 ".", |
1271 "//chrome") | 1280 "//chrome") |
1272 } | 1281 } |
1273 if (!is_chromeos) { | 1282 if (!is_chromeos) { |
1274 sources += rebase_path( | 1283 sources += rebase_path( |
1275 unit_gypi_values.chrome_unit_tests_extensions_non_chromeos_sourc
es, | 1284 chrome_tests_unit_gypi_values.chrome_unit_tests_extensions_non_c
hromeos_sources, |
1276 ".", | 1285 ".", |
1277 "//chrome") | 1286 "//chrome") |
1278 } | 1287 } |
1279 } | 1288 } |
1280 if (toolkit_views) { | 1289 if (toolkit_views) { |
1281 deps += [ | 1290 deps += [ |
1282 "//components/web_modal:test_support", | 1291 "//components/web_modal:test_support", |
1283 "//ui/views", | 1292 "//ui/views", |
1284 "//ui/views:test_support", | 1293 "//ui/views:test_support", |
1285 ] | 1294 ] |
1286 sources += rebase_path(unit_gypi_values.chrome_unit_tests_views_sources, | 1295 sources += rebase_path( |
1287 ".", | 1296 chrome_tests_unit_gypi_values.chrome_unit_tests_views_sources, |
1288 "//chrome") | 1297 ".", |
| 1298 "//chrome") |
1289 if (!is_mac) { | 1299 if (!is_mac) { |
1290 sources += rebase_path( | 1300 sources += rebase_path( |
1291 unit_gypi_values.chrome_unit_tests_views_non_mac_sources, | 1301 chrome_tests_unit_gypi_values.chrome_unit_tests_views_non_mac_so
urces, |
1292 ".", | 1302 ".", |
1293 "//chrome") | 1303 "//chrome") |
1294 } | 1304 } |
1295 } | 1305 } |
1296 if (use_ash) { | 1306 if (use_ash) { |
1297 sources += rebase_path(unit_gypi_values.chrome_unit_tests_ash_sources, | 1307 sources += rebase_path( |
1298 ".", | 1308 chrome_tests_unit_gypi_values.chrome_unit_tests_ash_sources, |
1299 "//chrome") | 1309 ".", |
| 1310 "//chrome") |
1300 deps += [ | 1311 deps += [ |
1301 "//ash:test_support", | 1312 "//ash:test_support", |
1302 "//ash/resources", | 1313 "//ash/resources", |
1303 "//ash/strings", | 1314 "//ash/strings", |
1304 ] | 1315 ] |
1305 | 1316 |
1306 # We eventually want to compile both in Win Aura builds, see | 1317 # We eventually want to compile both in Win Aura builds, see |
1307 # http://crbug.com/155545. | 1318 # http://crbug.com/155545. |
1308 if (!is_win) { | 1319 if (!is_win) { |
1309 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ] | 1320 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ] |
1310 } | 1321 } |
1311 } | 1322 } |
1312 if (use_aura) { | 1323 if (use_aura) { |
1313 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] | 1324 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] |
1314 deps += [ | 1325 deps += [ |
1315 "//ui/wm", | 1326 "//ui/wm", |
1316 "//ui/aura:test_support", | 1327 "//ui/aura:test_support", |
1317 "//ui/views:test_support", | 1328 "//ui/views:test_support", |
1318 ] | 1329 ] |
1319 } | 1330 } |
1320 if (!is_chromeos && is_linux) { | 1331 if (!is_chromeos && is_linux) { |
1321 sources += | 1332 sources += rebase_path( |
1322 rebase_path(unit_gypi_values.chrome_unit_tests_desktop_linux_sources, | 1333 chrome_tests_unit_gypi_values.chrome_unit_tests_desktop_linux_sour
ces, |
1323 ".", | 1334 ".", |
1324 "//chrome") | 1335 "//chrome") |
1325 } | 1336 } |
1326 if (!is_chromeos && !use_ozone && is_linux) { | 1337 if (!is_chromeos && !use_ozone && is_linux) { |
1327 deps += [ | 1338 deps += [ |
1328 "//chrome/browser/ui/libgtk2ui", | 1339 "//chrome/browser/ui/libgtk2ui", |
1329 "//build/config/linux:gio", | 1340 "//build/config/linux:gio", |
1330 ] | 1341 ] |
1331 } | 1342 } |
1332 | 1343 |
1333 if (enable_task_manager) { | 1344 if (enable_task_manager) { |
1334 sources += | 1345 sources += rebase_path( |
1335 rebase_path(unit_gypi_values.chrome_unit_tests_task_manager_sources, | 1346 chrome_tests_unit_gypi_values.chrome_unit_tests_task_manager_sourc
es, |
1336 ".", | 1347 ".", |
1337 "//chrome") | 1348 "//chrome") |
1338 } | 1349 } |
1339 if (enable_mdns) { | 1350 if (enable_mdns) { |
1340 sources += rebase_path(unit_gypi_values.chrome_unit_tests_mdns_sources, | 1351 sources += rebase_path( |
1341 ".", | 1352 chrome_tests_unit_gypi_values.chrome_unit_tests_mdns_sources, |
1342 "//chrome") | 1353 ".", |
| 1354 "//chrome") |
1343 } | 1355 } |
1344 if (enable_service_discovery) { | 1356 if (enable_service_discovery) { |
1345 sources += rebase_path( | 1357 sources += rebase_path( |
1346 unit_gypi_values.chrome_unit_tests_service_discovery_sources, | 1358 chrome_tests_unit_gypi_values.chrome_unit_tests_service_discovery_
sources, |
1347 ".", | 1359 ".", |
1348 "//chrome") | 1360 "//chrome") |
1349 } | 1361 } |
1350 if (enable_configuration_policy) { | 1362 if (enable_configuration_policy) { |
1351 sources += rebase_path( | 1363 sources += rebase_path( |
1352 unit_gypi_values.chrome_unit_tests_configuration_policy_sources, | 1364 chrome_tests_unit_gypi_values.chrome_unit_tests_configuration_poli
cy_sources, |
1353 ".", | 1365 ".", |
1354 "//chrome") | 1366 "//chrome") |
1355 if (is_chromeos) { | 1367 if (is_chromeos) { |
1356 sources -= | 1368 sources -= |
1357 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] | 1369 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] |
1358 } else if (is_android) { | 1370 } else if (is_android) { |
1359 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] | 1371 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] |
1360 } | 1372 } |
1361 if (!is_android && !is_ios && !is_chromeos) { | 1373 if (!is_android && !is_ios && !is_chromeos) { |
1362 sources += | 1374 sources += |
1363 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] | 1375 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] |
1364 } | 1376 } |
1365 if (!is_android && !is_ios) { | 1377 if (!is_android && !is_ios) { |
1366 sources += | 1378 sources += |
1367 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] | 1379 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] |
1368 } | 1380 } |
1369 } | 1381 } |
1370 if (enable_web_speech) { | 1382 if (enable_web_speech) { |
1371 sources += rebase_path(unit_gypi_values.chrome_unit_tests_speech_sources, | 1383 sources += rebase_path( |
1372 ".", | 1384 chrome_tests_unit_gypi_values.chrome_unit_tests_speech_sources, |
1373 "//chrome") | 1385 ".", |
| 1386 "//chrome") |
1374 } | 1387 } |
1375 if (enable_notifications) { | 1388 if (enable_notifications) { |
1376 sources += | 1389 sources += rebase_path( |
1377 rebase_path(unit_gypi_values.chrome_unit_tests_notifications_sources, | 1390 chrome_tests_unit_gypi_values.chrome_unit_tests_notifications_sour
ces, |
1378 ".", | 1391 ".", |
1379 "//chrome") | 1392 "//chrome") |
1380 if (is_android) { | 1393 if (is_android) { |
1381 sources -= [ | 1394 sources -= [ |
1382 # Android does not use the Message Center notification system. | 1395 # Android does not use the Message Center notification system. |
1383 "../browser/notifications/message_center_notifications_unittest.cc", | 1396 "../browser/notifications/message_center_notifications_unittest.cc", |
1384 "../browser/notifications/message_center_settings_controller_unittest.
cc", | 1397 "../browser/notifications/message_center_settings_controller_unittest.
cc", |
1385 ] | 1398 ] |
1386 } | 1399 } |
1387 } | 1400 } |
1388 if (safe_browsing_mode == 1) { | 1401 if (safe_browsing_mode == 1) { |
1389 # TODO(sgurun): enable tests for safe_browsing==2. | 1402 # TODO(sgurun): enable tests for safe_browsing==2. |
1390 sources += rebase_path( | 1403 sources += rebase_path( |
1391 unit_gypi_values.chrome_unit_tests_full_safe_browsing_sources, | 1404 chrome_tests_unit_gypi_values.chrome_unit_tests_full_safe_browsing
_sources, |
1392 ".", | 1405 ".", |
1393 "//chrome") | 1406 "//chrome") |
1394 deps += [ ":test_proto" ] | 1407 deps += [ ":test_proto" ] |
1395 if (is_android) { | 1408 if (is_android) { |
1396 deps -= [ ":test_proto" ] | 1409 deps -= [ ":test_proto" ] |
1397 sources -= [ | 1410 sources -= [ |
1398 # Android doesn't support download feedbacks. | 1411 # Android doesn't support download feedbacks. |
1399 "../browser/safe_browsing/download_feedback_service_unittest.cc", | 1412 "../browser/safe_browsing/download_feedback_service_unittest.cc", |
1400 "../browser/safe_browsing/download_feedback_unittest.cc", | 1413 "../browser/safe_browsing/download_feedback_unittest.cc", |
1401 "../browser/safe_browsing/download_protection_service_unittest.cc", | 1414 "../browser/safe_browsing/download_protection_service_unittest.cc", |
1402 "../browser/safe_browsing/two_phase_uploader_unittest.cc", | 1415 "../browser/safe_browsing/two_phase_uploader_unittest.cc", |
1403 "../common/safe_browsing/ipc_protobuf_message_test_messages.h", | 1416 "../common/safe_browsing/ipc_protobuf_message_test_messages.h", |
1404 "../common/safe_browsing/ipc_protobuf_message_unittest.cc", | 1417 "../common/safe_browsing/ipc_protobuf_message_unittest.cc", |
1405 ] | 1418 ] |
1406 } | 1419 } |
1407 } | 1420 } |
1408 if (enable_autofill_dialog && !is_android) { | 1421 if (enable_autofill_dialog && !is_android) { |
1409 sources += rebase_path( | 1422 sources += rebase_path( |
1410 unit_gypi_values.chrome_unit_tests_autofill_dialog_sources, | 1423 chrome_tests_unit_gypi_values.chrome_unit_tests_autofill_dialog_so
urces, |
1411 ".", | 1424 ".", |
1412 "//chrome") | 1425 "//chrome") |
1413 } | 1426 } |
1414 if (enable_plugins) { | 1427 if (enable_plugins) { |
1415 sources += rebase_path(unit_gypi_values.chrome_unit_tests_plugins_sources, | 1428 sources += rebase_path( |
1416 ".", | 1429 chrome_tests_unit_gypi_values.chrome_unit_tests_plugins_sources, |
1417 "//chrome") | 1430 ".", |
| 1431 "//chrome") |
1418 } | 1432 } |
1419 if (enable_print_preview) { | 1433 if (enable_print_preview) { |
1420 sources += | 1434 sources += rebase_path( |
1421 rebase_path(unit_gypi_values.chrome_unit_tests_print_preview_sources, | 1435 chrome_tests_unit_gypi_values.chrome_unit_tests_print_preview_sour
ces, |
1422 ".", | 1436 ".", |
1423 "//chrome") | 1437 "//chrome") |
1424 } | 1438 } |
1425 if (enable_captive_portal_detection) { | 1439 if (enable_captive_portal_detection) { |
1426 sources += | 1440 sources += rebase_path( |
1427 rebase_path(unit_gypi_values.chrome_unit_tests_captive_portal_sources, | 1441 chrome_tests_unit_gypi_values.chrome_unit_tests_captive_portal_sou
rces, |
1428 ".", | 1442 ".", |
1429 "//chrome") | 1443 "//chrome") |
1430 } | 1444 } |
1431 if (enable_session_service) { | 1445 if (enable_session_service) { |
1432 sources += rebase_path( | 1446 sources += rebase_path( |
1433 unit_gypi_values.chrome_unit_tests_session_service_sources, | 1447 chrome_tests_unit_gypi_values.chrome_unit_tests_session_service_so
urces, |
1434 ".", | 1448 ".", |
1435 "//chrome") | 1449 "//chrome") |
1436 } | 1450 } |
1437 if (enable_media_router) { | 1451 if (enable_media_router) { |
1438 sources += | 1452 sources += rebase_path( |
1439 rebase_path(unit_gypi_values.chrome_unit_tests_media_router_sources, | 1453 chrome_tests_unit_gypi_values.chrome_unit_tests_media_router_sourc
es, |
1440 ".", | 1454 ".", |
1441 "//chrome") | 1455 "//chrome") |
1442 deps += [ "//chrome/browser/media/router:test_support" ] | 1456 deps += [ "//chrome/browser/media/router:test_support" ] |
1443 if (!toolkit_views) { | 1457 if (!toolkit_views) { |
1444 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte
st.cc" ] | 1458 sources -= [ "../browser/ui/views/media_router/media_router_ui_browserte
st.cc" ] |
1445 } | 1459 } |
1446 } | 1460 } |
1447 if (enable_webrtc) { | 1461 if (enable_webrtc) { |
1448 sources += rebase_path(unit_gypi_values.chrome_unit_tests_webrtc_sources, | 1462 sources += rebase_path( |
1449 ".", | 1463 chrome_tests_unit_gypi_values.chrome_unit_tests_webrtc_sources, |
1450 "//chrome") | 1464 ".", |
| 1465 "//chrome") |
1451 } | 1466 } |
1452 if (is_chromeos) { | 1467 if (is_chromeos) { |
1453 sources += | 1468 deps += [ "//chrome/browser/chromeos:unit_tests" ] |
1454 rebase_path(unit_gypi_values.chrome_unit_tests_chromeos_sources, | |
1455 ".", | |
1456 "//chrome") | |
1457 deps += [ | |
1458 "//ash/resources", | |
1459 "//ui/chromeos/resources", | |
1460 ] | |
1461 sources -= [ | 1469 sources -= [ |
1462 "../browser/signin/signin_global_error_unittest.cc", | 1470 "../browser/signin/signin_global_error_unittest.cc", |
1463 "../browser/signin/signin_manager_unittest.cc", | 1471 "../browser/signin/signin_manager_unittest.cc", |
1464 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc", | 1472 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc", |
1465 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc"
, | 1473 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc"
, |
1466 "../browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc", | 1474 "../browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc", |
1467 ] | 1475 ] |
1468 } | 1476 } |
1469 if (use_x11) { | 1477 if (use_x11) { |
1470 deps += [ "//ui/events/devices" ] | 1478 deps += [ "//ui/events/devices" ] |
(...skipping 24 matching lines...) Expand all Loading... |
1495 deps += [ | 1503 deps += [ |
1496 "//dbus", | 1504 "//dbus", |
1497 "//dbus:test_support", | 1505 "//dbus:test_support", |
1498 "//ui/aura:test_support", | 1506 "//ui/aura:test_support", |
1499 ] | 1507 ] |
1500 } | 1508 } |
1501 if (is_linux && is_chrome_branded && current_cpu == "x86") { | 1509 if (is_linux && is_chrome_branded && current_cpu == "x86") { |
1502 ldflags = [ "-Wl,--strip-debug" ] | 1510 ldflags = [ "-Wl,--strip-debug" ] |
1503 } | 1511 } |
1504 if (is_mac) { | 1512 if (is_mac) { |
1505 sources += rebase_path(unit_gypi_values.chrome_unit_tests_mac_sources, | 1513 sources += rebase_path( |
1506 ".", | 1514 chrome_tests_unit_gypi_values.chrome_unit_tests_mac_sources, |
1507 "//chrome") | 1515 ".", |
| 1516 "//chrome") |
1508 sources -= [ | 1517 sources -= [ |
1509 "../browser/ui/tests/ui_gfx_image_unittest.cc", | 1518 "../browser/ui/tests/ui_gfx_image_unittest.cc", |
1510 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc", | 1519 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc", |
1511 "../tools/convert_dict/convert_dict_unittest.cc", | 1520 "../tools/convert_dict/convert_dict_unittest.cc", |
1512 ] | 1521 ] |
1513 | 1522 |
1514 # The test fetches resources which means Mac need the app bundle to exist | 1523 # The test fetches resources which means Mac need the app bundle to exist |
1515 # on disk so it can pull from it. | 1524 # on disk so it can pull from it. |
1516 deps += [ | 1525 deps += [ |
1517 "//third_party/google_toolbox_for_mac", | 1526 "//third_party/google_toolbox_for_mac", |
1518 "//third_party/ocmock", | 1527 "//third_party/ocmock", |
1519 ] | 1528 ] |
1520 | 1529 |
1521 # TODO(mark): We really want this for all non-static library targets, | 1530 # TODO(mark): We really want this for all non-static library targets, |
1522 # but when we tried to pull it up to the common.gypi level, it broke | 1531 # but when we tried to pull it up to the common.gypi level, it broke |
1523 # other things like the ui and startup tests. *shrug* | 1532 # other things like the ui and startup tests. *shrug* |
1524 ldflags = [ "-Wl,-ObjC" ] | 1533 ldflags = [ "-Wl,-ObjC" ] |
1525 } | 1534 } |
1526 if (!is_mac && !is_ios) { | 1535 if (!is_mac && !is_ios) { |
1527 deps += [ | 1536 deps += [ |
1528 "//chrome/tools/convert_dict:lib", | 1537 "//chrome/tools/convert_dict:lib", |
1529 "//chrome:packed_extra_resources", | 1538 "//chrome:packed_extra_resources", |
1530 "//chrome:packed_resources", | 1539 "//chrome:packed_resources", |
1531 "//third_party/hunspell", | 1540 "//third_party/hunspell", |
1532 ] | 1541 ] |
1533 } | 1542 } |
1534 if (is_win || is_mac) { | 1543 if (is_win || is_mac) { |
1535 sources += rebase_path(unit_gypi_values.chrome_unit_tests_win_mac_sources, | 1544 sources += rebase_path( |
1536 ".", | 1545 chrome_tests_unit_gypi_values.chrome_unit_tests_win_mac_sources, |
1537 "//chrome") | 1546 ".", |
| 1547 "//chrome") |
1538 } | 1548 } |
1539 if (is_win || is_mac || is_chromeos) { | 1549 if (is_win || is_mac || is_chromeos) { |
1540 sources += [ "../common/extensions/api/networking_private/networking_priva
te_crypto_unittest.cc" ] | 1550 sources += [ "../common/extensions/api/networking_private/networking_priva
te_crypto_unittest.cc" ] |
1541 } | 1551 } |
1542 if (enable_rlz) { | 1552 if (enable_rlz) { |
1543 deps += [ "//rlz:test_support" ] | 1553 deps += [ "//rlz:test_support" ] |
1544 } else { | 1554 } else { |
1545 sources -= [ "../browser/rlz/rlz_unittest.cc" ] | 1555 sources -= [ "../browser/rlz/rlz_unittest.cc" ] |
1546 } | 1556 } |
1547 if (is_win) { | 1557 if (is_win) { |
1548 if (!is_component_build) { | 1558 if (!is_component_build) { |
1549 # Unit_tests pdb files can get too big when incremental linking is | 1559 # Unit_tests pdb files can get too big when incremental linking is |
1550 # on, disabling for this target. | 1560 # on, disabling for this target. |
1551 #'LinkIncremental': '<(msvs_debug_link_nonincremental)', TODO(GYP) | 1561 #'LinkIncremental': '<(msvs_debug_link_nonincremental)', TODO(GYP) |
1552 } | 1562 } |
1553 | 1563 |
1554 sources += rebase_path(unit_gypi_values.chrome_unit_tests_win_sources, | 1564 sources += rebase_path( |
1555 ".", | 1565 chrome_tests_unit_gypi_values.chrome_unit_tests_win_sources, |
1556 "//chrome") | 1566 ".", |
| 1567 "//chrome") |
1557 deps += [ | 1568 deps += [ |
1558 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unitte
st.gyp:verifier_test_dll_1', TODO(GYP) | 1569 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unitte
st.gyp:verifier_test_dll_1', TODO(GYP) |
1559 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unitte
st.gyp:verifier_test_dll_2', TODO(GYP) | 1570 #'browser/safe_browsing/incident_reporting/verifier_test/verifier_unitte
st.gyp:verifier_test_dll_2', TODO(GYP) |
1560 "//chrome:other_version", | 1571 "//chrome:other_version", |
1561 "//chrome_elf:blacklist_test_dll_1", | 1572 "//chrome_elf:blacklist_test_dll_1", |
1562 "//chrome/installer/util:strings", | 1573 "//chrome/installer/util:strings", |
1563 "//third_party/iaccessible2", | 1574 "//third_party/iaccessible2", |
1564 "//third_party/isimpledom", | 1575 "//third_party/isimpledom", |
1565 "//third_party/wtl", | 1576 "//third_party/wtl", |
1566 "//ui/resources", | 1577 "//ui/resources", |
(...skipping 21 matching lines...) Expand all Loading... |
1588 ] | 1599 ] |
1589 } else { | 1600 } else { |
1590 sources -= [ | 1601 sources -= [ |
1591 "../browser/metrics/variations/variations_request_scheduler_mobile_unitt
est.cc", | 1602 "../browser/metrics/variations/variations_request_scheduler_mobile_unitt
est.cc", |
1592 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc", | 1603 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc", |
1593 ] | 1604 ] |
1594 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ] | 1605 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ] |
1595 } | 1606 } |
1596 if (!is_android && !is_chromeos) { | 1607 if (!is_android && !is_chromeos) { |
1597 sources += rebase_path( | 1608 sources += rebase_path( |
1598 unit_gypi_values.chrome_unit_tests_non_android_or_chromeos_sources
, | 1609 chrome_tests_unit_gypi_values.chrome_unit_tests_non_android_or_chr
omeos_sources, |
1599 ".", | 1610 ".", |
1600 "//chrome") | 1611 "//chrome") |
1601 } | 1612 } |
1602 if (enable_themes) { | 1613 if (enable_themes) { |
1603 sources += rebase_path(unit_gypi_values.chrome_unit_tests_themes_sources, | 1614 sources += rebase_path( |
1604 ".", | 1615 chrome_tests_unit_gypi_values.chrome_unit_tests_themes_sources, |
1605 "//chrome") | 1616 ".", |
| 1617 "//chrome") |
1606 } | 1618 } |
1607 if (!is_android && (use_nss_certs || use_openssl_certs)) { | 1619 if (!is_android && (use_nss_certs || use_openssl_certs)) { |
1608 sources += [ "../common/net/x509_certificate_model_unittest.cc" ] | 1620 sources += [ "../common/net/x509_certificate_model_unittest.cc" ] |
1609 } | 1621 } |
1610 if (enable_supervised_users) { | 1622 if (enable_supervised_users) { |
1611 sources += rebase_path( | 1623 sources += rebase_path( |
1612 unit_gypi_values.chrome_unit_tests_supervised_user_sources, | 1624 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_so
urces, |
1613 ".", | 1625 ".", |
1614 "//chrome") | 1626 "//chrome") |
1615 } | 1627 } |
1616 if (enable_supervised_users && !is_android && !is_ios) { | 1628 if (enable_supervised_users && !is_android && !is_ios) { |
1617 sources += rebase_path( | 1629 sources += rebase_path( |
1618 unit_gypi_values.chrome_unit_tests_supervised_user_legacy_sources, | 1630 chrome_tests_unit_gypi_values.chrome_unit_tests_supervised_user_le
gacy_sources, |
1619 ".", | 1631 ".", |
1620 "//chrome") | 1632 "//chrome") |
1621 } | 1633 } |
1622 if (safe_browsing_mode == 1 && enable_extensions) { | 1634 if (safe_browsing_mode == 1 && enable_extensions) { |
1623 sources += [ "../browser/extensions/blacklist_unittest.cc" ] | 1635 sources += [ "../browser/extensions/blacklist_unittest.cc" ] |
1624 } | 1636 } |
1625 if (cld_version == 1) { | 1637 if (cld_version == 1) { |
1626 sources += [ "//third_party/cld/encodings/compact_lang_det/compact_lang_de
t_unittest_small.cc" ] | 1638 sources += [ "//third_party/cld/encodings/compact_lang_det/compact_lang_de
t_unittest_small.cc" ] |
1627 defines += [ "CLD_WINDOWS" ] | 1639 defines += [ "CLD_WINDOWS" ] |
1628 deps += [ "//third_party/cld" ] | 1640 deps += [ "//third_party/cld" ] |
1629 } | 1641 } |
1630 if (enable_app_list) { | 1642 if (enable_app_list) { |
1631 sources += | 1643 sources += rebase_path( |
1632 rebase_path(unit_gypi_values.chrome_unit_tests_app_list_sources, | 1644 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_sources, |
1633 ".", | 1645 ".", |
1634 "//chrome") | 1646 "//chrome") |
1635 deps += [ "//ui/app_list:test_support" ] | 1647 deps += [ "//ui/app_list:test_support" ] |
1636 } | 1648 } |
1637 if (enable_app_list && is_chromeos) { | 1649 if (enable_app_list && is_chromeos) { |
1638 sources += rebase_path( | 1650 sources += rebase_path( |
1639 unit_gypi_values.chrome_unit_tests_app_list_chromeos_sources, | 1651 chrome_tests_unit_gypi_values.chrome_unit_tests_app_list_chromeos_
sources, |
1640 ".", | 1652 ".", |
1641 "//chrome") | 1653 "//chrome") |
1642 } | 1654 } |
1643 if (!enable_plugin_installation) { | 1655 if (!enable_plugin_installation) { |
1644 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] | 1656 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] |
1645 } | 1657 } |
1646 } | 1658 } |
1647 | 1659 |
1648 if (is_win || (is_linux && !is_chromeos)) { | 1660 if (is_win || (is_linux && !is_chromeos)) { |
1649 # TODO(GYP): Figure out which of these work and are needed on other | 1661 # TODO(GYP): Figure out which of these work and are needed on other |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 "//base", | 1753 "//base", |
1742 "//chrome:resources", | 1754 "//chrome:resources", |
1743 "//chrome:strings", | 1755 "//chrome:strings", |
1744 "//chrome/browser", | 1756 "//chrome/browser", |
1745 "//chrome/common", | 1757 "//chrome/common", |
1746 "//mojo/environment:chromium", | 1758 "//mojo/environment:chromium", |
1747 "//third_party/mojo/src/mojo/edk/system", | 1759 "//third_party/mojo/src/mojo/edk/system", |
1748 ] | 1760 ] |
1749 | 1761 |
1750 if (!is_android && use_ash) { | 1762 if (!is_android && use_ash) { |
1751 sources += | 1763 sources += rebase_path( |
1752 rebase_path(unit_gypi_values.chrome_test_support_unit_ash_sources, | 1764 chrome_tests_unit_gypi_values.chrome_test_support_unit_ash_sources, |
1753 ".", | 1765 ".", |
1754 "//chrome") | 1766 "//chrome") |
1755 } | 1767 } |
1756 } | 1768 } |
OLD | NEW |