| OLD | NEW |
| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 deps = [ | 589 deps = [ |
| 590 ":net", | 590 ":net", |
| 591 ":test_support", | 591 ":test_support", |
| 592 "//base", | 592 "//base", |
| 593 "//build/config/sanitizers:deps", | 593 "//build/config/sanitizers:deps", |
| 594 ] | 594 ] |
| 595 } | 595 } |
| 596 } | 596 } |
| 597 | 597 |
| 598 bundle_data("test_support_bundle_data") { |
| 599 testonly = true |
| 600 sources = [ |
| 601 "data/ssl/certificates", |
| 602 ] |
| 603 outputs = [ |
| 604 "{{bundle_resources_dir}}/" + |
| 605 "{{source_root_relative_dir}}/{{source_file_part}}", |
| 606 ] |
| 607 } |
| 608 |
| 598 source_set("test_support") { | 609 source_set("test_support") { |
| 599 testonly = true | 610 testonly = true |
| 600 sources = [ | 611 sources = [ |
| 601 "base/load_timing_info_test_util.cc", | 612 "base/load_timing_info_test_util.cc", |
| 602 "base/load_timing_info_test_util.h", | 613 "base/load_timing_info_test_util.h", |
| 603 "base/mock_file_stream.cc", | 614 "base/mock_file_stream.cc", |
| 604 "base/mock_file_stream.h", | 615 "base/mock_file_stream.h", |
| 605 "base/test_completion_callback.cc", | 616 "base/test_completion_callback.cc", |
| 606 "base/test_completion_callback.h", | 617 "base/test_completion_callback.h", |
| 607 "base/test_data_directory.cc", | 618 "base/test_data_directory.cc", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 ] | 704 ] |
| 694 } | 705 } |
| 695 | 706 |
| 696 configs += [ | 707 configs += [ |
| 697 "//build/config:precompiled_headers", | 708 "//build/config:precompiled_headers", |
| 698 | 709 |
| 699 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 710 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 700 "//build/config/compiler:no_size_t_to_int_warning", | 711 "//build/config/compiler:no_size_t_to_int_warning", |
| 701 ] | 712 ] |
| 702 | 713 |
| 714 deps = [ |
| 715 ":test_support_bundle_data", |
| 716 ] |
| 717 |
| 703 public_deps = [ | 718 public_deps = [ |
| 704 "//base", | 719 "//base", |
| 705 "//base/test:test_support", | 720 "//base/test:test_support", |
| 706 "//crypto", | 721 "//crypto", |
| 707 "//net", | 722 "//net", |
| 708 "//net/tools/tld_cleanup", | 723 "//net/tools/tld_cleanup", |
| 709 "//testing/gmock", | 724 "//testing/gmock", |
| 710 "//testing/gtest", | 725 "//testing/gtest", |
| 711 "//url", | 726 "//url", |
| 712 ] | 727 ] |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1365 ":net", | 1380 ":net", |
| 1366 ":simple_quic_tools", | 1381 ":simple_quic_tools", |
| 1367 "//base", | 1382 "//base", |
| 1368 "//build/config/sanitizers:deps", | 1383 "//build/config/sanitizers:deps", |
| 1369 "//third_party/boringssl", | 1384 "//third_party/boringssl", |
| 1370 "//third_party/protobuf:protobuf_lite", | 1385 "//third_party/protobuf:protobuf_lite", |
| 1371 ] | 1386 ] |
| 1372 } | 1387 } |
| 1373 } | 1388 } |
| 1374 | 1389 |
| 1390 bundle_data("net_unittests_bundle_data") { |
| 1391 testonly = true |
| 1392 sources = [ |
| 1393 "data/certificate_policies_unittest", |
| 1394 "data/name_constraints_unittest", |
| 1395 "data/parse_certificate_unittest", |
| 1396 "data/test.html", |
| 1397 "data/url_request_unittest", |
| 1398 "data/verify_certificate_chain_unittest", |
| 1399 "data/verify_name_match_unittest/names", |
| 1400 ] |
| 1401 outputs = [ |
| 1402 "{{bundle_resources_dir}}/" + |
| 1403 "{{source_root_relative_dir}}/{{source_file_part}}", |
| 1404 ] |
| 1405 } |
| 1406 |
| 1375 test("net_unittests") { | 1407 test("net_unittests") { |
| 1376 sources = gypi_values.net_test_sources | 1408 sources = gypi_values.net_test_sources |
| 1377 | 1409 |
| 1378 if (is_ios) { | 1410 if (is_ios) { |
| 1379 sources -= [ | 1411 sources -= [ |
| 1380 "websockets/websocket_stream_cookie_test.cc", | 1412 "websockets/websocket_stream_cookie_test.cc", |
| 1381 "websockets/websocket_stream_create_test_base.cc", | 1413 "websockets/websocket_stream_create_test_base.cc", |
| 1382 "websockets/websocket_stream_create_test_base.h", | 1414 "websockets/websocket_stream_create_test_base.h", |
| 1383 ] | 1415 ] |
| 1384 } | 1416 } |
| 1385 | 1417 |
| 1386 configs += [ | 1418 configs += [ |
| 1387 "//build/config:precompiled_headers", | 1419 "//build/config:precompiled_headers", |
| 1388 | 1420 |
| 1389 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1421 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1390 "//build/config/compiler:no_size_t_to_int_warning", | 1422 "//build/config/compiler:no_size_t_to_int_warning", |
| 1391 ] | 1423 ] |
| 1392 defines = [] | 1424 defines = [] |
| 1393 | 1425 |
| 1394 deps = [ | 1426 deps = [ |
| 1395 ":balsa", | 1427 ":balsa", |
| 1396 ":extras", | 1428 ":extras", |
| 1397 ":http_server", | 1429 ":http_server", |
| 1398 ":net", | 1430 ":net", |
| 1431 ":net_unittests_bundle_data", |
| 1399 ":simple_quic_tools", | 1432 ":simple_quic_tools", |
| 1400 ":stale_while_revalidate_experiment_domains", | 1433 ":stale_while_revalidate_experiment_domains", |
| 1401 ":test_support", | 1434 ":test_support", |
| 1402 "//base", | 1435 "//base", |
| 1403 "//base:i18n", | 1436 "//base:i18n", |
| 1404 "//base/third_party/dynamic_annotations", | 1437 "//base/third_party/dynamic_annotations", |
| 1405 "//crypto", | 1438 "//crypto", |
| 1406 "//crypto:platform", | 1439 "//crypto:platform", |
| 1407 "//crypto:test_support", | 1440 "//crypto:test_support", |
| 1408 "//net/base/registry_controlled_domains", | 1441 "//net/base/registry_controlled_domains", |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 if (!enable_mdns) { | 1644 if (!enable_mdns) { |
| 1612 sources -= [ | 1645 sources -= [ |
| 1613 "dns/mdns_cache_unittest.cc", | 1646 "dns/mdns_cache_unittest.cc", |
| 1614 "dns/mdns_client_unittest.cc", | 1647 "dns/mdns_client_unittest.cc", |
| 1615 "dns/record_parsed_unittest.cc", | 1648 "dns/record_parsed_unittest.cc", |
| 1616 "dns/record_rdata_unittest.cc", | 1649 "dns/record_rdata_unittest.cc", |
| 1617 ] | 1650 ] |
| 1618 } | 1651 } |
| 1619 | 1652 |
| 1620 if (is_ios) { | 1653 if (is_ios) { |
| 1621 # TODO(GYP) | |
| 1622 # 'actions': [ | |
| 1623 # { | |
| 1624 # 'action_name': 'copy_test_data', | |
| 1625 # 'variables': { | |
| 1626 # 'test_data_files': [ | |
| 1627 # 'data/certificate_policies_unittest/', | |
| 1628 # 'data/name_constraints_unittest/', | |
| 1629 # 'data/parse_certificate_unittest/', | |
| 1630 # 'data/ssl/certificates/', | |
| 1631 # 'data/test.html', | |
| 1632 # 'data/url_request_unittest/', | |
| 1633 # 'data/verify_certificate_chain_unittest/', | |
| 1634 # 'data/verify_name_match_unittest/names/', | |
| 1635 # ], | |
| 1636 # 'test_data_prefix': 'net', | |
| 1637 # }, | |
| 1638 # 'includes': [ '../build/copy_test_data_ios.gypi' ], | |
| 1639 # }, | |
| 1640 # ], | |
| 1641 sources -= [ | 1654 sources -= [ |
| 1642 # TODO(droger): The following tests are disabled because the | 1655 # TODO(droger): The following tests are disabled because the |
| 1643 # implementation is missing or incomplete. | 1656 # implementation is missing or incomplete. |
| 1644 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. | 1657 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. |
| 1645 "base/keygen_handler_unittest.cc", | 1658 "base/keygen_handler_unittest.cc", |
| 1646 "disk_cache/backend_unittest.cc", | 1659 "disk_cache/backend_unittest.cc", |
| 1647 "disk_cache/blockfile/block_files_unittest.cc", | 1660 "disk_cache/blockfile/block_files_unittest.cc", |
| 1648 | 1661 |
| 1649 # Need to read input data files. | 1662 # Need to read input data files. |
| 1650 "filter/brotli_filter_unittest.cc", | 1663 "filter/brotli_filter_unittest.cc", |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 "//base", | 1944 "//base", |
| 1932 "//net", | 1945 "//net", |
| 1933 ] | 1946 ] |
| 1934 } | 1947 } |
| 1935 | 1948 |
| 1936 buildflag_header("features") { | 1949 buildflag_header("features") { |
| 1937 header = "net_features.h" | 1950 header = "net_features.h" |
| 1938 | 1951 |
| 1939 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] | 1952 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] |
| 1940 } | 1953 } |
| OLD | NEW |