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/crypto.gni") |
5 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
7 import("//build/module_args/v8.gni") | 8 import("//build/module_args/v8.gni") |
8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
9 | 10 |
10 # This target exists to reference other test executables to bring these files | 11 # This target exists to reference other test executables to bring these files |
11 # into the build. | 12 # into the build. |
12 group("test") { | 13 group("test") { |
13 testonly = true | 14 testonly = true |
14 deps = [ | 15 deps = [ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 "//chrome/common:test_support", | 96 "//chrome/common:test_support", |
96 "//chrome/renderer:test_support", | 97 "//chrome/renderer:test_support", |
97 "//components/bookmarks/test", | 98 "//components/bookmarks/test", |
98 "//components/gcm_driver:test_support", | 99 "//components/gcm_driver:test_support", |
99 "//components/history/core/test:test", | 100 "//components/history/core/test:test", |
100 "//components/metrics:test_support", | 101 "//components/metrics:test_support", |
101 "//components/omnibox:test_support", | 102 "//components/omnibox:test_support", |
102 "//components/ownership", | 103 "//components/ownership", |
103 "//components/password_manager/core/browser:test_support", | 104 "//components/password_manager/core/browser:test_support", |
104 "//components/pref_registry:test_support", | 105 "//components/pref_registry:test_support", |
| 106 "//components/rappor:test_support", |
105 "//components/search_engines:test_support", | 107 "//components/search_engines:test_support", |
106 "//components/signin/core/browser:test_support", | 108 "//components/signin/core/browser:test_support", |
107 "//components/sync_driver:test_support", | 109 "//components/sync_driver:test_support", |
108 "//components/update_client:test_support", | 110 "//components/update_client:test_support", |
109 "//content/public/app:both", | 111 "//content/public/app:both", |
110 "//ui/gfx:test_support", | 112 "//ui/gfx:test_support", |
111 "//net", | 113 "//net", |
112 "//net:test_support", | 114 "//net:test_support", |
113 "//skia", | 115 "//skia", |
114 "//sql", | 116 "//sql", |
(...skipping 12 matching lines...) Expand all Loading... |
127 "//chrome/utility", | 129 "//chrome/utility", |
128 "//content/public/child", | 130 "//content/public/child", |
129 "//content/public/common", | 131 "//content/public/common", |
130 "//content/public/plugin", | 132 "//content/public/plugin", |
131 "//content/public/renderer", | 133 "//content/public/renderer", |
132 "//content/public/utility", | 134 "//content/public/utility", |
133 "//components/autofill/core/browser:test_support", | 135 "//components/autofill/core/browser:test_support", |
134 "//components/captive_portal:test_support", | 136 "//components/captive_portal:test_support", |
135 "//components/infobars/core", | 137 "//components/infobars/core", |
136 "//components/sessions:test_support", | 138 "//components/sessions:test_support", |
| 139 "//components/web_resource:test_support", |
137 "//google_apis:test_support", | 140 "//google_apis:test_support", |
138 "//ipc:test_support", | 141 "//ipc:test_support", |
139 "//media:test_support", | 142 "//media:test_support", |
140 "//ppapi:ppapi_shared", | 143 "//ppapi:ppapi_shared", |
141 "//sql:test_support", | 144 "//sql:test_support", |
142 "//third_party/leveldatabase", | 145 "//third_party/leveldatabase", |
143 "//ui/base", | 146 "//ui/base", |
144 "//ui/events:events_base", | 147 "//ui/events:events_base", |
145 "//ui/gl", | 148 "//ui/gl", |
146 ] | 149 ] |
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 | 1175 |
1173 # TODO(GYP) CDM adapter stuff. | 1176 # TODO(GYP) CDM adapter stuff. |
1174 #if (enable_pepper_cdms) { | 1177 #if (enable_pepper_cdms) { |
1175 # deps += [ | 1178 # deps += [ |
1176 # "//media/cdm/ppapi:clearkeycdmadapter", | 1179 # "//media/cdm/ppapi:clearkeycdmadapter", |
1177 # "//ppapi:ppapi_cpp", | 1180 # "//ppapi:ppapi_cpp", |
1178 # "//third_party/widevine/cdm:adapter", | 1181 # "//third_party/widevine/cdm:adapter", |
1179 # ] | 1182 # ] |
1180 #} | 1183 #} |
1181 } | 1184 } |
| 1185 |
| 1186 unit_gypi_values = exec_script("//build/gypi_to_gn.py", |
| 1187 [ rebase_path("../chrome_tests_unit.gypi") ], |
| 1188 "scope", |
| 1189 [ "../chrome_tests_unit.gypi" ]) |
| 1190 |
| 1191 test("unit_tests") { |
| 1192 sources = |
| 1193 rebase_path(unit_gypi_values.chrome_unit_tests_sources, ".", "//chrome") |
| 1194 |
| 1195 defines = [] |
| 1196 |
| 1197 deps = [ |
| 1198 # NOTE: New depndencies should generally be added in the OS!="ios" |
| 1199 # dependencies block below, rather than here. |
| 1200 # Unit tests should only depend on: |
| 1201 # 1) everything that the chrome binaries depend on: |
| 1202 "//chrome:browser_dependencies", |
| 1203 "//chrome:child_dependencies", |
| 1204 |
| 1205 # 2) test-specific support libraries: |
| 1206 ":test_support_unit", |
| 1207 "//base/test:test_support", |
| 1208 "//chrome/test:test_support", |
| 1209 "//components/resources", |
| 1210 "//components/content_settings/core/test:test_support", |
| 1211 "//content/test:test_support", |
| 1212 "//content/public/app:both", |
| 1213 "//crypto:platform", |
| 1214 "//crypto:test_support", |
| 1215 "//net", |
| 1216 "//net:test_support", |
| 1217 "//sync:test_support_sync_api", |
| 1218 "//sync:test_support_sync_core", |
| 1219 "//sync:test_support_sync_internal_api", |
| 1220 "//testing/gmock", |
| 1221 "//testing/gtest", |
| 1222 |
| 1223 # 3) anything tests directly depend on |
| 1224 "//base/allocator", |
| 1225 "//chrome:resources", |
| 1226 "//chrome:strings", |
| 1227 "//courgette:courgette_lib", |
| 1228 "//google_apis", |
| 1229 "//skia", |
| 1230 "//third_party/cacheinvalidation", |
| 1231 "//third_party/icu", |
| 1232 "//third_party/libxml", |
| 1233 "//ui/accelerometer", |
| 1234 "//ui/base:test_support", |
| 1235 "//ui/gfx:test_support", |
| 1236 "//ui/resources", |
| 1237 ] |
| 1238 data_deps = [] |
| 1239 |
| 1240 # TODO(GYP) Windows stuff |
| 1241 # ['incremental_chrome_dll==1', { |
| 1242 # 'UseLibraryDependencyInputs': "true", |
| 1243 |
| 1244 if (!is_ios) { |
| 1245 deps += [ |
| 1246 "//components/autofill/content/browser:test_support", |
| 1247 "//components/metrics/proto", |
| 1248 "//components/data_reduction_proxy/core/browser:test_support", |
| 1249 "//components/webdata_services:test_support", |
| 1250 "//components/strings", |
| 1251 "//content/app/resources", |
| 1252 "//gpu:test_support", |
| 1253 "//media:test_support", |
| 1254 |
| 1255 #'../ppapi/ppapi_internal.gyp:ppapi_unittest_shared', TODO(GYP) |
| 1256 "//third_party/leveldatabase", |
| 1257 "//third_party/libaddressinput", |
| 1258 "//third_party/libjingle", |
| 1259 "//third_party/libphonenumber", |
| 1260 "//tools/json_schema_compiler/test", |
| 1261 "//ui/gl", |
| 1262 "//v8", |
| 1263 ] |
| 1264 } |
| 1265 |
| 1266 if (is_android) { |
| 1267 deps -= [ "//third_party/libaddressinput" ] |
| 1268 |
| 1269 # Some android targets still depend on --gc-sections to link. |
| 1270 # TODO: remove --gc-sections for Debug builds (crbug.com/159847). |
| 1271 ldflags = [ "-Wl,--gc-sections" ] |
| 1272 deps += [ "//testing/android:native_test_native_code" ] |
| 1273 } else { |
| 1274 sources += |
| 1275 rebase_path(unit_gypi_values.chrome_unit_tests_non_android_sources, |
| 1276 ".", |
| 1277 "//chrome") |
| 1278 } |
| 1279 |
| 1280 if (is_ios || is_chromeos) { |
| 1281 sources -= |
| 1282 [ "../browser/metrics/signin_status_metrics_provider_unittest.cc" ] |
| 1283 } |
| 1284 if (enable_background) { |
| 1285 sources += |
| 1286 rebase_path(unit_gypi_values.chrome_unit_tests_background_sources, |
| 1287 ".", |
| 1288 "//chrome") |
| 1289 } |
| 1290 if (enable_spellcheck) { |
| 1291 sources += |
| 1292 rebase_path(unit_gypi_values.chrome_unit_tests_spellchecker_sources, |
| 1293 ".", |
| 1294 "//chrome") |
| 1295 if (is_mac && !is_ios) { |
| 1296 deps += [ "//third_party/hunspell" ] |
| 1297 } |
| 1298 } |
| 1299 |
| 1300 if (enable_one_click_signin) { |
| 1301 sources += rebase_path( |
| 1302 unit_gypi_values.chrome_unit_tests_one_click_signin_sources, |
| 1303 ".", |
| 1304 "//chrome") |
| 1305 if (is_chromeos) { |
| 1306 sources -= [ |
| 1307 "../browser/ui/sync/one_click_signin_helper_unittest.cc", |
| 1308 "../browser/ui/sync/one_click_signin_sync_starter_unittest.cc", |
| 1309 ] |
| 1310 } |
| 1311 if (!toolkit_views) { |
| 1312 sources -= [ "../browser/ui/views/sync/one_click_signin_bubble_view_unit
test.cc" ] |
| 1313 } |
| 1314 } |
| 1315 if (enable_nacl) { |
| 1316 sources += rebase_path(unit_gypi_values.chrome_unit_tests_nacl_sources, |
| 1317 ".", |
| 1318 "//chrome") |
| 1319 } |
| 1320 if (enable_extensions) { |
| 1321 sources += |
| 1322 rebase_path(unit_gypi_values.chrome_unit_tests_extensions_sources, |
| 1323 ".", |
| 1324 "//chrome") |
| 1325 deps += [ |
| 1326 "//chrome/common/extensions/api", |
| 1327 "//extensions:extensions_resources", |
| 1328 "//extensions/strings", |
| 1329 ] |
| 1330 if (enable_configuration_policy) { |
| 1331 sources += rebase_path( |
| 1332 unit_gypi_values.chrome_unit_tests_extensions_policy_sources, |
| 1333 ".", |
| 1334 "//chrome") |
| 1335 } |
| 1336 if (!is_chromeos) { |
| 1337 sources += rebase_path( |
| 1338 unit_gypi_values.chrome_unit_tests_extensions_non_chromeos_sourc
es, |
| 1339 ".", |
| 1340 "//chrome") |
| 1341 } |
| 1342 } |
| 1343 if (toolkit_views) { |
| 1344 deps += [ |
| 1345 "//components/web_modal:test_support", |
| 1346 "//ui/views", |
| 1347 "//ui/views:test_support", |
| 1348 ] |
| 1349 if (!is_mac) { |
| 1350 # TODO(tapted): Enable toolkit-views unit_tests on Mac when their |
| 1351 # respective implementations are linked in. http://crbug.com/412234. |
| 1352 sources += rebase_path(unit_gypi_values.chrome_unit_tests_views_sources, |
| 1353 ".", |
| 1354 "//chrome") |
| 1355 } |
| 1356 } |
| 1357 if (use_ash) { |
| 1358 sources += rebase_path(unit_gypi_values.chrome_unit_tests_ash_sources, |
| 1359 ".", |
| 1360 "//chrome") |
| 1361 deps += [ |
| 1362 "//ash:test_support", |
| 1363 "//ash/resources", |
| 1364 "//ash/strings", |
| 1365 ] |
| 1366 |
| 1367 # We eventually want to compile both in Win Aura builds, see |
| 1368 # http://crbug.com/155545. |
| 1369 if (!is_win) { |
| 1370 sources -= [ "../browser/ui/window_sizer/window_sizer_unittest.cc" ] |
| 1371 } |
| 1372 } |
| 1373 if (use_aura) { |
| 1374 sources += [ "//ui/views/controls/webview/webview_unittest.cc" ] |
| 1375 deps += [ |
| 1376 "//ui/wm", |
| 1377 "//ui/aura:test_support", |
| 1378 "//ui/views:test_support", |
| 1379 ] |
| 1380 } |
| 1381 if (!is_chromeos && is_linux) { |
| 1382 sources += |
| 1383 rebase_path(unit_gypi_values.chrome_unit_tests_desktop_linux_sources, |
| 1384 ".", |
| 1385 "//chrome") |
| 1386 } |
| 1387 if (!is_chromeos && !use_ozone && is_linux) { |
| 1388 deps += [ |
| 1389 "//chrome/browser/ui/libgtk2ui", |
| 1390 "//build/config/linux:gio", |
| 1391 ] |
| 1392 if (!is_component_build) { |
| 1393 # TODO(erg): This file does not compile in shared library mode because |
| 1394 # it is reaching into the internals of libgtk2ui, which shouldn't be |
| 1395 # linked with the rest of chrome. This should either be fixed by |
| 1396 # creating a separate unit test target, or by deleting the test. |
| 1397 sources += [ "../browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2
_unittest.cc" ] |
| 1398 } |
| 1399 } |
| 1400 |
| 1401 if (enable_task_manager) { |
| 1402 sources += |
| 1403 rebase_path(unit_gypi_values.chrome_unit_tests_task_manager_sources, |
| 1404 ".", |
| 1405 "//chrome") |
| 1406 } |
| 1407 if (enable_mdns) { |
| 1408 sources += rebase_path(unit_gypi_values.chrome_unit_tests_mdns_sources, |
| 1409 ".", |
| 1410 "//chrome") |
| 1411 } |
| 1412 if (enable_service_discovery) { |
| 1413 sources += rebase_path( |
| 1414 unit_gypi_values.chrome_unit_tests_service_discovery_sources, |
| 1415 ".", |
| 1416 "//chrome") |
| 1417 } |
| 1418 if (enable_configuration_policy) { |
| 1419 sources += rebase_path( |
| 1420 unit_gypi_values.chrome_unit_tests_configuration_policy_sources, |
| 1421 ".", |
| 1422 "//chrome") |
| 1423 if (is_chromeos) { |
| 1424 sources -= |
| 1425 [ "../browser/policy/cloud/user_policy_signin_service_unittest.cc" ] |
| 1426 } else if (is_android) { |
| 1427 sources -= [ "../browser/policy/policy_path_parser_unittest.cc" ] |
| 1428 } |
| 1429 if (!is_android && !is_ios && !is_chromeos) { |
| 1430 sources += |
| 1431 [ "../browser/net/disk_cache_dir_policy_handler_unittest.cc" ] |
| 1432 } |
| 1433 if (!is_android && !is_ios) { |
| 1434 sources += |
| 1435 [ "../browser/download/download_dir_policy_handler_unittest.cc" ] |
| 1436 } |
| 1437 } |
| 1438 if (enable_web_speech) { |
| 1439 sources += rebase_path(unit_gypi_values.chrome_unit_tests_speech_sources, |
| 1440 ".", |
| 1441 "//chrome") |
| 1442 } |
| 1443 if (enable_notifications) { |
| 1444 sources += |
| 1445 rebase_path(unit_gypi_values.chrome_unit_tests_notifications_sources, |
| 1446 ".", |
| 1447 "//chrome") |
| 1448 if (is_android) { |
| 1449 sources -= [ |
| 1450 # Android does not use the Message Center notification system. |
| 1451 "../browser/notifications/message_center_notifications_unittest.cc", |
| 1452 "../browser/notifications/message_center_settings_controller_unittest.
cc", |
| 1453 ] |
| 1454 } |
| 1455 } |
| 1456 if (safe_browsing_mode == 1) { |
| 1457 # TODO(sgurun): enable tests for safe_browsing==2. |
| 1458 sources += rebase_path( |
| 1459 unit_gypi_values.chrome_unit_tests_full_safe_browsing_sources, |
| 1460 ".", |
| 1461 "//chrome") |
| 1462 defines += [ "FULL_SAFE_BROWSING" ] |
| 1463 if (is_chromeos) { |
| 1464 sources -= [ "../browser/safe_browsing/download_protection_service_unitt
est.cc" ] |
| 1465 } else if (is_android) { |
| 1466 sources -= [ |
| 1467 # Android doesn't support download feedbacks. |
| 1468 "../browser/safe_browsing/download_feedback_unittest.cc", |
| 1469 "../browser/safe_browsing/download_feedback_service_unittest.cc", |
| 1470 "../browser/safe_browsing/download_protection_service_unittest.cc", |
| 1471 "../browser/safe_browsing/two_phase_uploader_unittest.cc", |
| 1472 ] |
| 1473 } |
| 1474 } |
| 1475 if (enable_autofill_dialog && !is_android) { |
| 1476 sources += rebase_path( |
| 1477 unit_gypi_values.chrome_unit_tests_autofill_dialog_sources, |
| 1478 ".", |
| 1479 "//chrome") |
| 1480 } |
| 1481 if (enable_plugins) { |
| 1482 sources += rebase_path(unit_gypi_values.chrome_unit_tests_plugins_sources, |
| 1483 ".", |
| 1484 "//chrome") |
| 1485 } |
| 1486 if (enable_print_preview) { |
| 1487 sources += |
| 1488 rebase_path(unit_gypi_values.chrome_unit_tests_print_preview_sources, |
| 1489 ".", |
| 1490 "//chrome") |
| 1491 } |
| 1492 if (enable_captive_portal_detection) { |
| 1493 sources += |
| 1494 rebase_path(unit_gypi_values.chrome_unit_tests_captive_portal_sources, |
| 1495 ".", |
| 1496 "//chrome") |
| 1497 } |
| 1498 if (enable_session_service) { |
| 1499 sources += rebase_path( |
| 1500 unit_gypi_values.chrome_unit_tests_session_service_sources, |
| 1501 ".", |
| 1502 "//chrome") |
| 1503 } |
| 1504 if (enable_webrtc) { |
| 1505 sources += rebase_path(unit_gypi_values.chrome_unit_tests_webrtc_sources, |
| 1506 ".", |
| 1507 "//chrome") |
| 1508 } |
| 1509 if (is_chromeos) { |
| 1510 sources += |
| 1511 rebase_path(unit_gypi_values.chrome_unit_tests_chromeos_sources, |
| 1512 ".", |
| 1513 "//chrome") |
| 1514 deps += [ |
| 1515 "//ash/resources", |
| 1516 "//ui/chromeos/resources", |
| 1517 ] |
| 1518 sources -= [ |
| 1519 "../browser/signin/signin_global_error_unittest.cc", |
| 1520 "../browser/signin/signin_manager_unittest.cc", |
| 1521 "../browser/signin/signin_names_io_thread_unittest.cc", |
| 1522 "../browser/ui/views/app_list/linux/app_list_linux_unittest.cc", |
| 1523 "../browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc"
, |
| 1524 ] |
| 1525 } |
| 1526 if (use_x11) { |
| 1527 deps += [ "//ui/events/devices" ] |
| 1528 data_deps += [ "//tools/xdisplaycheck" ] |
| 1529 } |
| 1530 if (cld_version == 0 || cld_version == 2) { |
| 1531 # Unit tests should be independent of the CLD2 access mechanism, just use |
| 1532 # static for simplicity. |
| 1533 deps += [ "//third_party/cld_2:cld2_static" ] |
| 1534 } |
| 1535 if (is_desktop_linux && cpu_arch == "x64") { |
| 1536 # Only add this test for 64 bit builds because otherwise we need the 32 |
| 1537 # bit library on 64 bit systems when running this test. |
| 1538 sources += |
| 1539 [ "../browser/password_manager/native_backend_gnome_x_unittest.cc" ] |
| 1540 configs += [ |
| 1541 "//chrome/browser:gnome_keyring", |
| 1542 "//chrome/browser:gnome_keyring_direct", |
| 1543 ] |
| 1544 } |
| 1545 if (is_linux && !is_chromeos) { |
| 1546 sources += |
| 1547 [ "../browser/password_manager/native_backend_libsecret_unittest.cc" ] |
| 1548 } |
| 1549 if (is_linux && use_aura) { |
| 1550 deps += [ |
| 1551 "//dbus", |
| 1552 "//dbus:test_support", |
| 1553 "//ui/aura:test_support", |
| 1554 ] |
| 1555 } |
| 1556 if (is_linux && is_chrome_branded && cpu_arch == "x86") { |
| 1557 ldflags = [ "-Wl,--strip-debug" ] |
| 1558 } |
| 1559 if (is_mac) { |
| 1560 sources += rebase_path(unit_gypi_values.chrome_unit_tests_mac_sources, |
| 1561 ".", |
| 1562 "//chrome") |
| 1563 sources -= [ |
| 1564 "../browser/ui/tests/ui_gfx_image_unittest.cc", |
| 1565 "../tools/convert_dict/convert_dict_unittest.cc", |
| 1566 "../renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc", |
| 1567 ] |
| 1568 |
| 1569 # The test fetches resources which means Mac need the app bundle to exist |
| 1570 # on disk so it can pull from it. |
| 1571 deps += [ |
| 1572 "//third_party/google_toolbox_for_mac", |
| 1573 "//third_party/ocmock", |
| 1574 ] |
| 1575 |
| 1576 # TODO(mark): We really want this for all non-static library targets, |
| 1577 # but when we tried to pull it up to the common.gypi level, it broke |
| 1578 # other things like the ui and startup tests. *shrug* |
| 1579 ldflags = [ "-Wl,-ObjC" ] |
| 1580 } |
| 1581 if (!is_mac && !is_ios) { |
| 1582 deps += [ |
| 1583 "//third_party/hunspell", |
| 1584 "//chrome:packed_extra_resources", |
| 1585 "//chrome:packed_resources", |
| 1586 "//chrome/tools/convert_dict:lib", |
| 1587 ] |
| 1588 } |
| 1589 if (is_win || is_mac) { |
| 1590 sources += rebase_path(unit_gypi_values.chrome_unit_tests_win_mac_sources, |
| 1591 ".", |
| 1592 "//chrome") |
| 1593 } |
| 1594 if (is_win || is_mac || is_chromeos) { |
| 1595 sources += [ "common/extensions/api/networking_private/networking_private_
crypto_unittest.cc" ] |
| 1596 } |
| 1597 if (enable_rlz) { |
| 1598 deps += [ "//rlz:test_support" ] |
| 1599 } else { |
| 1600 sources -= [ "../browser/rlz/rlz_unittest.cc" ] |
| 1601 } |
| 1602 if (is_win) { |
| 1603 if (!is_component_build) { |
| 1604 # Unit_tests pdb files can get too big when incremental linking is |
| 1605 # on, disabling for this target. |
| 1606 #'LinkIncremental': '<(msvs_debug_link_nonincremental)', TODO(GYP) |
| 1607 } |
| 1608 |
| 1609 sources += rebase_path(unit_gypi_values.chrome_unit_tests_win_sources, |
| 1610 ".", |
| 1611 "//chrome") |
| 1612 sources += [ |
| 1613 # TODO: It would be nice to have these pulled in |
| 1614 # automatically from direct_dependent_settings in |
| 1615 # their various targets (net.gyp:net_resources, etc.), |
| 1616 # but that causes errors in other targets when |
| 1617 # resulting .res files get referenced multiple times. |
| 1618 #'<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', TODO(GYP
) |
| 1619 #'<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strin
gs.rc', TODO(GYP) |
| 1620 #'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', TO
DO(GYP) |
| 1621 ] |
| 1622 |
| 1623 deps += [ |
| 1624 #'browser/safe_browsing/verifier_test/verifier_unittest.gyp:verifier_tes
t_dll_1', TODO(GYP) |
| 1625 #'browser/safe_browsing/verifier_test/verifier_unittest.gyp:verifier_tes
t_dll_2', TODO(GYP) |
| 1626 #'chrome_version_resources', TODO(GYP) |
| 1627 "//chrome_elf:blacklist_test_dll_1", |
| 1628 "//third_party/iaccessible2", |
| 1629 "//third_party/isimpledom", |
| 1630 "//third_party/wtl", |
| 1631 ] |
| 1632 |
| 1633 libs = [ |
| 1634 "comsupp.lib", |
| 1635 "oleacc.lib", |
| 1636 "rpcrt4.lib", |
| 1637 "urlmon.lib", |
| 1638 "winmm.lib", |
| 1639 ] |
| 1640 } |
| 1641 if (is_android || is_ios) { |
| 1642 sources -= [ |
| 1643 "../browser/devtools/device/webrtc/devtools_bridge_instances_request_uni
ttest.cc", |
| 1644 "../browser/ui/sync/sync_promo_ui_unittest.cc", |
| 1645 ] |
| 1646 } else { |
| 1647 sources -= [ |
| 1648 "../browser/metrics/variations/variations_request_scheduler_mobile_unitt
est.cc", |
| 1649 "../browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc", |
| 1650 ] |
| 1651 deps += [ "//chrome/tools/profile_reset:jtl_compiler_lib" ] |
| 1652 } |
| 1653 if (!is_android && !is_chromeos) { |
| 1654 sources += rebase_path( |
| 1655 unit_gypi_values.chrome_unit_tests_non_android_or_chromeos_sources
, |
| 1656 ".", |
| 1657 "//chrome") |
| 1658 } |
| 1659 if (enable_themes) { |
| 1660 sources += rebase_path(unit_gypi_values.chrome_unit_tests_themes_sources, |
| 1661 ".", |
| 1662 "//chrome") |
| 1663 } |
| 1664 if (!is_android && (use_nss_certs || use_openssl_certs)) { |
| 1665 sources += [ "../common/net/x509_certificate_model_unittest.cc" ] |
| 1666 } |
| 1667 if (enable_supervised_users) { |
| 1668 sources += rebase_path( |
| 1669 unit_gypi_values.chrome_unit_tests_supervised_user_sources, |
| 1670 ".", |
| 1671 "//chrome") |
| 1672 } |
| 1673 if (safe_browsing_mode == 1 && enable_extensions) { |
| 1674 sources += [ "../browser/extensions/blacklist_unittest.cc" ] |
| 1675 } |
| 1676 if (cld_version == 1) { |
| 1677 sources += [ "//third_party/cld/encodings/compact_lang_det/compact_lang_de
t_unittest_small.cc" ] |
| 1678 defines += [ "CLD_WINDOWS" ] |
| 1679 deps += [ "//third_party/cld" ] |
| 1680 } |
| 1681 if (enable_app_list) { |
| 1682 sources += |
| 1683 rebase_path(unit_gypi_values.chrome_unit_tests_app_list_sources, |
| 1684 ".", |
| 1685 "//chrome") |
| 1686 deps += [ "//ui/app_list:test_support" ] |
| 1687 } |
| 1688 if (use_ozone) { |
| 1689 # crbug.com/354036 |
| 1690 sources -= [ "browser/chromeos/events/event_rewriter_unittest.cc" ] |
| 1691 } |
| 1692 if (!enable_plugin_installation) { |
| 1693 sources -= [ "../browser/plugins/plugin_installer_unittest.cc" ] |
| 1694 } |
| 1695 } |
1182 } | 1696 } |
OLD | NEW |