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

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