mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 09:46:09 +03:00
build: Remove tests and minimize
This commit is contained in:
parent
c4a0edfca5
commit
d4d7e879fa
1331
src/BUILD.gn
1331
src/BUILD.gn
File diff suppressed because it is too large
Load Diff
1790
src/base/BUILD.gn
1790
src/base/BUILD.gn
File diff suppressed because it is too large
Load Diff
@ -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("//build/nocompile.gni")
|
||||
|
||||
# Change this target's type to component if it starts to contain more than
|
||||
# just headers. Header-only targets cannot be compiled to libraries, so it must
|
||||
# remain a source_set for now.
|
||||
@ -15,17 +13,3 @@ source_set("type_safety") {
|
||||
|
||||
deps = [ "//base" ]
|
||||
}
|
||||
|
||||
source_set("tests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"id_type_unittest.cc",
|
||||
"token_type_unittest.cc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":type_safety",
|
||||
"//base",
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
@ -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" ]
|
||||
}
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
import("//build/config/chromeos/ui_mode.gni")
|
||||
import("//build/config/crypto.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
component("crypto") {
|
||||
output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto.
|
||||
@ -135,71 +134,6 @@ component("crypto") {
|
||||
}
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
|
||||
# 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",
|
||||
]
|
||||
}
|
||||
|
||||
deps = [
|
||||
":crypto",
|
||||
":platform",
|
||||
":test_support",
|
||||
"//base",
|
||||
"//base/test:run_all_unittests",
|
||||
"//base/test:test_support",
|
||||
"//testing/gmock",
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
||||
# This has no sources in some cases so can't be a static library.
|
||||
source_set("test_support") {
|
||||
testonly = true
|
||||
sources = []
|
||||
|
||||
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",
|
||||
]
|
||||
}
|
||||
|
||||
config("platform_config") {
|
||||
if (use_nss_certs && is_clang) {
|
||||
# There is a broken header guard in /usr/include/nss/secmod.h:
|
||||
|
3786
src/net/BUILD.gn
3786
src/net/BUILD.gn
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,6 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//net/features.gni")
|
||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
||||
|
||||
enable_built_in_dns = !is_ios
|
||||
|
||||
@ -16,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 = []
|
||||
@ -181,34 +175,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:browser_tests",
|
||||
"//chrome/test:unit_tests",
|
||||
"//components/grpc_support/test:unit_tests",
|
||||
"//content/shell:content_shell_lib",
|
||||
|
||||
# Stand-alone tools.
|
||||
"//google_apis/gcm:mcs_probe",
|
||||
|
||||
# Network stack/service.
|
||||
"//components/certificate_transparency/*",
|
||||
"//components/cronet/*",
|
||||
"//net/*",
|
||||
"//services/network/*",
|
||||
|
||||
# The proxy resolution service uses its own host cache and HostResolver Mojo
|
||||
# wrapper.
|
||||
"//services/proxy_resolver/*",
|
||||
]
|
||||
|
||||
sources = []
|
||||
@ -252,16 +219,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 = []
|
||||
@ -295,24 +253,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/chromeos/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 = []
|
||||
@ -352,29 +293,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/chromeos/smb_client/discovery/mdns_host_locator.h
|
||||
# chrome/browser/chromeos/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 = []
|
||||
@ -391,211 +310,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",
|
||||
"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_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 = [
|
||||
"address_info_test_util.cc",
|
||||
"dns_test_util.cc",
|
||||
"mock_host_resolver.cc",
|
||||
"test_dns_config_service.cc",
|
||||
]
|
||||
public = [
|
||||
"address_info_test_util.h",
|
||||
"dns_test_util.h",
|
||||
"mock_host_resolver.h",
|
||||
"test_dns_config_service.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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
fuzzer_test("net_dns_host_cache_fuzzer") {
|
||||
sources = [ "host_cache_fuzzer.cc" ]
|
||||
deps = [
|
||||
"//base",
|
||||
"//net",
|
||||
"//net:net_fuzzer_test_support",
|
||||
]
|
||||
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_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"
|
||||
}
|
||||
}
|
||||
|
@ -38,22 +38,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 = [
|
||||
"doh_provider_entry_unittest.cc",
|
||||
"util_unittest.cc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//net",
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
897
src/net/third_party/quiche/BUILD.gn
vendored
897
src/net/third_party/quiche/BUILD.gn
vendored
@ -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") {
|
||||
@ -676,899 +675,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") {
|
||||
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") {
|
||||
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:simple_quic_tools",
|
||||
"//third_party/boringssl",
|
||||
]
|
||||
}
|
||||
|
||||
executable("epoll_quic_server") {
|
||||
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") {
|
||||
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") {
|
||||
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") {
|
||||
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/test_tools/quiche_test_utils.cc",
|
||||
"src/common/test_tools/quiche_test_utils.h",
|
||||
]
|
||||
deps = [
|
||||
"//net",
|
||||
"//testing/gmock",
|
||||
"//testing/gtest",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("quic_test_tools_core") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"src/quic/core/quic_trace_visitor.cc",
|
||||
"src/quic/core/quic_trace_visitor.h",
|
||||
"src/quic/platform/api/quic_epoll_test_tools.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_mem_slice_vector.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_header_table_peer.cc",
|
||||
"src/quic/test_tools/qpack/qpack_header_table_peer.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_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_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_transport_test_tools.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/tools/quic_tcp_like_trace_converter.cc",
|
||||
"src/quic/tools/quic_tcp_like_trace_converter.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//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 = [
|
||||
"src/quic/core/chlo_extractor.cc",
|
||||
"src/quic/core/chlo_extractor.h",
|
||||
"src/quic/core/http/quic_spdy_client_session.cc",
|
||||
"src/quic/core/http/quic_spdy_client_session.h",
|
||||
"src/quic/core/http/quic_spdy_client_stream.cc",
|
||||
"src/quic/core/http/quic_spdy_client_stream.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/platform/api/quic_system_event_loop.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_transport_simple_server_dispatcher.cc",
|
||||
"src/quic/tools/quic_transport_simple_server_dispatcher.h",
|
||||
"src/quic/tools/quic_transport_simple_server_session.cc",
|
||||
"src/quic/tools/quic_transport_simple_server_session.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 = [
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//net",
|
||||
"//third_party/protobuf:protobuf_lite",
|
||||
"//url",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("quic_client_core") {
|
||||
sources = [
|
||||
"src/quic/tools/quic_toy_client.cc",
|
||||
"src/quic/tools/quic_toy_client.h",
|
||||
]
|
||||
deps = [
|
||||
"//net",
|
||||
"//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 = [
|
||||
"//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 = [
|
||||
"src/common/platform/api/quiche_text_utils_test.cc",
|
||||
"src/common/platform/api/quiche_time_utils_test.cc",
|
||||
"src/common/quiche_data_writer_test.cc",
|
||||
"src/common/quiche_endian_test.cc",
|
||||
"src/common/simple_linked_hash_map_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/hpack_string_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_string_utils_test.cc",
|
||||
"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/common_cert_set_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/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/frames/quic_frames_test.cc",
|
||||
"src/quic/core/http/http_decoder_test.cc",
|
||||
"src/quic/core/http/http_encoder_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_circular_deque_test.cc",
|
||||
"src/quic/core/quic_coalesced_packet_test.cc",
|
||||
"src/quic/core/quic_config_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_simple_buffer_allocator_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/uber_quic_stream_id_manager_test.cc",
|
||||
"src/quic/core/uber_received_packet_manager_test.cc",
|
||||
"src/quic/platform/api/quic_containers_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_mem_slice_span_test.cc",
|
||||
"src/quic/platform/api/quic_mem_slice_storage_test.cc",
|
||||
"src/quic/platform/api/quic_mem_slice_test.cc",
|
||||
"src/quic/platform/api/quic_reference_counted_test.cc",
|
||||
"src/quic/platform/api/quic_socket_address_test.cc",
|
||||
"src/quic/quic_transport/quic_transport_client_session_test.cc",
|
||||
"src/quic/quic_transport/quic_transport_integration_test.cc",
|
||||
"src/quic/quic_transport/quic_transport_server_session_test.cc",
|
||||
"src/quic/quic_transport/quic_transport_stream_test.cc",
|
||||
"src/quic/quic_transport/web_transport_fingerprint_proof_verifier_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/fifo_write_scheduler_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/http2_priority_write_scheduler_test.cc",
|
||||
"src/spdy/core/lifo_write_scheduler_test.cc",
|
||||
"src/spdy/core/mock_spdy_framer_visitor.cc",
|
||||
"src/spdy/core/mock_spdy_framer_visitor.h",
|
||||
"src/spdy/core/priority_write_scheduler_test.cc",
|
||||
"src/spdy/core/spdy_alt_svc_wire_format_test.cc",
|
||||
"src/spdy/core/spdy_frame_builder_test.cc",
|
||||
"src/spdy/core/spdy_frame_reader_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_no_op_visitor.cc",
|
||||
"src/spdy/core/spdy_no_op_visitor.h",
|
||||
"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",
|
||||
"src/spdy/platform/api/spdy_mem_slice_test.cc",
|
||||
"src/spdy/platform/api/spdy_string_utils_test.cc",
|
||||
"src/spdy/platform/api/spdy_test_helpers.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//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",
|
||||
]
|
||||
|
||||
if (!is_chromeos_ash) {
|
||||
sources += [ "src/quic/core/quic_udp_socket_test.cc" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
seed_corpus = "src/quic/core/qpack/fuzzer/qpack_decoder_fuzzer_corpus/"
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
seed_corpus =
|
||||
"src/quic/core/qpack/fuzzer/qpack_encoder_stream_receiver_fuzzer_corpus/"
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
seed_corpus =
|
||||
"src/quic/core/qpack/fuzzer/qpack_encoder_stream_sender_fuzzer_corpus/"
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
seed_corpus = "src/quic/core/qpack/fuzzer/qpack_round_trip_fuzzer_corpus/"
|
||||
}
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
@ -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 = [
|
||||
|
1
src/third_party/boringssl/BUILD.gn
vendored
1
src/third_party/boringssl/BUILD.gn
vendored
@ -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")
|
||||
|
||||
|
8
src/third_party/brotli/BUILD.gn
vendored
8
src/third_party/brotli/BUILD.gn
vendored
@ -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" ]
|
||||
}
|
||||
|
237
src/url/BUILD.gn
237
src/url/BUILD.gn
@ -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) {
|
||||
@ -61,7 +59,6 @@ component("url") {
|
||||
deps = [
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//ipc:param_traits",
|
||||
]
|
||||
|
||||
if (is_win) {
|
||||
@ -99,237 +96,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",
|
||||
"//base:jni_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 (!is_ios) {
|
||||
sources += [ "mojom/url_gurl_mojom_traits_unittest.cc" ]
|
||||
}
|
||||
|
||||
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) {
|
||||
deps += [
|
||||
"//mojo/core/embedder",
|
||||
"//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",
|
||||
"//base:jni_java",
|
||||
]
|
||||
}
|
||||
|
||||
android_library("gurl_junit_test_support") {
|
||||
testonly = true
|
||||
sources = [ "android/test/java/src/org/chromium/url/JUnitTestGURLs.java" ]
|
||||
deps = [ ":gurl_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",
|
||||
"//base:jni_java",
|
||||
"//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" ]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user