build: Remove tests and minimize

This commit is contained in:
klzgrad 2021-05-16 21:03:12 +08:00
parent d122069a59
commit be87960d0f
13 changed files with 6 additions and 8992 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -29,24 +29,6 @@ static_library("version_info") {
]
}
# Isolate the //ui/base dependency in this target.
static_library("version_string") {
sources = [
"version_string.cc",
"version_string.h",
]
deps = [
":version_info",
"//components/strings",
]
if (use_unofficial_version_number) {
defines = [ "USE_UNOFFICIAL_VERSION_NUMBER" ]
deps += [ "//ui/base" ]
}
}
source_set("channel") {
sources = [ "channel.h" ]
}

View File

@ -5,7 +5,6 @@
import("//build/buildflag_header.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//crypto/features.gni")
import("//testing/test.gni")
buildflag_header("buildflags") {
header = "crypto_buildflags.h"
@ -144,72 +143,12 @@ component("crypto") {
defines = [ "CRYPTO_IMPLEMENTATION" ]
}
test("crypto_unittests") {
sources = [
"aead_unittest.cc",
"ec_private_key_unittest.cc",
"ec_signature_creator_unittest.cc",
"encryptor_unittest.cc",
"hmac_unittest.cc",
"p224_spake_unittest.cc",
"random_unittest.cc",
"rsa_private_key_unittest.cc",
"secure_hash_unittest.cc",
"sha2_unittest.cc",
"signature_creator_unittest.cc",
"signature_verifier_unittest.cc",
"symmetric_key_unittest.cc",
"unexportable_key_unittest.cc",
]
# Some files are built when NSS is used for the platform certificate library.
if (use_nss_certs) {
sources += [
"nss_key_util_unittest.cc",
"nss_util_unittest.cc",
]
config("platform_config") {
if (use_nss_certs && is_clang) {
# There is a broken header guard in /usr/include/nss/secmod.h:
# https://bugzilla.mozilla.org/show_bug.cgi?id=884072
cflags = [ "-Wno-header-guard" ]
}
deps = [
":crypto",
":platform",
":test_support",
"//base",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
static_library("test_support") {
testonly = true
sources = [
"scoped_mock_unexportable_key_provider.cc",
"scoped_mock_unexportable_key_provider.h",
]
if (use_nss_certs) {
sources += [
"scoped_test_nss_db.cc",
"scoped_test_nss_db.h",
]
}
if (is_chromeos_ash) {
sources += [
"scoped_test_nss_chromeos_user.cc",
"scoped_test_nss_chromeos_user.h",
"scoped_test_system_nss_key_slot.cc",
"scoped_test_system_nss_key_slot.h",
]
}
deps = [
":crypto",
":platform",
"//base",
]
}
# This target historically abstracted between different cryptography and TLS

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,6 @@
# found in the LICENSE file.
import("//net/features.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni")
enable_built_in_dns = !is_ios
@ -17,12 +15,7 @@ source_set("dns") {
# Internals only intended for use inside network stack (and tests).
friend = [
"//chrome/browser:test_support",
"//chrome/test/*",
"//components/certificate_transparency:unit_tests",
"//components/cronet/*",
"//net/*",
"//services/network/*",
]
public = []
@ -187,30 +180,7 @@ source_set("host_resolver") {
# Restricted access so we can keep track of all usage external to the
# network stack and network service.
friend = [
# chromecast/browser/url_request_context_factory.cc
# URLRequestContext creation for chromecast.
"//chromecast/browser",
# URLRequestContext and HttpNetworkSession::Context creation for iOS.
"//ios/components/io_thread",
"//ios/web/shell",
"//ios/web_view:*",
# Tests and test support.
"//chrome/browser:test_support",
"//chrome/test/*",
"//components/grpc_support/test:unit_tests",
"//content/shell:content_shell_lib",
"//content/test:*",
# Stand-alone tools.
"//google_apis/gcm:mcs_probe",
# Network stack/service.
"//components/certificate_transparency/*",
"//components/cronet/*",
"//net/*",
"//services/network/*",
]
sources = [
@ -250,16 +220,7 @@ source_set("host_resolver_manager") {
# Restricted access so we can keep track of all usage external to the
# network stack and network service.
friend = [
# chromecast/browser/url_request_context_factory.cc
# URLRequestContext creation for chromecast.
"//chromecast/browser",
# Tests and test support.
"//components/cronet:cronet_common_unittests",
# Network stack/service.
"//net/*",
"//services/network/*",
]
sources = [ "host_resolver_manager.h" ]
@ -289,24 +250,7 @@ source_set("dns_client") {
# Restricted access so we can keep track of all usage external to the
# network stack.
friend = [
# chrome/browser/local_discovery/service_discovery_client_impl.cc
# Result parsing utilities for parsing results read through MdnsClient.
# TODO(crbug.com/874662): Remove once migrated to network service.
"//chrome/browser",
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.cc
# Result parsing for results read through MdnsClient.
# TODO(crbug.com/902531): Remove once migrated to network service.
"//chrome/browser/chromeos",
# Tests and test support
"//chrome/browser:test_support",
"//chrome/test/*",
# Network stack/service
"//components/certificate_transparency/*",
"//net/*",
"//services/network/*",
]
sources = [
@ -342,29 +286,7 @@ source_set("mdns_client") {
# Restricted access so we can keep track of all usage external to the
# network stack.
friend = [
# chrome/browser/local_discovery/service_discovery_client_mdns.h
# chrome/browser/local_discovery/service_discovery_client_impl.h
# Makes MDNS queries using MDnsClient.
# TODO(crbug.com/874662): Remove once migrated to network service.
"//chrome/browser",
# chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
# Creates MDnsClient instance and passes to ServiceDiscoveryClientImpl.
# TODO(crbug.com/874662): Remove once discovery client migrated.
"//chrome/tools/service_discovery_sniffer",
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.h
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.cc
# Makes MDNS queries using MDnsClient.
# TODO(crbug.com/902531): Remove once migrated to network service.
"//chrome/browser/chromeos",
# Tests and test support
"//chrome/browser:test_support",
# Network stack/service
"//net/*",
"//services/network/*",
]
public = []
@ -381,232 +303,3 @@ source_set("mdns_client") {
]
public_deps = [ "//net:net_public_deps" ]
}
source_set("tests") {
testonly = true
sources = [
"address_info_unittest.cc",
"context_host_resolver_unittest.cc",
"dns_alias_utility_unittest.cc",
"dns_config_service_unittest.cc",
"dns_hosts_unittest.cc",
"dns_query_unittest.cc",
"dns_response_result_extractor_unittest.cc",
"dns_response_unittest.cc",
"dns_socket_allocator_unittest.cc",
"dns_transaction_unittest.cc",
"dns_udp_tracker_unittest.cc",
"dns_util_unittest.cc",
"host_cache_unittest.cc",
"host_resolver_manager_unittest.cc",
"https_record_rdata_unittest.cc",
"httpssvc_metrics_unittest.cc",
"mapped_host_resolver_unittest.cc",
"nsswitch_reader_unittest.cc",
"record_parsed_unittest.cc",
"record_rdata_unittest.cc",
"resolve_context_unittest.cc",
"serial_worker_unittest.cc",
"system_dns_config_change_notifier_unittest.cc",
]
if (is_win) {
sources += [ "dns_config_service_win_unittest.cc" ]
}
if (is_android) {
sources += [ "dns_config_service_android_unittest.cc" ]
} else if (is_linux) {
sources += [ "dns_config_service_linux_unittest.cc" ]
} else if (is_posix) {
sources += [ "dns_config_service_posix_unittest.cc" ]
}
if (enable_built_in_dns) {
sources += [
"address_sorter_unittest.cc",
"dns_client_unittest.cc",
]
if (is_posix || is_fuchsia) {
sources += [ "address_sorter_posix_unittest.cc" ]
}
}
if (enable_mdns) {
sources += [
"mdns_cache_unittest.cc",
"mdns_client_unittest.cc",
]
}
deps = [
"//base",
"//net",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("test_support") {
visibility = [ "//net:test_support" ]
testonly = true
sources = [
"dns_test_util.cc",
"host_resolver_results_test_util.cc",
"mock_host_resolver.cc",
]
public = [
"dns_test_util.h",
"host_resolver_results_test_util.h",
"mock_host_resolver.h",
]
if (enable_mdns) {
sources += [
"mock_mdns_client.cc",
"mock_mdns_socket_factory.cc",
]
public += [
"mock_mdns_client.h",
"mock_mdns_socket_factory.h",
]
}
deps = [
"//base",
"//net",
"//testing/gmock",
"//testing/gtest",
]
}
if (use_fuzzing_engine) {
# fuzzer_test targets are no-op when |use_fuzzing_engine| is false. Fuzzer
# support targets should be disabled too.
source_set("fuzzer_test_support") {
testonly = true
sources = [
"fuzzed_host_resolver_util.cc",
"fuzzed_host_resolver_util.h",
]
deps = [
"//base",
"//base/test:test_support",
"//net",
]
}
}
proto_library("host_cache_fuzzer_proto") {
proto_in_dir = "//"
sources = [ "host_cache_fuzzer.proto" ]
deps = [ "//testing/libfuzzer/proto:json_proto" ]
}
fuzzer_test("net_dns_host_cache_fuzzer") {
sources = [ "host_cache_fuzzer.cc" ]
deps = [
":host_cache_fuzzer_proto",
"//base",
"//net",
"//net:net_fuzzer_test_support",
"//testing/libfuzzer/proto:json_proto",
"//testing/libfuzzer/proto:json_proto_converter",
"//third_party/libprotobuf-mutator",
]
dict = "//testing/libfuzzer/fuzzers/dicts/json.dict"
}
fuzzer_test("net_dns_hosts_parse_fuzzer") {
sources = [ "dns_hosts_parse_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
}
fuzzer_test("net_dns_https_record_rdata_fuzzer") {
sources = [ "https_record_rdata_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
}
fuzzer_test("net_dns_integrity_record_fuzzer") {
sources = [ "integrity_record_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
}
fuzzer_test("net_dns_nsswitch_reader_fuzzer") {
sources = [ "nsswitch_reader_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_nsswitch_reader_fuzzer.dict"
}
fuzzer_test("net_dns_record_fuzzer") {
sources = [ "dns_record_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
}
fuzzer_test("net_dns_query_parse_fuzzer") {
sources = [ "dns_query_parse_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
}
fuzzer_test("net_dns_response_fuzzer") {
sources = [ "dns_response_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
}
fuzzer_test("net_host_resolver_manager_fuzzer") {
sources = [ "host_resolver_manager_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
"//net:test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_host_resolver_manager_fuzzer.dict"
}
if (is_win) {
fuzzer_test("net_dns_parse_domain_ascii_win_fuzzer") {
sources = [ "dns_parse_domain_ascii_win_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
dict = "//net/data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
seed_corpus = "//net/data/fuzzer_data/dns_parse_domain_ascii_win_fuzzer"
}
}

View File

@ -59,32 +59,3 @@ source_set("public") {
public_deps = [ "//net:net_public_deps" ]
}
if (is_android) {
java_cpp_enum("secure_dns_mode_generated_enum") {
sources = [ "secure_dns_mode.h" ]
}
}
source_set("tests") {
testonly = true
sources = [
"dns_over_https_config_unittest.cc",
"dns_over_https_server_config_unittest.cc",
"doh_provider_entry_unittest.cc",
]
if (is_posix && !is_android) {
sources += [ "resolv_reader_unittest.cc" ]
}
if (is_win) {
sources += [ "win_dns_system_settings_unittest.cc" ]
}
deps = [
"//net",
"//testing/gmock",
"//testing/gtest",
]
}

View File

@ -3,7 +3,6 @@
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni")
config("quiche_config") {
@ -701,914 +700,3 @@ proto_library("net_quic_test_tools_proto") {
extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
}
if (is_linux || is_chromeos) {
source_set("epoll_server_core") {
sources = [
"src/epoll_server/platform/api/epoll_bug.h",
"src/epoll_server/platform/api/epoll_export.h",
"src/epoll_server/platform/api/epoll_logging.h",
"src/epoll_server/platform/api/epoll_ptr_util.h",
"src/epoll_server/platform/api/epoll_thread.h",
"src/epoll_server/platform/api/epoll_time.h",
"src/epoll_server/simple_epoll_server.cc",
"src/epoll_server/simple_epoll_server.h",
]
deps = [
"//base",
"//net",
]
}
source_set("epoll_quic_tools_core") {
testonly = true
sources = [
"src/quic/core/quic_default_packet_writer.cc",
"src/quic/core/quic_default_packet_writer.h",
"src/quic/core/quic_epoll_alarm_factory.cc",
"src/quic/core/quic_epoll_alarm_factory.h",
"src/quic/core/quic_epoll_connection_helper.cc",
"src/quic/core/quic_epoll_connection_helper.h",
"src/quic/core/quic_packet_reader.cc",
"src/quic/core/quic_packet_reader.h",
"src/quic/core/quic_udp_socket.h",
"src/quic/core/quic_udp_socket_posix.cc",
"src/quic/platform/api/quic_epoll.h",
"src/quic/platform/api/quic_stream_buffer_allocator.h",
"src/quic/platform/api/quic_udp_socket_platform_api.h",
"src/quic/tools/quic_client.cc",
"src/quic/tools/quic_client.h",
"src/quic/tools/quic_client_epoll_network_helper.cc",
"src/quic/tools/quic_client_epoll_network_helper.h",
"src/quic/tools/quic_server.cc",
"src/quic/tools/quic_server.h",
]
deps = [
"//base",
"//net",
"//net:epoll_server",
"//net:simple_quic_tools",
"//third_party/boringssl",
]
}
executable("epoll_quic_client") {
testonly = true
sources = [
"src/quic/tools/quic_client_bin.cc",
"src/quic/tools/quic_epoll_client_factory.cc",
"src/quic/tools/quic_epoll_client_factory.h",
"src/quic/tools/quic_toy_client.cc",
"src/quic/tools/quic_toy_client.h",
]
deps = [
"//base",
"//net",
"//net:epoll_quic_tools",
"//net:epoll_server",
"//net:quic_test_tools",
"//net:simple_quic_tools",
"//third_party/boringssl",
]
}
executable("epoll_quic_server") {
testonly = true
sources = [
"src/quic/tools/quic_epoll_server_factory.cc",
"src/quic/tools/quic_epoll_server_factory.h",
"src/quic/tools/quic_server_bin.cc",
"src/quic/tools/quic_toy_server.cc",
"src/quic/tools/quic_toy_server.h",
]
deps = [
"//base",
"//net",
"//net:epoll_quic_tools",
"//net:epoll_server",
"//net:simple_quic_tools",
"//third_party/boringssl",
]
}
executable("quic_client_interop_test") {
testonly = true
sources = [ "src/quic/tools/quic_client_interop_test_bin.cc" ]
deps = [
"//net",
"//net:epoll_quic_tools",
"//net:quic_test_tools",
"//net:simple_quic_tools",
]
}
source_set("masque_tools") {
testonly = true
sources = [
"src/quic/masque/masque_client_session.cc",
"src/quic/masque/masque_client_session.h",
"src/quic/masque/masque_client_tools.cc",
"src/quic/masque/masque_client_tools.h",
"src/quic/masque/masque_compression_engine.cc",
"src/quic/masque/masque_compression_engine.h",
"src/quic/masque/masque_dispatcher.cc",
"src/quic/masque/masque_dispatcher.h",
"src/quic/masque/masque_encapsulated_client_session.cc",
"src/quic/masque/masque_encapsulated_client_session.h",
"src/quic/masque/masque_encapsulated_epoll_client.cc",
"src/quic/masque/masque_encapsulated_epoll_client.h",
"src/quic/masque/masque_epoll_client.cc",
"src/quic/masque/masque_epoll_client.h",
"src/quic/masque/masque_epoll_server.cc",
"src/quic/masque/masque_epoll_server.h",
"src/quic/masque/masque_server_backend.cc",
"src/quic/masque/masque_server_backend.h",
"src/quic/masque/masque_server_session.cc",
"src/quic/masque/masque_server_session.h",
"src/quic/masque/masque_utils.cc",
"src/quic/masque/masque_utils.h",
]
deps = [
"//net",
"//net:epoll_quic_tools",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("masque_client") {
testonly = true
sources = [ "src/quic/masque/masque_client_bin.cc" ]
deps = [
":masque_tools",
"//net",
"//net:epoll_quic_tools",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("masque_server") {
testonly = true
sources = [ "src/quic/masque/masque_server_bin.cc" ]
deps = [
":masque_tools",
"//net",
"//net:epoll_quic_tools",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
}
source_set("epoll_server_test_tools_core") {
testonly = true
sources = [
"src/epoll_server/platform/api/epoll_address_test_utils.h",
"src/epoll_server/platform/api/epoll_expect_bug.h",
"src/epoll_server/platform/api/epoll_test.h",
]
deps = [
"//base",
"//net",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("quiche_test_tools_core") {
testonly = true
sources = [
"src/common/platform/api/quiche_test.h",
"src/common/platform/api/quiche_test_helpers.h",
"src/common/test_tools/quiche_test_utils.cc",
"src/common/test_tools/quiche_test_utils.h",
]
deps = [
"//net",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("quiche_file_utils") {
sources = [
"src/common/platform/api/quiche_file_utils.cc",
"src/common/platform/api/quiche_file_utils.h",
"src/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc",
"src/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.h",
]
configs += [ ":quiche_config" ]
deps = [ "//base" ]
}
source_set("quic_test_tools_core") {
testonly = true
sources = [
"overrides/quiche_platform_impl/quiche_epoll_test_tools_impl.h",
"src/common/platform/api/quiche_epoll_test_tools.h",
"src/quic/core/quic_trace_visitor.cc",
"src/quic/core/quic_trace_visitor.h",
"src/quic/platform/api/quic_expect_bug.h",
"src/quic/platform/api/quic_mock_log.h",
"src/quic/platform/api/quic_port_utils.h",
"src/quic/platform/api/quic_test.h",
"src/quic/platform/api/quic_test_loopback.cc",
"src/quic/platform/api/quic_test_loopback.h",
"src/quic/platform/api/quic_test_output.h",
"src/quic/test_tools/crypto_test_utils.cc",
"src/quic/test_tools/crypto_test_utils.h",
"src/quic/test_tools/failing_proof_source.cc",
"src/quic/test_tools/failing_proof_source.h",
"src/quic/test_tools/fake_proof_source.cc",
"src/quic/test_tools/fake_proof_source.h",
"src/quic/test_tools/first_flight.cc",
"src/quic/test_tools/first_flight.h",
"src/quic/test_tools/mock_clock.cc",
"src/quic/test_tools/mock_clock.h",
"src/quic/test_tools/mock_quic_client_promised_info.cc",
"src/quic/test_tools/mock_quic_client_promised_info.h",
"src/quic/test_tools/mock_quic_dispatcher.cc",
"src/quic/test_tools/mock_quic_dispatcher.h",
"src/quic/test_tools/mock_quic_session_visitor.cc",
"src/quic/test_tools/mock_quic_session_visitor.h",
"src/quic/test_tools/mock_quic_spdy_client_stream.cc",
"src/quic/test_tools/mock_quic_spdy_client_stream.h",
"src/quic/test_tools/mock_random.cc",
"src/quic/test_tools/mock_random.h",
"src/quic/test_tools/qpack/qpack_decoder_test_utils.cc",
"src/quic/test_tools/qpack/qpack_decoder_test_utils.h",
"src/quic/test_tools/qpack/qpack_encoder_peer.cc",
"src/quic/test_tools/qpack/qpack_encoder_peer.h",
"src/quic/test_tools/qpack/qpack_encoder_test_utils.cc",
"src/quic/test_tools/qpack/qpack_encoder_test_utils.h",
"src/quic/test_tools/qpack/qpack_offline_decoder.cc",
"src/quic/test_tools/qpack/qpack_offline_decoder.h",
"src/quic/test_tools/qpack/qpack_test_utils.cc",
"src/quic/test_tools/qpack/qpack_test_utils.h",
"src/quic/test_tools/quic_buffered_packet_store_peer.cc",
"src/quic/test_tools/quic_buffered_packet_store_peer.h",
"src/quic/test_tools/quic_client_promised_info_peer.cc",
"src/quic/test_tools/quic_client_promised_info_peer.h",
"src/quic/test_tools/quic_coalesced_packet_peer.cc",
"src/quic/test_tools/quic_coalesced_packet_peer.h",
"src/quic/test_tools/quic_config_peer.cc",
"src/quic/test_tools/quic_config_peer.h",
"src/quic/test_tools/quic_connection_peer.cc",
"src/quic/test_tools/quic_connection_peer.h",
"src/quic/test_tools/quic_crypto_server_config_peer.cc",
"src/quic/test_tools/quic_crypto_server_config_peer.h",
"src/quic/test_tools/quic_dispatcher_peer.cc",
"src/quic/test_tools/quic_dispatcher_peer.h",
"src/quic/test_tools/quic_flow_controller_peer.cc",
"src/quic/test_tools/quic_flow_controller_peer.h",
"src/quic/test_tools/quic_framer_peer.cc",
"src/quic/test_tools/quic_framer_peer.h",
"src/quic/test_tools/quic_interval_deque_peer.h",
"src/quic/test_tools/quic_packet_creator_peer.cc",
"src/quic/test_tools/quic_packet_creator_peer.h",
"src/quic/test_tools/quic_path_validator_peer.cc",
"src/quic/test_tools/quic_path_validator_peer.h",
"src/quic/test_tools/quic_sent_packet_manager_peer.cc",
"src/quic/test_tools/quic_sent_packet_manager_peer.h",
"src/quic/test_tools/quic_server_session_base_peer.h",
"src/quic/test_tools/quic_session_peer.cc",
"src/quic/test_tools/quic_session_peer.h",
"src/quic/test_tools/quic_spdy_session_peer.cc",
"src/quic/test_tools/quic_spdy_session_peer.h",
"src/quic/test_tools/quic_spdy_stream_peer.cc",
"src/quic/test_tools/quic_spdy_stream_peer.h",
"src/quic/test_tools/quic_stream_id_manager_peer.cc",
"src/quic/test_tools/quic_stream_id_manager_peer.h",
"src/quic/test_tools/quic_stream_peer.cc",
"src/quic/test_tools/quic_stream_peer.h",
"src/quic/test_tools/quic_stream_send_buffer_peer.cc",
"src/quic/test_tools/quic_stream_send_buffer_peer.h",
"src/quic/test_tools/quic_stream_sequencer_buffer_peer.cc",
"src/quic/test_tools/quic_stream_sequencer_buffer_peer.h",
"src/quic/test_tools/quic_stream_sequencer_peer.cc",
"src/quic/test_tools/quic_stream_sequencer_peer.h",
"src/quic/test_tools/quic_sustained_bandwidth_recorder_peer.cc",
"src/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h",
"src/quic/test_tools/quic_test_backend.cc",
"src/quic/test_tools/quic_test_backend.h",
"src/quic/test_tools/quic_test_utils.cc",
"src/quic/test_tools/quic_test_utils.h",
"src/quic/test_tools/quic_time_wait_list_manager_peer.cc",
"src/quic/test_tools/quic_time_wait_list_manager_peer.h",
"src/quic/test_tools/quic_unacked_packet_map_peer.cc",
"src/quic/test_tools/quic_unacked_packet_map_peer.h",
"src/quic/test_tools/rtt_stats_peer.cc",
"src/quic/test_tools/rtt_stats_peer.h",
"src/quic/test_tools/send_algorithm_test_utils.cc",
"src/quic/test_tools/send_algorithm_test_utils.h",
"src/quic/test_tools/simple_data_producer.cc",
"src/quic/test_tools/simple_data_producer.h",
"src/quic/test_tools/simple_quic_framer.cc",
"src/quic/test_tools/simple_quic_framer.h",
"src/quic/test_tools/simple_session_cache.cc",
"src/quic/test_tools/simple_session_cache.h",
"src/quic/test_tools/simple_session_notifier.cc",
"src/quic/test_tools/simple_session_notifier.h",
"src/quic/test_tools/simulator/actor.cc",
"src/quic/test_tools/simulator/actor.h",
"src/quic/test_tools/simulator/alarm_factory.cc",
"src/quic/test_tools/simulator/alarm_factory.h",
"src/quic/test_tools/simulator/link.cc",
"src/quic/test_tools/simulator/link.h",
"src/quic/test_tools/simulator/packet_filter.cc",
"src/quic/test_tools/simulator/packet_filter.h",
"src/quic/test_tools/simulator/port.cc",
"src/quic/test_tools/simulator/port.h",
"src/quic/test_tools/simulator/queue.cc",
"src/quic/test_tools/simulator/queue.h",
"src/quic/test_tools/simulator/quic_endpoint.cc",
"src/quic/test_tools/simulator/quic_endpoint.h",
"src/quic/test_tools/simulator/quic_endpoint_base.cc",
"src/quic/test_tools/simulator/quic_endpoint_base.h",
"src/quic/test_tools/simulator/simulator.cc",
"src/quic/test_tools/simulator/simulator.h",
"src/quic/test_tools/simulator/switch.cc",
"src/quic/test_tools/simulator/switch.h",
"src/quic/test_tools/simulator/traffic_policer.cc",
"src/quic/test_tools/simulator/traffic_policer.h",
"src/quic/test_tools/test_certificates.cc",
"src/quic/test_tools/test_certificates.h",
"src/quic/test_tools/web_transport_resets_backend.cc",
"src/quic/test_tools/web_transport_resets_backend.h",
"src/quic/tools/quic_tcp_like_trace_converter.cc",
"src/quic/tools/quic_tcp_like_trace_converter.h",
]
deps = [
":quiche_file_utils",
":quiche_test_tools_core",
"//base",
"//crypto:test_support",
"//net",
"//net:quiche_test_tools",
"//net:simple_quic_tools",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
"//third_party/quic_trace:quic_trace_proto",
]
if (is_linux || is_chromeos) {
sources += [
"src/epoll_server/fake_simple_epoll_server.cc",
"src/epoll_server/fake_simple_epoll_server.h",
"src/quic/test_tools/bad_packet_writer.cc",
"src/quic/test_tools/bad_packet_writer.h",
"src/quic/test_tools/limited_mtu_test_writer.cc",
"src/quic/test_tools/limited_mtu_test_writer.h",
"src/quic/test_tools/packet_dropping_test_writer.cc",
"src/quic/test_tools/packet_dropping_test_writer.h",
"src/quic/test_tools/packet_reordering_writer.cc",
"src/quic/test_tools/packet_reordering_writer.h",
"src/quic/test_tools/quic_client_peer.cc",
"src/quic/test_tools/quic_client_peer.h",
"src/quic/test_tools/quic_server_peer.cc",
"src/quic/test_tools/quic_server_peer.h",
"src/quic/test_tools/quic_test_client.cc",
"src/quic/test_tools/quic_test_client.h",
"src/quic/test_tools/quic_test_server.cc",
"src/quic/test_tools/quic_test_server.h",
"src/quic/test_tools/server_thread.cc",
"src/quic/test_tools/server_thread.h",
]
deps += [
"//net:epoll_quic_tools",
"//net:epoll_server",
]
}
}
source_set("simple_quic_tools_core") {
sources = [
"overrides/quiche_platform_impl/quiche_system_event_loop_impl.h",
"src/common/platform/api/quiche_system_event_loop.h",
"src/quic/core/chlo_extractor.cc",
"src/quic/core/chlo_extractor.h",
"src/quic/core/http/quic_spdy_server_stream_base.cc",
"src/quic/core/http/quic_spdy_server_stream_base.h",
"src/quic/core/quic_buffered_packet_store.cc",
"src/quic/core/quic_buffered_packet_store.h",
"src/quic/core/quic_dispatcher.cc",
"src/quic/core/quic_dispatcher.h",
"src/quic/core/quic_packet_writer_wrapper.cc",
"src/quic/core/quic_packet_writer_wrapper.h",
"src/quic/core/quic_process_packet_interface.h",
"src/quic/core/quic_time_wait_list_manager.cc",
"src/quic/core/quic_time_wait_list_manager.h",
"src/quic/core/tls_chlo_extractor.cc",
"src/quic/core/tls_chlo_extractor.h",
"src/quic/platform/api/quic_default_proof_providers.h",
"src/quic/tools/fake_proof_verifier.h",
"src/quic/tools/quic_backend_response.cc",
"src/quic/tools/quic_backend_response.h",
"src/quic/tools/quic_client_base.cc",
"src/quic/tools/quic_client_base.h",
"src/quic/tools/quic_memory_cache_backend.cc",
"src/quic/tools/quic_memory_cache_backend.h",
"src/quic/tools/quic_simple_client_session.cc",
"src/quic/tools/quic_simple_client_session.h",
"src/quic/tools/quic_simple_client_stream.cc",
"src/quic/tools/quic_simple_client_stream.h",
"src/quic/tools/quic_simple_crypto_server_stream_helper.cc",
"src/quic/tools/quic_simple_crypto_server_stream_helper.h",
"src/quic/tools/quic_simple_dispatcher.cc",
"src/quic/tools/quic_simple_dispatcher.h",
"src/quic/tools/quic_simple_server_backend.h",
"src/quic/tools/quic_simple_server_session.cc",
"src/quic/tools/quic_simple_server_session.h",
"src/quic/tools/quic_simple_server_stream.cc",
"src/quic/tools/quic_simple_server_stream.h",
"src/quic/tools/quic_spdy_client_base.cc",
"src/quic/tools/quic_spdy_client_base.h",
"src/quic/tools/quic_spdy_server_base.h",
"src/quic/tools/quic_url.cc",
"src/quic/tools/quic_url.h",
"src/quic/tools/simple_ticket_crypter.cc",
"src/quic/tools/simple_ticket_crypter.h",
]
deps = [
":quiche_file_utils",
"//base",
"//base/third_party/dynamic_annotations",
"//net",
"//third_party/protobuf:protobuf_lite",
"//url",
]
}
source_set("quic_client_core") {
testonly = true
sources = [
"src/quic/tools/quic_toy_client.cc",
"src/quic/tools/quic_toy_client.h",
]
deps = [
"//net",
"//net:quic_test_tools",
"//net:simple_quic_tools",
]
}
source_set("quic_server_core") {
sources = [
"src/quic/tools/quic_toy_server.cc",
"src/quic/tools/quic_toy_server.h",
]
deps = [
"//net",
"//net:simple_quic_tools",
]
}
if (!is_ios) {
executable("quic_packet_printer") {
sources = [ "src/quic/tools/quic_packet_printer_bin.cc" ]
deps = [
":quiche_file_utils",
"//base",
"//build/win:default_exe_manifest",
"//net",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("quic_crypto_message_printer") {
sources = [ "src/quic/core/crypto/crypto_message_printer_bin.cc" ]
deps = [
"//base",
"//build/win:default_exe_manifest",
"//net",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("quic_reject_reason_decoder") {
sources = [ "src/quic/tools/quic_reject_reason_decoder_bin.cc" ]
deps = [
"//base",
"//build/win:default_exe_manifest",
"//net",
"//net:simple_quic_tools",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("qpack_offline_decoder") {
testonly = true
sources = [ "src/quic/core/qpack/qpack_offline_decoder_bin.cc" ]
deps = [
"//base",
"//net",
"//net:quic_test_tools",
"//net:simple_quic_tools",
"//testing/gmock",
]
}
}
source_set("quiche_tests") {
testonly = true
sources = [
# TODO(bnc): Include in tests after test data files are added to QUICHE.
# "src/common/platform/api/quiche_file_utils_test.cc",
"src/common/platform/api/quiche_mem_slice_test.cc",
"src/common/platform/api/quiche_reference_counted_test.cc",
"src/common/platform/api/quiche_time_utils_test.cc",
"src/common/platform/api/quiche_url_utils_test.cc",
"src/common/quiche_circular_deque_test.cc",
"src/common/quiche_data_reader_test.cc",
"src/common/quiche_data_writer_test.cc",
"src/common/quiche_endian_test.cc",
"src/common/quiche_linked_hash_map_test.cc",
"src/common/quiche_mem_slice_storage_test.cc",
"src/common/quiche_text_utils_test.cc",
"src/common/simple_buffer_allocator_test.cc",
"src/http2/adapter/event_forwarder_test.cc",
"src/http2/adapter/header_validator_test.cc",
"src/http2/adapter/oghttp2_adapter_test.cc",
"src/http2/adapter/oghttp2_session_test.cc",
"src/http2/adapter/test_frame_sequence.cc",
"src/http2/adapter/test_frame_sequence.h",
"src/http2/adapter/test_utils.cc",
"src/http2/adapter/test_utils.h",
"src/http2/adapter/window_manager_test.cc",
"src/http2/core/priority_write_scheduler_test.cc",
"src/http2/decoder/decode_buffer_test.cc",
"src/http2/decoder/decode_http2_structures_test.cc",
"src/http2/decoder/frame_decoder_state_test_util.cc",
"src/http2/decoder/frame_decoder_state_test_util.h",
"src/http2/decoder/http2_frame_decoder_listener_test_util.cc",
"src/http2/decoder/http2_frame_decoder_listener_test_util.h",
"src/http2/decoder/http2_frame_decoder_test.cc",
"src/http2/decoder/http2_structure_decoder_test.cc",
"src/http2/decoder/http2_structure_decoder_test_util.cc",
"src/http2/decoder/http2_structure_decoder_test_util.h",
"src/http2/decoder/payload_decoders/altsvc_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/continuation_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/data_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/goaway_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/headers_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/payload_decoder_base_test_util.cc",
"src/http2/decoder/payload_decoders/payload_decoder_base_test_util.h",
"src/http2/decoder/payload_decoders/ping_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/priority_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/priority_update_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/push_promise_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/rst_stream_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/settings_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/unknown_payload_decoder_test.cc",
"src/http2/decoder/payload_decoders/window_update_payload_decoder_test.cc",
"src/http2/hpack/decoder/hpack_block_collector.cc",
"src/http2/hpack/decoder/hpack_block_collector.h",
"src/http2/hpack/decoder/hpack_block_decoder_test.cc",
"src/http2/hpack/decoder/hpack_decoder_state_test.cc",
"src/http2/hpack/decoder/hpack_decoder_string_buffer_test.cc",
"src/http2/hpack/decoder/hpack_decoder_tables_test.cc",
"src/http2/hpack/decoder/hpack_decoder_test.cc",
"src/http2/hpack/decoder/hpack_entry_collector.cc",
"src/http2/hpack/decoder/hpack_entry_collector.h",
"src/http2/hpack/decoder/hpack_entry_decoder_test.cc",
"src/http2/hpack/decoder/hpack_entry_type_decoder_test.cc",
"src/http2/hpack/decoder/hpack_string_collector.cc",
"src/http2/hpack/decoder/hpack_string_collector.h",
"src/http2/hpack/decoder/hpack_string_decoder_test.cc",
"src/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc",
"src/http2/hpack/http2_hpack_constants_test.cc",
"src/http2/hpack/huffman/hpack_huffman_decoder_test.cc",
"src/http2/hpack/huffman/hpack_huffman_encoder_test.cc",
"src/http2/hpack/huffman/hpack_huffman_transcoder_test.cc",
"src/http2/hpack/tools/hpack_block_builder.cc",
"src/http2/hpack/tools/hpack_block_builder.h",
"src/http2/hpack/tools/hpack_block_builder_test.cc",
"src/http2/hpack/tools/hpack_example.cc",
"src/http2/hpack/tools/hpack_example.h",
"src/http2/hpack/varint/hpack_varint_decoder_test.cc",
"src/http2/hpack/varint/hpack_varint_encoder_test.cc",
"src/http2/hpack/varint/hpack_varint_round_trip_test.cc",
"src/http2/http2_constants_test.cc",
"src/http2/http2_constants_test_util.cc",
"src/http2/http2_constants_test_util.h",
"src/http2/http2_structures_test.cc",
"src/http2/http2_structures_test_util.cc",
"src/http2/http2_structures_test_util.h",
"src/http2/platform/api/http2_test_helpers.h",
"src/http2/test_tools/frame_parts.cc",
"src/http2/test_tools/frame_parts.h",
"src/http2/test_tools/frame_parts_collector.cc",
"src/http2/test_tools/frame_parts_collector.h",
"src/http2/test_tools/frame_parts_collector_listener.cc",
"src/http2/test_tools/frame_parts_collector_listener.h",
"src/http2/test_tools/http2_random.cc",
"src/http2/test_tools/http2_random.h",
"src/http2/test_tools/http2_random_test.cc",
"src/http2/tools/http2_frame_builder.cc",
"src/http2/tools/http2_frame_builder.h",
"src/http2/tools/random_decoder_test.cc",
"src/http2/tools/random_decoder_test.h",
"src/http2/tools/random_util.cc",
"src/http2/tools/random_util.h",
"src/quic/core/congestion_control/bandwidth_sampler_test.cc",
"src/quic/core/congestion_control/bbr2_simulator_test.cc",
"src/quic/core/congestion_control/bbr_sender_test.cc",
"src/quic/core/congestion_control/cubic_bytes_test.cc",
"src/quic/core/congestion_control/general_loss_algorithm_test.cc",
"src/quic/core/congestion_control/hybrid_slow_start_test.cc",
"src/quic/core/congestion_control/pacing_sender_test.cc",
"src/quic/core/congestion_control/prr_sender_test.cc",
"src/quic/core/congestion_control/rtt_stats_test.cc",
"src/quic/core/congestion_control/send_algorithm_test.cc",
"src/quic/core/congestion_control/tcp_cubic_sender_bytes_test.cc",
"src/quic/core/congestion_control/uber_loss_algorithm_test.cc",
"src/quic/core/congestion_control/windowed_filter_test.cc",
"src/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc",
"src/quic/core/crypto/aes_128_gcm_12_encrypter_test.cc",
"src/quic/core/crypto/aes_128_gcm_decrypter_test.cc",
"src/quic/core/crypto/aes_128_gcm_encrypter_test.cc",
"src/quic/core/crypto/aes_256_gcm_decrypter_test.cc",
"src/quic/core/crypto/aes_256_gcm_encrypter_test.cc",
"src/quic/core/crypto/cert_compressor_test.cc",
"src/quic/core/crypto/certificate_view_test.cc",
"src/quic/core/crypto/chacha20_poly1305_decrypter_test.cc",
"src/quic/core/crypto/chacha20_poly1305_encrypter_test.cc",
"src/quic/core/crypto/chacha20_poly1305_tls_decrypter_test.cc",
"src/quic/core/crypto/chacha20_poly1305_tls_encrypter_test.cc",
"src/quic/core/crypto/channel_id_test.cc",
"src/quic/core/crypto/crypto_framer_test.cc",
"src/quic/core/crypto/crypto_handshake_message_test.cc",
"src/quic/core/crypto/crypto_secret_boxer_test.cc",
"src/quic/core/crypto/crypto_server_test.cc",
"src/quic/core/crypto/crypto_utils_test.cc",
"src/quic/core/crypto/curve25519_key_exchange_test.cc",
"src/quic/core/crypto/null_decrypter_test.cc",
"src/quic/core/crypto/null_encrypter_test.cc",
"src/quic/core/crypto/p256_key_exchange_test.cc",
"src/quic/core/crypto/proof_source_x509_test.cc",
"src/quic/core/crypto/quic_client_session_cache_test.cc",
"src/quic/core/crypto/quic_compressed_certs_cache_test.cc",
"src/quic/core/crypto/quic_crypto_client_config_test.cc",
"src/quic/core/crypto/quic_crypto_server_config_test.cc",
"src/quic/core/crypto/quic_hkdf_test.cc",
"src/quic/core/crypto/quic_random_test.cc",
"src/quic/core/crypto/transport_parameters_test.cc",
"src/quic/core/crypto/web_transport_fingerprint_proof_verifier_test.cc",
"src/quic/core/frames/quic_frames_test.cc",
"src/quic/core/http/capsule_test.cc",
"src/quic/core/http/http_decoder_test.cc",
"src/quic/core/http/http_encoder_test.cc",
"src/quic/core/http/http_frames_test.cc",
"src/quic/core/http/quic_client_promised_info_test.cc",
"src/quic/core/http/quic_client_push_promise_index_test.cc",
"src/quic/core/http/quic_header_list_test.cc",
"src/quic/core/http/quic_headers_stream_test.cc",
"src/quic/core/http/quic_receive_control_stream_test.cc",
"src/quic/core/http/quic_send_control_stream_test.cc",
"src/quic/core/http/quic_server_session_base_test.cc",
"src/quic/core/http/quic_spdy_session_test.cc",
"src/quic/core/http/quic_spdy_stream_body_manager_test.cc",
"src/quic/core/http/quic_spdy_stream_test.cc",
"src/quic/core/http/spdy_server_push_utils_test.cc",
"src/quic/core/http/spdy_utils_test.cc",
"src/quic/core/legacy_quic_stream_id_manager_test.cc",
"src/quic/core/packet_number_indexed_queue_test.cc",
"src/quic/core/qpack/qpack_blocking_manager_test.cc",
"src/quic/core/qpack/qpack_decoded_headers_accumulator_test.cc",
"src/quic/core/qpack/qpack_decoder_stream_receiver_test.cc",
"src/quic/core/qpack/qpack_decoder_stream_sender_test.cc",
"src/quic/core/qpack/qpack_decoder_test.cc",
"src/quic/core/qpack/qpack_encoder_stream_receiver_test.cc",
"src/quic/core/qpack/qpack_encoder_stream_sender_test.cc",
"src/quic/core/qpack/qpack_encoder_test.cc",
"src/quic/core/qpack/qpack_header_table_test.cc",
"src/quic/core/qpack/qpack_index_conversions_test.cc",
"src/quic/core/qpack/qpack_instruction_decoder_test.cc",
"src/quic/core/qpack/qpack_instruction_encoder_test.cc",
"src/quic/core/qpack/qpack_receive_stream_test.cc",
"src/quic/core/qpack/qpack_required_insert_count_test.cc",
"src/quic/core/qpack/qpack_round_trip_test.cc",
"src/quic/core/qpack/qpack_send_stream_test.cc",
"src/quic/core/qpack/qpack_static_table_test.cc",
"src/quic/core/qpack/value_splitting_header_list_test.cc",
"src/quic/core/quic_alarm_test.cc",
"src/quic/core/quic_arena_scoped_ptr_test.cc",
"src/quic/core/quic_bandwidth_test.cc",
"src/quic/core/quic_buffered_packet_store_test.cc",
"src/quic/core/quic_chaos_protector_test.cc",
"src/quic/core/quic_coalesced_packet_test.cc",
"src/quic/core/quic_config_test.cc",
"src/quic/core/quic_connection_context_test.cc",
"src/quic/core/quic_connection_id_manager_test.cc",
"src/quic/core/quic_connection_id_test.cc",
"src/quic/core/quic_connection_test.cc",
"src/quic/core/quic_control_frame_manager_test.cc",
"src/quic/core/quic_crypto_client_handshaker_test.cc",
"src/quic/core/quic_crypto_client_stream_test.cc",
"src/quic/core/quic_crypto_server_stream_test.cc",
"src/quic/core/quic_crypto_stream_test.cc",
"src/quic/core/quic_data_writer_test.cc",
"src/quic/core/quic_datagram_queue_test.cc",
"src/quic/core/quic_dispatcher_test.cc",
"src/quic/core/quic_error_codes_test.cc",
"src/quic/core/quic_flow_controller_test.cc",
"src/quic/core/quic_framer_test.cc",
"src/quic/core/quic_idle_network_detector_test.cc",
"src/quic/core/quic_interval_deque_test.cc",
"src/quic/core/quic_interval_set_test.cc",
"src/quic/core/quic_interval_test.cc",
"src/quic/core/quic_legacy_version_encapsulator_test.cc",
"src/quic/core/quic_lru_cache_test.cc",
"src/quic/core/quic_network_blackhole_detector_test.cc",
"src/quic/core/quic_one_block_arena_test.cc",
"src/quic/core/quic_packet_creator_test.cc",
"src/quic/core/quic_packet_number_test.cc",
"src/quic/core/quic_packets_test.cc",
"src/quic/core/quic_path_validator_test.cc",
"src/quic/core/quic_received_packet_manager_test.cc",
"src/quic/core/quic_sent_packet_manager_test.cc",
"src/quic/core/quic_server_id_test.cc",
"src/quic/core/quic_session_test.cc",
"src/quic/core/quic_socket_address_coder_test.cc",
"src/quic/core/quic_stream_id_manager_test.cc",
"src/quic/core/quic_stream_send_buffer_test.cc",
"src/quic/core/quic_stream_sequencer_buffer_test.cc",
"src/quic/core/quic_stream_sequencer_test.cc",
"src/quic/core/quic_stream_test.cc",
"src/quic/core/quic_sustained_bandwidth_recorder_test.cc",
"src/quic/core/quic_tag_test.cc",
"src/quic/core/quic_time_accumulator_test.cc",
"src/quic/core/quic_time_test.cc",
"src/quic/core/quic_time_wait_list_manager_test.cc",
"src/quic/core/quic_trace_visitor_test.cc",
"src/quic/core/quic_unacked_packet_map_test.cc",
"src/quic/core/quic_utils_test.cc",
"src/quic/core/quic_version_manager_test.cc",
"src/quic/core/quic_versions_test.cc",
"src/quic/core/quic_write_blocked_list_test.cc",
"src/quic/core/tls_chlo_extractor_test.cc",
"src/quic/core/tls_client_handshaker_test.cc",
"src/quic/core/uber_quic_stream_id_manager_test.cc",
"src/quic/core/uber_received_packet_manager_test.cc",
"src/quic/platform/api/quic_hostname_utils_test.cc",
"src/quic/platform/api/quic_ip_address_test.cc",
"src/quic/platform/api/quic_socket_address_test.cc",
"src/quic/test_tools/crypto_test_utils_test.cc",
"src/quic/test_tools/mock_quic_time_wait_list_manager.cc",
"src/quic/test_tools/mock_quic_time_wait_list_manager.h",
"src/quic/test_tools/quic_test_utils_test.cc",
"src/quic/test_tools/simple_session_notifier_test.cc",
"src/quic/test_tools/simulator/quic_endpoint_test.cc",
"src/quic/test_tools/simulator/simulator_test.cc",
"src/quic/tools/quic_memory_cache_backend_test.cc",
"src/quic/tools/quic_tcp_like_trace_converter_test.cc",
"src/quic/tools/simple_ticket_crypter_test.cc",
"src/spdy/core/array_output_buffer.cc",
"src/spdy/core/array_output_buffer.h",
"src/spdy/core/array_output_buffer_test.cc",
"src/spdy/core/hpack/hpack_decoder_adapter_test.cc",
"src/spdy/core/hpack/hpack_encoder_test.cc",
"src/spdy/core/hpack/hpack_entry_test.cc",
"src/spdy/core/hpack/hpack_header_table_test.cc",
"src/spdy/core/hpack/hpack_output_stream_test.cc",
"src/spdy/core/hpack/hpack_round_trip_test.cc",
"src/spdy/core/hpack/hpack_static_table_test.cc",
"src/spdy/core/mock_spdy_framer_visitor.cc",
"src/spdy/core/mock_spdy_framer_visitor.h",
"src/spdy/core/spdy_alt_svc_wire_format_test.cc",
"src/spdy/core/spdy_frame_builder_test.cc",
"src/spdy/core/spdy_framer_test.cc",
"src/spdy/core/spdy_header_block_test.cc",
"src/spdy/core/spdy_header_storage_test.cc",
"src/spdy/core/spdy_intrusive_list_test.cc",
"src/spdy/core/spdy_pinnable_buffer_piece_test.cc",
"src/spdy/core/spdy_prefixed_buffer_reader_test.cc",
"src/spdy/core/spdy_protocol_test.cc",
"src/spdy/core/spdy_protocol_test_utils.cc",
"src/spdy/core/spdy_protocol_test_utils.h",
"src/spdy/core/spdy_simple_arena_test.cc",
"src/spdy/core/spdy_test_utils.cc",
"src/spdy/core/spdy_test_utils.h",
]
deps = [
":quiche_file_utils",
"//net",
"//net:quic_test_tools",
"//net:quiche_test_tools",
"//net:simple_quic_tools",
"//net:spdy_test_tools",
"//testing/gmock",
"//testing/gtest",
]
public_deps = []
if (is_linux || is_chromeos_lacros) {
public_deps += [ "//net:epoll_quic_tools" ]
}
if (is_linux || is_chromeos) {
sources += [
"src/epoll_server/simple_epoll_server_test.cc",
"src/quic/core/chlo_extractor_test.cc",
"src/quic/core/http/end_to_end_test.cc",
"src/quic/core/http/quic_spdy_client_session_test.cc",
"src/quic/core/http/quic_spdy_client_stream_test.cc",
"src/quic/core/http/quic_spdy_server_stream_base_test.cc",
"src/quic/core/quic_epoll_alarm_factory_test.cc",
"src/quic/core/quic_epoll_connection_helper_test.cc",
"src/quic/tools/quic_client_test.cc",
"src/quic/tools/quic_server_test.cc",
"src/quic/tools/quic_simple_server_session_test.cc",
"src/quic/tools/quic_simple_server_stream_test.cc",
"src/quic/tools/quic_url_test.cc",
]
public_deps += [
"//net:epoll_quic_tools",
"//net:epoll_server",
"//net:epoll_server_test_tools",
]
}
}
fuzzer_test("net_quic_framer_fuzzer") {
sources = [ "src/quic/test_tools/fuzzing/quic_framer_fuzzer.cc" ]
deps = [
"//net",
"//net:net_fuzzer_test_support",
"//net:quic_test_tools",
"//net:test_support",
"//net/data/ssl/certificates:generate_fuzzer_cert_includes",
]
}
fuzzer_test("net_quic_framer_process_data_packet_fuzzer") {
sources = [
"src/quic/test_tools/fuzzing/quic_framer_process_data_packet_fuzzer.cc",
]
deps = [
"//net",
"//net:net_fuzzer_test_support",
"//net:quic_test_tools",
"//net:test_support",
"//net/data/ssl/certificates:generate_fuzzer_cert_includes",
]
}
fuzzer_test("net_qpack_decoder_fuzzer") {
sources = [ "src/quic/core/qpack/fuzzer/qpack_decoder_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
"//net:quic_test_tools",
"//net:test_support",
]
}
fuzzer_test("net_qpack_encoder_stream_receiver_fuzzer") {
sources =
[ "src/quic/core/qpack/fuzzer/qpack_encoder_stream_receiver_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
]
}
fuzzer_test("net_qpack_encoder_stream_sender_fuzzer") {
sources =
[ "src/quic/core/qpack/fuzzer/qpack_encoder_stream_sender_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
"//net:quic_test_tools",
"//net:test_support",
]
}
fuzzer_test("net_qpack_round_trip_fuzzer") {
sources = [ "src/quic/core/qpack/fuzzer/qpack_round_trip_fuzzer.cc" ]
deps = [
"//base",
"//net",
"//net:net_fuzzer_test_support",
"//net:quic_test_tools",
"//net:test_support",
]
}

View File

@ -17,19 +17,3 @@ source_set("huffman_trie_generator_sources") {
]
deps = [ "//base" ]
}
source_set("huffman_trie_generator_test_sources") {
testonly = true
sources = [
"bit_writer_unittest.cc",
"huffman/huffman_builder_unittest.cc",
"trie/trie_bit_buffer_unittest.cc",
]
deps = [
":huffman_trie_generator_sources",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}

View File

@ -28,23 +28,6 @@ source_set("transport_security_state_generator_sources") {
]
}
source_set("transport_security_state_generator_test_sources") {
testonly = true
sources = [
"cert_util_unittest.cc",
"input_file_parsers_unittest.cc",
"spki_hash_unittest.cc",
]
deps = [
":transport_security_state_generator_sources",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/boringssl",
]
}
executable("transport_security_state_generator") {
sources = [ "transport_security_state_generator.cc" ]
deps = [

View File

@ -7,7 +7,6 @@ import("//build/config/arm.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build_overrides/build.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("BUILD.generated.gni")
import("BUILD.generated_tests.gni")

View File

@ -2,8 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/libfuzzer/fuzzer_test.gni")
if (is_win) {
import("//build/config/win/visual_studio_version.gni")
}
@ -193,9 +191,3 @@ if (current_toolchain == host_toolchain) {
}
}
}
fuzzer_test("brotli_fuzzer") {
sources = [ "fuzz/decode_fuzzer.cc" ]
deps = [ ":dec" ]
libfuzzer_options = [ "max_len=1280" ]
}

View File

@ -3,8 +3,6 @@
# found in the LICENSE file.
import("//build/buildflag_header.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//testing/test.gni")
import("features.gni")
if (is_android) {
@ -62,7 +60,6 @@ component("url") {
deps = [
"//base/third_party/dynamic_annotations",
"//ipc:param_traits",
]
if (is_win) {
@ -100,271 +97,3 @@ component("url") {
]
}
}
if (is_android) {
source_set("gurl_android") {
sources = [
"android/gurl_android.cc",
"android/gurl_android.h",
"android/parsed_android.cc",
"android/parsed_android.h",
]
deps = [
":gurl_jni_headers",
":url",
"//base:base",
]
}
static_library("origin_android") {
sources = [ "android/origin_android.cc" ]
deps = [
":url",
":url_jni_headers",
"//base",
"//url/mojom:url_mojom_origin",
]
}
android_library("url_java") {
sources = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ]
deps = [ "//base:base_java" ]
}
android_library("gurl_java") {
sources = [
"android/java/src/org/chromium/url/GURL.java",
"android/java/src/org/chromium/url/Parsed.java",
"android/java/src/org/chromium/url/URI.java",
]
deps = [
"//base:base_java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
android_library("origin_java") {
sources = [ "android/java/src/org/chromium/url/Origin.java" ]
deps = [
"//base:base_java",
"//mojo/public/java:bindings_java",
"//mojo/public/mojom/base:base_java",
"//url/mojom:url_mojom_origin_java",
]
}
generate_jni("url_jni_headers") {
sources = [
"android/java/src/org/chromium/url/IDNStringUtil.java",
"android/java/src/org/chromium/url/Origin.java",
]
}
generate_jni("gurl_jni_headers") {
sources = [
"android/java/src/org/chromium/url/GURL.java",
"android/java/src/org/chromium/url/Parsed.java",
]
}
}
source_set("url_test_support") {
testonly = true
sources = [
"gurl_abstract_tests.h",
"origin_abstract_tests.cc",
"origin_abstract_tests.h",
]
public_deps = [
":url",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
test("url_unittests") {
sources = [
"gurl_unittest.cc",
"origin_unittest.cc",
"run_all_unittests.cc",
"scheme_host_port_unittest.cc",
"url_canon_icu_unittest.cc",
"url_canon_unittest.cc",
"url_parse_unittest.cc",
"url_test_utils.h",
"url_util_unittest.cc",
]
deps = [
":url",
":url_test_support",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
if (use_platform_icu_alternatives) {
# Unit tests that are not supported by the current ICU alternatives on Android.
if (is_android) {
sources -= [
"url_canon_icu_unittest.cc",
"url_canon_unittest.cc",
]
deps += [ ":url_java" ]
}
# Unit tests that are not supported by the current ICU alternatives on iOS.
if (is_ios) {
sources -= [
"origin_unittest.cc",
"scheme_host_port_unittest.cc",
"url_canon_icu_unittest.cc",
"url_canon_unittest.cc",
]
}
} else { # !use_platform_icu_alternatives
deps += [ "//third_party/icu:icuuc" ]
}
if (!is_ios) {
sources += [
"mojom/scheme_host_port_mojom_traits_unittest.cc",
"mojom/url_gurl_mojom_traits_unittest.cc",
]
deps += [
"//mojo/core/embedder",
"//mojo/public/cpp/test_support:test_utils",
"//url/ipc:url_ipc_unittests",
"//url/mojom:mojom_traits",
"//url/mojom:test_url_mojom_gurl",
]
}
}
test("url_perftests") {
sources = [
"run_all_perftests.cc",
"url_parse_perftest.cc",
]
deps = [
":url",
"//base",
"//base/test:test_support",
"//testing/gtest",
]
}
fuzzer_test("gurl_fuzzer") {
sources = [ "gurl_fuzzer.cc" ]
deps = [
":url",
"//base",
"//base:i18n",
]
dict = "gurl_fuzzer.dict"
}
if (is_android) {
source_set("gurl_android_test_helper") {
testonly = true
sources = [ "android/gurl_java_test_helper.cc" ]
deps = [
":gurl_android",
":gurl_j_test_jni_headers",
":url",
"//base/test:test_support",
"//testing/gtest",
]
}
android_library("gurl_android_test_helper_java") {
testonly = true
sources =
[ "android/javatests/src/org/chromium/url/GURLJavaTestHelper.java" ]
deps = [
":gurl_java",
"//base:base_java",
"//base:base_java_test_support",
]
}
# Targets depending on gurl_junit_test_support do not need to bypass platform
# checks.
android_library("gurl_junit_test_support") {
testonly = true
sources = [ "android/test/java/src/org/chromium/url/JUnitTestGURLs.java" ]
deps = [ ":gurl_java" ]
}
# Unlike gurl_junit_test_support targets depending on gurl_junit_shadows must
# bypass platform checks.
android_library("gurl_junit_shadows") {
# Platform checks are broken for Robolectric. See https://crbug.com/1071638.
bypass_platform_checks = true
testonly = true
sources = [ "android/test/java/src/org/chromium/url/ShadowGURL.java" ]
deps = [
":gurl_java",
":gurl_junit_test_support",
"//third_party/android_deps:robolectric_all_java",
]
}
android_library("gurl_javatests") {
testonly = true
sources = [
"android/javatests/src/org/chromium/url/GURLJavaTest.java",
"android/javatests/src/org/chromium/url/JUnitTestGURLsTest.java",
]
deps = [
":gurl_android_test_helper_java",
":gurl_java",
":gurl_junit_test_support",
"//base:base_java",
"//base:base_java_test_support",
"//content/public/test/android:content_java_test_support",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
# See https://bugs.chromium.org/p/chromium/issues/detail?id=908819 for why we
# can't put 'java' in the name here.
generate_jni("gurl_j_test_jni_headers") {
testonly = true
sources =
[ "android/javatests/src/org/chromium/url/GURLJavaTestHelper.java" ]
}
android_library("gurl_junit_tests") {
# Platform checks are broken for Robolectric. See https://crbug.com/1071638.
bypass_platform_checks = true
testonly = true
sources = [ "android/junit/src/org/chromium/url/ShadowGURLTest.java" ]
deps = [
":gurl_java",
":gurl_junit_shadows",
":gurl_junit_test_support",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//base/test:test_support_java",
"//third_party/android_deps:robolectric_all_java",
"//third_party/junit",
]
}
}