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

Side by Side Diff: net/BUILD.gn

Issue 1256693004: Build net_unittests in Mac GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_mac_build
Patch Set: 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 | « BUILD.gn ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//url/config.gni") 9 import("//url/config.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 ] 1304 ]
1305 deps = [ 1305 deps = [
1306 ":net", 1306 ":net",
1307 ":simple_quic_tools", 1307 ":simple_quic_tools",
1308 "//base", 1308 "//base",
1309 "//third_party/boringssl", 1309 "//third_party/boringssl",
1310 "//third_party/protobuf:protobuf_lite", 1310 "//third_party/protobuf:protobuf_lite",
1311 ] 1311 ]
1312 } 1312 }
1313 1313
1314 # TODO(GYP) bug 513775: Make this work on Mac. 1314 test("net_unittests") {
1315 if (!is_mac) { 1315 sources = gypi_values.net_test_sources
1316 test("net_unittests") { 1316
1317 sources = gypi_values.net_test_sources 1317 configs += [
1318 1318 "//build/config:precompiled_headers",
1319 configs += [ 1319
1320 "//build/config:precompiled_headers", 1320 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1321 1321 "//build/config/compiler:no_size_t_to_int_warning",
1322 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1322 ]
1323 "//build/config/compiler:no_size_t_to_int_warning", 1323 defines = []
1324 ] 1324
1325 defines = [] 1325 deps = [
1326 1326 ":balsa",
1327 deps = [ 1327 ":extras",
1328 ":http_server",
1329 ":net",
1330 ":simple_quic_tools",
1331 ":test_support",
1332 "//base",
1333 "//base:i18n",
1334 "//base:prefs_test_support",
1335 "//base/allocator",
1336 "//base/third_party/dynamic_annotations",
1337 "//crypto",
1338 "//crypto:platform",
1339 "//crypto:test_support",
1340 "//gin",
1341 "//net/base/registry_controlled_domains",
1342 "//sql",
1343 "//testing/gmock",
1344 "//testing/gtest",
1345 "//third_party/zlib",
1346 "//url",
1347 ]
1348
1349 data = [
1350 "data/",
1351 ]
1352 if (is_linux || is_mac || is_win) {
1353 deps += [
1354 "//third_party/pyftpdlib/",
1355 "//third_party/pywebsocket/",
1356 "//third_party/tlslite/",
1357 ]
1358 data += [ "tools/testserver/" ]
1359 }
1360
1361 if (is_desktop_linux) {
1362 deps += [ ":epoll_quic_tools" ]
1363 }
1364 if (is_linux) {
1365 sources += gypi_values.net_linux_test_sources
1366 deps += [
1328 ":balsa", 1367 ":balsa",
brettw 2015/07/31 21:32:21 I noticed this is duplicated above. Can you delete
Dirk Pranke 2015/07/31 21:42:04 Acknowledged.
1329 ":extras", 1368 ":epoll_quic_tools",
1330 ":http_server", 1369 ":epoll_server",
1331 ":net", 1370 ":flip_in_mem_edsm_server_base",
1332 ":simple_quic_tools", 1371 ]
1333 ":test_support", 1372 }
1334 "//base", 1373
1335 "//base:i18n", 1374 if (is_mac || is_ios) {
1336 "//base:prefs_test_support", 1375 sources += gypi_values.net_base_test_mac_ios_sources
1337 "//base/allocator", 1376 }
1338 "//base/third_party/dynamic_annotations", 1377
1339 "//crypto", 1378 if (is_chromeos) {
1340 "//crypto:platform", 1379 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1341 "//crypto:test_support", 1380 }
1342 "//gin", 1381
1343 "//net/base/registry_controlled_domains", 1382 if (v8_use_external_startup_data) {
1344 "//sql", 1383 deps += [ "//gin" ]
1345 "//testing/gmock", 1384 }
1346 "//testing/gtest", 1385
1347 "//third_party/zlib", 1386 if (!use_nss_certs) {
1348 "//url", 1387 sources -= [
1349 ] 1388 "cert/nss_cert_database_unittest.cc",
1350 1389 "ssl/client_cert_store_nss_unittest.cc",
1351 data = [ 1390 ]
1352 "data/", 1391 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
1353 ] 1392 sources -= [
1354 if (is_linux || is_mac || is_win) { 1393 "cert/nss_cert_database_chromeos_unittest.cc",
1355 deps += [ 1394 "cert/nss_profile_filter_chromeos_unittest.cc",
1356 "//third_party/pyftpdlib/", 1395 "ssl/client_cert_store_chromeos_unittest.cc",
1357 "//third_party/pywebsocket/",
1358 "//third_party/tlslite/",
1359 ]
1360 data += [ "tools/testserver/" ]
1361 }
1362
1363 if (is_desktop_linux) {
1364 deps += [ ":epoll_quic_tools" ]
1365 }
1366 if (is_linux) {
1367 sources += gypi_values.net_linux_test_sources
1368 deps += [
1369 ":balsa",
1370 ":epoll_quic_tools",
1371 ":epoll_server",
1372 ":flip_in_mem_edsm_server_base",
1373 ] 1396 ]
1374 } 1397 }
1375 1398 }
1376 if (is_mac || is_ios) { 1399
1377 sources += gypi_values.net_base_test_mac_ios_sources 1400 if (use_openssl) {
1401 # When building for OpenSSL, we need to exclude NSS specific tests
1402 # or functionality not supported by OpenSSL yet.
1403 # TODO(bulach): Add equivalent tests when the underlying
1404 # functionality is ported to OpenSSL.
1405 sources -= [ "quic/test_tools/crypto_test_utils_nss.cc" ]
1406 } else {
1407 sources -= [
1408 "cert/x509_util_openssl_unittest.cc",
1409 "quic/test_tools/crypto_test_utils_openssl.cc",
1410 "socket/ssl_client_socket_openssl_unittest.cc",
1411 "ssl/ssl_client_session_cache_openssl_unittest.cc",
1412 ]
1413 }
1414
1415 if (use_kerberos) {
1416 defines += [ "USE_KERBEROS" ]
1417 }
1418
1419 # These are excluded on Android, because the actual Kerberos support, which
1420 # these test, is in a separate app on Android.
1421 if (!use_kerberos || is_android) {
1422 sources -= [
1423 "http/http_auth_gssapi_posix_unittest.cc",
1424 "http/mock_gssapi_library_posix.cc",
1425 "http/mock_gssapi_library_posix.h",
1426 ]
1427 }
1428 if (!use_kerberos) {
1429 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1430 }
1431
1432 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) {
1433 # Only include this test when on Posix and using NSS for
1434 # cert verification or on iOS (which also uses NSS for certs).
1435 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1436 }
1437
1438 if (!use_openssl_certs) {
1439 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1440 }
1441
1442 if (!enable_websockets) {
1443 sources -= [
1444 "server/http_connection_unittest.cc",
1445 "server/http_server_response_info_unittest.cc",
1446 "server/http_server_unittest.cc",
1447 "server/web_socket_encoder_unittest.cc",
1448 "websockets/websocket_basic_stream_test.cc",
1449 "websockets/websocket_channel_test.cc",
1450 "websockets/websocket_deflate_predictor_impl_test.cc",
1451 "websockets/websocket_deflate_stream_test.cc",
1452 "websockets/websocket_deflater_test.cc",
1453 "websockets/websocket_end_to_end_test.cc",
1454 "websockets/websocket_errors_test.cc",
1455 "websockets/websocket_extension_parser_test.cc",
1456 "websockets/websocket_frame_parser_test.cc",
1457 "websockets/websocket_frame_test.cc",
1458 "websockets/websocket_handshake_challenge_test.cc",
1459 "websockets/websocket_handshake_stream_create_helper_test.cc",
1460 "websockets/websocket_inflater_test.cc",
1461 "websockets/websocket_stream_test.cc",
1462 "websockets/websocket_test_util.cc",
1463 "websockets/websocket_test_util.h",
1464 ]
1465 deps -= [ ":http_server" ]
1466 }
1467
1468 if (disable_file_support) {
1469 sources -= [
1470 "base/directory_lister_unittest.cc",
1471 "url_request/url_request_file_job_unittest.cc",
1472 ]
1473 }
1474
1475 if (disable_ftp_support) {
1476 sources -= [
1477 "ftp/ftp_auth_cache_unittest.cc",
1478 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1479 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
1480 "ftp/ftp_directory_listing_parser_netware_unittest.cc",
1481 "ftp/ftp_directory_listing_parser_os2_unittest.cc",
1482 "ftp/ftp_directory_listing_parser_unittest.cc",
1483 "ftp/ftp_directory_listing_parser_unittest.h",
1484 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1485 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1486 "ftp/ftp_network_transaction_unittest.cc",
1487 "ftp/ftp_util_unittest.cc",
1488 "url_request/url_request_ftp_job_unittest.cc",
1489 ]
1490 }
1491
1492 if (!enable_built_in_dns) {
1493 sources -= [
1494 "dns/address_sorter_posix_unittest.cc",
1495 "dns/address_sorter_unittest.cc",
1496 ]
1497 }
1498
1499 # Always need use_v8_in_net to be 1 to run on Android, so just remove
1500 # net_unittest's dependency on v8 when using icu alternatives instead of
1501 # setting use_v8_in_net to 0.
1502 if (use_v8_in_net && !use_icu_alternatives_on_android) {
1503 deps += [ ":net_with_v8" ]
1504 } else {
1505 sources -= [
1506 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1507 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1508 "proxy/proxy_resolver_v8_unittest.cc",
1509 ]
1510 }
1511
1512 if (use_v8_in_net && !is_android) {
1513 deps += [
1514 ":net_browser_services",
1515 ":net_utility_services",
1516 "//mojo/environment:chromium",
1517 "//third_party/mojo/src/mojo/edk/system",
1518 ]
1519 } else {
1520 sources -= [
1521 "dns/host_resolver_mojo_unittest.cc",
1522 "dns/mojo_host_resolver_impl_unittest.cc",
1523 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1524 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1525 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1526 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1527 "proxy/proxy_service_mojo_unittest.cc",
1528 ]
1529 }
1530
1531 if (!enable_mdns) {
1532 sources -= [
1533 "dns/mdns_cache_unittest.cc",
1534 "dns/mdns_client_unittest.cc",
1535 "dns/record_parsed_unittest.cc",
1536 "dns/record_rdata_unittest.cc",
1537 ]
1538 }
1539
1540 if (is_ios) {
1541 # TODO(GYP)
1542 # 'actions': [
1543 # {
1544 # 'action_name': 'copy_test_data',
1545 # 'variables': {
1546 # 'test_data_files': [
1547 # 'data/ssl/certificates/',
1548 # 'data/test.html',
1549 # 'data/url_request_unittest/',
1550 # ],
1551 # 'test_data_prefix': 'net',
1552 # },
1553 # 'includes': [ '../build/copy_test_data_ios.gypi' ],
1554 # },
1555 # ],
1556 sources -= [
1557 # TODO(droger): The following tests are disabled because the
1558 # implementation is missing or incomplete.
1559 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1560 "base/keygen_handler_unittest.cc",
1561 "disk_cache/backend_unittest.cc",
1562 "disk_cache/blockfile/block_files_unittest.cc",
1563
1564 # Need to read input data files.
1565 "filter/gzip_filter_unittest.cc",
1566 "socket/ssl_server_socket_unittest.cc",
1567 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1568
1569 # Need TestServer.
1570 "cert_net/cert_net_fetcher_impl_unittest.cc",
1571 "proxy/proxy_script_fetcher_impl_unittest.cc",
1572 "socket/ssl_client_socket_unittest.cc",
1573 "url_request/url_fetcher_impl_unittest.cc",
1574 "url_request/url_request_context_builder_unittest.cc",
1575
1576 # Needs GetAppOutput().
1577 "test/python_utils_unittest.cc",
1578
1579 # The following tests are disabled because they don't apply to
1580 # iOS.
1581 # OS is not "linux" or "freebsd" or "openbsd".
1582 "socket/unix_domain_client_socket_posix_unittest.cc",
1583 "socket/unix_domain_server_socket_posix_unittest.cc",
1584
1585 # See bug http://crbug.com/344533.
1586 "disk_cache/blockfile/index_table_v3_unittest.cc",
1587 ]
1588 }
1589
1590 if (is_android) {
1591 sources -= [
1592 # See bug http://crbug.com/344533.
1593 "disk_cache/blockfile/index_table_v3_unittest.cc",
1594 "dns/dns_config_service_posix_unittest.cc",
1595 ]
1596 deps += [
1597 ":net_test_jni_headers",
1598
1599 # TODO(mmenke): This depends on test_support_base, which depends on
1600 # icu. Figure out a way to remove that dependency.
1601 "//testing/android/native_test:native_test_native_code",
1602 ]
1603 set_sources_assignment_filter([])
1604 sources += [ "base/address_tracker_linux_unittest.cc" ]
1605 set_sources_assignment_filter(sources_assignment_filter)
1606 isolate_file = "net_unittests.isolate"
1607 }
1608
1609 if (use_icu_alternatives_on_android) {
1610 sources -= [
1611 "base/filename_util_unittest.cc",
1612 "base/net_util_icu_unittest.cc",
1613 ]
1614 deps -= [ "//base:i18n" ]
1615 }
1616
1617 # Symbols for crashes when running tests on swarming.
1618 if (symbol_level > 0) {
1619 if (is_win) {
1620 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1621 } else if (is_mac) {
1622 data += [ "$root_out_dir/net_unittests.dSYM/" ]
1378 } 1623 }
1379 1624 }
1380 if (is_chromeos) { 1625 }
1381 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] 1626
1382 } 1627 # !is_android && !is_win && !is_mac
1383
1384 if (v8_use_external_startup_data) {
1385 deps += [ "//gin" ]
1386 }
1387
1388 if (!use_nss_certs) {
1389 sources -= [
1390 "cert/nss_cert_database_unittest.cc",
1391 "ssl/client_cert_store_nss_unittest.cc",
1392 ]
1393 if (is_chromeos) { # Already removed for all non-ChromeOS builds.
1394 sources -= [
1395 "cert/nss_cert_database_chromeos_unittest.cc",
1396 "cert/nss_profile_filter_chromeos_unittest.cc",
1397 "ssl/client_cert_store_chromeos_unittest.cc",
1398 ]
1399 }
1400 }
1401
1402 if (use_openssl) {
1403 # When building for OpenSSL, we need to exclude NSS specific tests
1404 # or functionality not supported by OpenSSL yet.
1405 # TODO(bulach): Add equivalent tests when the underlying
1406 # functionality is ported to OpenSSL.
1407 sources -= [ "quic/test_tools/crypto_test_utils_nss.cc" ]
1408 } else {
1409 sources -= [
1410 "cert/x509_util_openssl_unittest.cc",
1411 "quic/test_tools/crypto_test_utils_openssl.cc",
1412 "socket/ssl_client_socket_openssl_unittest.cc",
1413 "ssl/ssl_client_session_cache_openssl_unittest.cc",
1414 ]
1415 }
1416
1417 if (use_kerberos) {
1418 defines += [ "USE_KERBEROS" ]
1419 }
1420
1421 # These are excluded on Android, because the actual Kerberos support, which
1422 # these test, is in a separate app on Android.
1423 if (!use_kerberos || is_android) {
1424 sources -= [
1425 "http/http_auth_gssapi_posix_unittest.cc",
1426 "http/mock_gssapi_library_posix.cc",
1427 "http/mock_gssapi_library_posix.h",
1428 ]
1429 }
1430 if (!use_kerberos) {
1431 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1432 }
1433
1434 if (use_openssl || (!is_desktop_linux && !is_chromeos && !is_ios)) {
1435 # Only include this test when on Posix and using NSS for
1436 # cert verification or on iOS (which also uses NSS for certs).
1437 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1438 }
1439
1440 if (!use_openssl_certs) {
1441 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1442 }
1443
1444 if (!enable_websockets) {
1445 sources -= [
1446 "server/http_connection_unittest.cc",
1447 "server/http_server_response_info_unittest.cc",
1448 "server/http_server_unittest.cc",
1449 "server/web_socket_encoder_unittest.cc",
1450 "websockets/websocket_basic_stream_test.cc",
1451 "websockets/websocket_channel_test.cc",
1452 "websockets/websocket_deflate_predictor_impl_test.cc",
1453 "websockets/websocket_deflate_stream_test.cc",
1454 "websockets/websocket_deflater_test.cc",
1455 "websockets/websocket_end_to_end_test.cc",
1456 "websockets/websocket_errors_test.cc",
1457 "websockets/websocket_extension_parser_test.cc",
1458 "websockets/websocket_frame_parser_test.cc",
1459 "websockets/websocket_frame_test.cc",
1460 "websockets/websocket_handshake_challenge_test.cc",
1461 "websockets/websocket_handshake_stream_create_helper_test.cc",
1462 "websockets/websocket_inflater_test.cc",
1463 "websockets/websocket_stream_test.cc",
1464 "websockets/websocket_test_util.cc",
1465 "websockets/websocket_test_util.h",
1466 ]
1467 deps -= [ ":http_server" ]
1468 }
1469
1470 if (disable_file_support) {
1471 sources -= [
1472 "base/directory_lister_unittest.cc",
1473 "url_request/url_request_file_job_unittest.cc",
1474 ]
1475 }
1476
1477 if (disable_ftp_support) {
1478 sources -= [
1479 "ftp/ftp_auth_cache_unittest.cc",
1480 "ftp/ftp_ctrl_response_buffer_unittest.cc",
1481 "ftp/ftp_directory_listing_parser_ls_unittest.cc",
1482 "ftp/ftp_directory_listing_parser_netware_unittest.cc",
1483 "ftp/ftp_directory_listing_parser_os2_unittest.cc",
1484 "ftp/ftp_directory_listing_parser_unittest.cc",
1485 "ftp/ftp_directory_listing_parser_unittest.h",
1486 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1487 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1488 "ftp/ftp_network_transaction_unittest.cc",
1489 "ftp/ftp_util_unittest.cc",
1490 "url_request/url_request_ftp_job_unittest.cc",
1491 ]
1492 }
1493
1494 if (!enable_built_in_dns) {
1495 sources -= [
1496 "dns/address_sorter_posix_unittest.cc",
1497 "dns/address_sorter_unittest.cc",
1498 ]
1499 }
1500
1501 # Always need use_v8_in_net to be 1 to run on Android, so just remove
1502 # net_unittest's dependency on v8 when using icu alternatives instead of
1503 # setting use_v8_in_net to 0.
1504 if (use_v8_in_net && !use_icu_alternatives_on_android) {
1505 deps += [ ":net_with_v8" ]
1506 } else {
1507 sources -= [
1508 "proxy/proxy_resolver_v8_tracing_unittest.cc",
1509 "proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc",
1510 "proxy/proxy_resolver_v8_unittest.cc",
1511 ]
1512 }
1513
1514 if (use_v8_in_net && !is_android) {
1515 deps += [
1516 ":net_browser_services",
1517 ":net_utility_services",
1518 "//mojo/environment:chromium",
1519 "//third_party/mojo/src/mojo/edk/system",
1520 ]
1521 } else {
1522 sources -= [
1523 "dns/host_resolver_mojo_unittest.cc",
1524 "dns/mojo_host_resolver_impl_unittest.cc",
1525 "proxy/mojo_proxy_resolver_factory_impl_unittest.cc",
1526 "proxy/mojo_proxy_resolver_impl_unittest.cc",
1527 "proxy/mojo_proxy_resolver_v8_tracing_bindings_unittest.cc",
1528 "proxy/proxy_resolver_factory_mojo_unittest.cc",
1529 "proxy/proxy_service_mojo_unittest.cc",
1530 ]
1531 }
1532
1533 if (!enable_mdns) {
1534 sources -= [
1535 "dns/mdns_cache_unittest.cc",
1536 "dns/mdns_client_unittest.cc",
1537 "dns/record_parsed_unittest.cc",
1538 "dns/record_rdata_unittest.cc",
1539 ]
1540 }
1541
1542 if (is_ios) {
1543 # TODO(GYP)
1544 # 'actions': [
1545 # {
1546 # 'action_name': 'copy_test_data',
1547 # 'variables': {
1548 # 'test_data_files': [
1549 # 'data/ssl/certificates/',
1550 # 'data/test.html',
1551 # 'data/url_request_unittest/',
1552 # ],
1553 # 'test_data_prefix': 'net',
1554 # },
1555 # 'includes': [ '../build/copy_test_data_ios.gypi' ],
1556 # },
1557 # ],
1558 sources -= [
1559 # TODO(droger): The following tests are disabled because the
1560 # implementation is missing or incomplete.
1561 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1562 "base/keygen_handler_unittest.cc",
1563 "disk_cache/backend_unittest.cc",
1564 "disk_cache/blockfile/block_files_unittest.cc",
1565
1566 # Need to read input data files.
1567 "filter/gzip_filter_unittest.cc",
1568 "socket/ssl_server_socket_unittest.cc",
1569 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1570
1571 # Need TestServer.
1572 "cert_net/cert_net_fetcher_impl_unittest.cc",
1573 "proxy/proxy_script_fetcher_impl_unittest.cc",
1574 "socket/ssl_client_socket_unittest.cc",
1575 "url_request/url_fetcher_impl_unittest.cc",
1576 "url_request/url_request_context_builder_unittest.cc",
1577
1578 # Needs GetAppOutput().
1579 "test/python_utils_unittest.cc",
1580
1581 # The following tests are disabled because they don't apply to
1582 # iOS.
1583 # OS is not "linux" or "freebsd" or "openbsd".
1584 "socket/unix_domain_client_socket_posix_unittest.cc",
1585 "socket/unix_domain_server_socket_posix_unittest.cc",
1586
1587 # See bug http://crbug.com/344533.
1588 "disk_cache/blockfile/index_table_v3_unittest.cc",
1589 ]
1590 }
1591
1592 if (is_android) {
1593 sources -= [
1594 # See bug http://crbug.com/344533.
1595 "disk_cache/blockfile/index_table_v3_unittest.cc",
1596 "dns/dns_config_service_posix_unittest.cc",
1597 ]
1598 deps += [
1599 ":net_test_jni_headers",
1600
1601 # TODO(mmenke): This depends on test_support_base, which depends on
1602 # icu. Figure out a way to remove that dependency.
1603 "//testing/android/native_test:native_test_native_code",
1604 ]
1605 set_sources_assignment_filter([])
1606 sources += [ "base/address_tracker_linux_unittest.cc" ]
1607 set_sources_assignment_filter(sources_assignment_filter)
1608 isolate_file = "net_unittests.isolate"
1609 }
1610
1611 if (use_icu_alternatives_on_android) {
1612 sources -= [
1613 "base/filename_util_unittest.cc",
1614 "base/net_util_icu_unittest.cc",
1615 ]
1616 deps -= [ "//base:i18n" ]
1617 }
1618
1619 # Symbols for crashes when running tests on swarming.
1620 if (symbol_level > 0) {
1621 if (is_win) {
1622 data += [ "$root_out_dir/net_unittests.exe.pdb" ]
1623 } else if (is_mac) {
1624 data += [ "$root_out_dir/net_unittests.dSYM/" ]
1625 }
1626 }
1627 }
1628 } # !is_android && !is_win && !is_mac
1629 1628
1630 executable("net_perftests") { 1629 executable("net_perftests") {
1631 testonly = true 1630 testonly = true
1632 sources = [ 1631 sources = [
1633 "base/mime_sniffer_perftest.cc", 1632 "base/mime_sniffer_perftest.cc",
1634 "cookies/cookie_monster_perftest.cc", 1633 "cookies/cookie_monster_perftest.cc",
1635 "disk_cache/blockfile/disk_cache_perftest.cc", 1634 "disk_cache/blockfile/disk_cache_perftest.cc",
1636 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc", 1635 "extras/sqlite/sqlite_persistent_cookie_store_perftest.cc",
1637 "proxy/proxy_resolver_perftest.cc", 1636 "proxy/proxy_resolver_perftest.cc",
1638 "udp/udp_socket_perftest.cc", 1637 "udp/udp_socket_perftest.cc",
(...skipping 15 matching lines...) Expand all
1654 if (enable_websockets) { 1653 if (enable_websockets) {
1655 sources += [ "websockets/websocket_frame_perftest.cc" ] 1654 sources += [ "websockets/websocket_frame_perftest.cc" ]
1656 } 1655 }
1657 1656
1658 if (use_v8_in_net) { 1657 if (use_v8_in_net) {
1659 deps += [ ":net_with_v8" ] 1658 deps += [ ":net_with_v8" ]
1660 } else { 1659 } else {
1661 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1660 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1662 } 1661 }
1663 } 1662 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698