build: Remove tests and minimize

This commit is contained in:
klzgrad 2021-05-16 21:03:12 +08:00
parent a2e5ad325b
commit 8c1fa08507
14 changed files with 2 additions and 7827 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -59,16 +59,6 @@ buildflag_header("chromeos_buildflags") {
]
}
if (build_with_chromium) {
group("gold_common_pytype") {
testonly = true
data = [ "//build/skia_gold_common/" ]
data_deps = [ "//testing:pytype_dependencies" ]
}
}
if (is_chromeos) {
process_version("version_metadata") {
sources = [ "//chrome/VERSION" ]

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

@ -6,7 +6,6 @@ import("//build/buildflag_header.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//components/nacl/toolchain.gni")
import("//crypto/features.gni")
import("//testing/test.gni")
buildflag_header("buildflags") {
header = "crypto_buildflags.h"
@ -150,75 +149,3 @@ 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",
]
if (is_win) {
sources += [ "unexportable_key_metrics_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",
]
configs += [ "//build/config/linux/nss" ]
}
deps = [
":crypto",
":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",
]
configs += [ "//build/config/linux/nss" ]
}
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",
"//base",
]
}

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,16 +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/*",
# Needed for brokering system DNS resolution out of the network service.
"//content/browser/system_dns_resolution",
"//content/test/*",
"//net/*",
"//services/network/*",
]
public = []
@ -197,30 +186,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 = [
@ -259,16 +225,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" ]
@ -298,24 +255,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/ash",
# Tests and test support
"//chrome/browser:test_support",
"//chrome/test/*",
# Network stack/service
"//components/certificate_transparency/*",
"//net/*",
"//services/network/*",
]
sources = [
@ -352,29 +292,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/ash",
# Tests and test support
"//chrome/browser:test_support",
# Network stack/service
"//net/*",
"//services/network/*",
]
public = []
@ -391,227 +309,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_names_util_unittest.cc",
"dns_query_unittest.cc",
"dns_response_result_extractor_unittest.cc",
"dns_response_unittest.cc",
"dns_transaction_unittest.cc",
"dns_udp_tracker_unittest.cc",
"dns_util_unittest.cc",
"host_cache_unittest.cc",
"host_resolver_internal_result_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",
"opt_record_rdata_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_internal_result_test_util.cc",
"host_resolver_results_test_util.cc",
"mock_host_resolver.cc",
]
public = [
"dns_test_util.h",
"host_resolver_internal_result_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_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

@ -61,32 +61,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

@ -25,11 +25,8 @@
# (*) only used on platforms where epoll tests are built
import("//build/config/chromeos/ui_mode.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni")
build_epoll_based_tools = is_linux || is_chromeos
config("quiche_internal_config") {
cflags = []
if (is_clang) {
@ -773,978 +770,3 @@ proto_library("net_quic_test_tools_proto") {
extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
}
if (build_epoll_based_tools) {
static_library("epoll_tool_support") {
testonly = true
sources = [
"overrides/quiche_platform_impl/epoll_bug_impl.h",
"overrides/quiche_platform_impl/epoll_logging_impl.h",
"overrides/quiche_platform_impl/epoll_thread_impl.h",
"overrides/quiche_platform_impl/quiche_udp_socket_platform_impl.h",
"src/quiche/common/platform/api/quiche_udp_socket_platform_api.h",
"src/quiche/common/platform/default/quiche_platform_impl/quiche_stream_buffer_allocator_impl.h",
"src/quiche/common/quiche_ip_address_family.cc",
"src/quiche/common/quiche_ip_address_family.h",
"src/quiche/quic/core/io/event_loop_connecting_client_socket.cc",
"src/quiche/quic/core/io/event_loop_connecting_client_socket.h",
"src/quiche/quic/core/io/event_loop_socket_factory.cc",
"src/quiche/quic/core/io/event_loop_socket_factory.h",
"src/quiche/quic/core/io/quic_default_event_loop.cc",
"src/quiche/quic/core/io/quic_default_event_loop.h",
"src/quiche/quic/core/io/quic_poll_event_loop.cc",
"src/quiche/quic/core/io/quic_poll_event_loop.h",
"src/quiche/quic/core/io/socket.h",
"src/quiche/quic/core/io/socket_posix.cc",
"src/quiche/quic/core/quic_default_clock.cc",
"src/quiche/quic/core/quic_default_clock.h",
"src/quiche/quic/core/quic_default_packet_writer.cc",
"src/quiche/quic/core/quic_default_packet_writer.h",
"src/quiche/quic/core/quic_packet_reader.cc",
"src/quiche/quic/core/quic_packet_reader.h",
"src/quiche/quic/core/quic_udp_socket.h",
"src/quiche/quic/core/quic_udp_socket_posix.cc",
"src/quiche/quic/masque/masque_client.cc",
"src/quiche/quic/masque/masque_client.h",
"src/quiche/quic/masque/masque_client_session.cc",
"src/quiche/quic/masque/masque_client_session.h",
"src/quiche/quic/masque/masque_client_tools.cc",
"src/quiche/quic/masque/masque_client_tools.h",
"src/quiche/quic/masque/masque_dispatcher.cc",
"src/quiche/quic/masque/masque_dispatcher.h",
"src/quiche/quic/masque/masque_encapsulated_client.cc",
"src/quiche/quic/masque/masque_encapsulated_client.h",
"src/quiche/quic/masque/masque_encapsulated_client_session.cc",
"src/quiche/quic/masque/masque_encapsulated_client_session.h",
"src/quiche/quic/masque/masque_server.cc",
"src/quiche/quic/masque/masque_server.h",
"src/quiche/quic/masque/masque_server_backend.cc",
"src/quiche/quic/masque/masque_server_backend.h",
"src/quiche/quic/masque/masque_server_session.cc",
"src/quiche/quic/masque/masque_server_session.h",
"src/quiche/quic/masque/masque_utils.cc",
"src/quiche/quic/masque/masque_utils.h",
"src/quiche/quic/platform/api/quic_udp_socket_platform_api.h",
"src/quiche/quic/tools/connect_tunnel.cc",
"src/quiche/quic/tools/connect_tunnel.h",
"src/quiche/quic/tools/quic_client_default_network_helper.cc",
"src/quiche/quic/tools/quic_client_default_network_helper.h",
"src/quiche/quic/tools/quic_default_client.cc",
"src/quiche/quic/tools/quic_default_client.h",
"src/quiche/quic/tools/quic_name_lookup.cc",
"src/quiche/quic/tools/quic_name_lookup.h",
"src/quiche/quic/tools/quic_server.cc",
"src/quiche/quic/tools/quic_server.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":quiche_tool_support",
"//base",
"//net",
"//third_party/boringssl",
]
}
executable("epoll_quic_client") {
testonly = true
sources = [
"src/quiche/quic/tools/quic_client_bin.cc",
"src/quiche/quic/tools/quic_epoll_client_factory.cc",
"src/quiche/quic/tools/quic_epoll_client_factory.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quic_client_core",
":quiche_tool_support",
"//base",
"//net",
"//third_party/boringssl",
]
}
executable("epoll_quic_server") {
testonly = true
sources = [
"src/quiche/quic/tools/quic_server_bin.cc",
"src/quiche/quic/tools/quic_server_factory.cc",
"src/quiche/quic/tools/quic_server_factory.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quic_server_core",
":quiche_tool_support",
"//base",
"//net",
"//third_party/boringssl",
]
}
executable("quic_client_interop_test") {
testonly = true
sources = [ "src/quiche/quic/tools/quic_client_interop_test_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quiche_test_support",
":quiche_tool_support",
"//net",
]
}
executable("masque_client") {
testonly = true
sources = [ "src/quiche/quic/masque/masque_client_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quiche_tool_support",
"//net",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
executable("masque_server") {
testonly = true
sources = [ "src/quiche/quic/masque/masque_server_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quiche_tool_support",
"//net",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
]
}
static_library("epoll_test_support") {
testonly = true
sources = [
"overrides/quiche_platform_impl/epoll_address_test_utils_impl.h",
"overrides/quiche_platform_impl/epoll_expect_bug_impl.h",
"overrides/quiche_platform_impl/epoll_test_impl.h",
"overrides/quiche_platform_impl/quiche_epoll_test_tools_impl.h",
"src/quiche/quic/test_tools/quic_server_peer.cc",
"src/quiche/quic/test_tools/quic_server_peer.h",
"src/quiche/quic/test_tools/quic_test_client.cc",
"src/quiche/quic/test_tools/quic_test_client.h",
"src/quiche/quic/test_tools/quic_test_server.cc",
"src/quiche/quic/test_tools/quic_test_server.h",
"src/quiche/quic/test_tools/server_thread.cc",
"src/quiche/quic/test_tools/server_thread.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":epoll_tool_support",
":quiche_test_support",
":quiche_tool_support",
"//base",
"//net",
"//net:gtest_util",
"//testing/gmock",
"//testing/gtest",
]
}
}
static_library("quiche_test_support") {
testonly = true
sources = [
"overrides/quiche_platform_impl/quiche_expect_bug_impl.h",
"overrides/quiche_platform_impl/quiche_mock_log_impl.h",
"overrides/quiche_platform_impl/quiche_test_helpers_impl.cc",
"overrides/quiche_platform_impl/quiche_test_helpers_impl.h",
"overrides/quiche_platform_impl/quiche_test_impl.cc",
"overrides/quiche_platform_impl/quiche_test_impl.h",
"overrides/quiche_platform_impl/quiche_test_output_impl.cc",
"overrides/quiche_platform_impl/quiche_test_output_impl.h",
"src/quiche/common/platform/api/quiche_expect_bug.h",
"src/quiche/common/platform/api/quiche_test.h",
"src/quiche/common/platform/api/quiche_test_loopback.cc",
"src/quiche/common/platform/api/quiche_test_loopback.h",
"src/quiche/common/platform/api/quiche_test_output.h",
"src/quiche/common/platform/default/quiche_platform_impl/quiche_test_loopback_impl.cc",
"src/quiche/common/platform/default/quiche_platform_impl/quiche_test_loopback_impl.h",
"src/quiche/common/test_tools/quiche_test_utils.cc",
"src/quiche/common/test_tools/quiche_test_utils.h",
"src/quiche/http2/adapter/test_frame_sequence.cc",
"src/quiche/http2/adapter/test_frame_sequence.h",
"src/quiche/http2/adapter/test_utils.cc",
"src/quiche/http2/adapter/test_utils.h",
"src/quiche/http2/test_tools/frame_decoder_state_test_util.cc",
"src/quiche/http2/test_tools/frame_decoder_state_test_util.h",
"src/quiche/http2/test_tools/frame_parts.cc",
"src/quiche/http2/test_tools/frame_parts.h",
"src/quiche/http2/test_tools/frame_parts_collector.cc",
"src/quiche/http2/test_tools/frame_parts_collector.h",
"src/quiche/http2/test_tools/frame_parts_collector_listener.cc",
"src/quiche/http2/test_tools/frame_parts_collector_listener.h",
"src/quiche/http2/test_tools/hpack_block_builder.cc",
"src/quiche/http2/test_tools/hpack_block_builder.h",
"src/quiche/http2/test_tools/hpack_block_collector.cc",
"src/quiche/http2/test_tools/hpack_block_collector.h",
"src/quiche/http2/test_tools/hpack_entry_collector.cc",
"src/quiche/http2/test_tools/hpack_entry_collector.h",
"src/quiche/http2/test_tools/hpack_example.cc",
"src/quiche/http2/test_tools/hpack_example.h",
"src/quiche/http2/test_tools/hpack_string_collector.cc",
"src/quiche/http2/test_tools/hpack_string_collector.h",
"src/quiche/http2/test_tools/http2_constants_test_util.cc",
"src/quiche/http2/test_tools/http2_constants_test_util.h",
"src/quiche/http2/test_tools/http2_frame_builder.cc",
"src/quiche/http2/test_tools/http2_frame_builder.h",
"src/quiche/http2/test_tools/http2_frame_decoder_listener_test_util.cc",
"src/quiche/http2/test_tools/http2_frame_decoder_listener_test_util.h",
"src/quiche/http2/test_tools/http2_random.cc",
"src/quiche/http2/test_tools/http2_random.h",
"src/quiche/http2/test_tools/http2_structure_decoder_test_util.cc",
"src/quiche/http2/test_tools/http2_structure_decoder_test_util.h",
"src/quiche/http2/test_tools/http2_structures_test_util.cc",
"src/quiche/http2/test_tools/http2_structures_test_util.h",
"src/quiche/http2/test_tools/payload_decoder_base_test_util.cc",
"src/quiche/http2/test_tools/payload_decoder_base_test_util.h",
"src/quiche/http2/test_tools/random_decoder_test_base.cc",
"src/quiche/http2/test_tools/random_decoder_test_base.h",
"src/quiche/http2/test_tools/random_util.cc",
"src/quiche/http2/test_tools/random_util.h",
"src/quiche/quic/core/quic_trace_visitor.cc",
"src/quiche/quic/core/quic_trace_visitor.h",
"src/quiche/quic/platform/api/quic_expect_bug.h",
"src/quiche/quic/platform/api/quic_test.h",
"src/quiche/quic/platform/api/quic_test_loopback.h",
"src/quiche/quic/platform/api/quic_test_output.h",
"src/quiche/quic/test_tools/bad_packet_writer.cc",
"src/quiche/quic/test_tools/bad_packet_writer.h",
"src/quiche/quic/test_tools/crypto_test_utils.cc",
"src/quiche/quic/test_tools/crypto_test_utils.h",
"src/quiche/quic/test_tools/failing_proof_source.cc",
"src/quiche/quic/test_tools/failing_proof_source.h",
"src/quiche/quic/test_tools/fake_proof_source.cc",
"src/quiche/quic/test_tools/fake_proof_source.h",
"src/quiche/quic/test_tools/first_flight.cc",
"src/quiche/quic/test_tools/first_flight.h",
"src/quiche/quic/test_tools/limited_mtu_test_writer.cc",
"src/quiche/quic/test_tools/limited_mtu_test_writer.h",
"src/quiche/quic/test_tools/mock_clock.cc",
"src/quiche/quic/test_tools/mock_clock.h",
"src/quiche/quic/test_tools/mock_quic_client_promised_info.cc",
"src/quiche/quic/test_tools/mock_quic_client_promised_info.h",
"src/quiche/quic/test_tools/mock_quic_dispatcher.cc",
"src/quiche/quic/test_tools/mock_quic_dispatcher.h",
"src/quiche/quic/test_tools/mock_quic_session_visitor.cc",
"src/quiche/quic/test_tools/mock_quic_session_visitor.h",
"src/quiche/quic/test_tools/mock_quic_spdy_client_stream.cc",
"src/quiche/quic/test_tools/mock_quic_spdy_client_stream.h",
"src/quiche/quic/test_tools/mock_quic_time_wait_list_manager.cc",
"src/quiche/quic/test_tools/mock_quic_time_wait_list_manager.h",
"src/quiche/quic/test_tools/mock_random.cc",
"src/quiche/quic/test_tools/mock_random.h",
"src/quiche/quic/test_tools/packet_dropping_test_writer.cc",
"src/quiche/quic/test_tools/packet_dropping_test_writer.h",
"src/quiche/quic/test_tools/packet_reordering_writer.cc",
"src/quiche/quic/test_tools/packet_reordering_writer.h",
"src/quiche/quic/test_tools/qpack/qpack_decoder_test_utils.cc",
"src/quiche/quic/test_tools/qpack/qpack_decoder_test_utils.h",
"src/quiche/quic/test_tools/qpack/qpack_encoder_peer.cc",
"src/quiche/quic/test_tools/qpack/qpack_encoder_peer.h",
"src/quiche/quic/test_tools/qpack/qpack_offline_decoder.cc",
"src/quiche/quic/test_tools/qpack/qpack_offline_decoder.h",
"src/quiche/quic/test_tools/qpack/qpack_test_utils.cc",
"src/quiche/quic/test_tools/qpack/qpack_test_utils.h",
"src/quiche/quic/test_tools/quic_buffered_packet_store_peer.cc",
"src/quiche/quic/test_tools/quic_buffered_packet_store_peer.h",
"src/quiche/quic/test_tools/quic_client_promised_info_peer.cc",
"src/quiche/quic/test_tools/quic_client_promised_info_peer.h",
"src/quiche/quic/test_tools/quic_client_session_cache_peer.h",
"src/quiche/quic/test_tools/quic_coalesced_packet_peer.cc",
"src/quiche/quic/test_tools/quic_coalesced_packet_peer.h",
"src/quiche/quic/test_tools/quic_config_peer.cc",
"src/quiche/quic/test_tools/quic_config_peer.h",
"src/quiche/quic/test_tools/quic_connection_peer.cc",
"src/quiche/quic/test_tools/quic_connection_peer.h",
"src/quiche/quic/test_tools/quic_crypto_server_config_peer.cc",
"src/quiche/quic/test_tools/quic_crypto_server_config_peer.h",
"src/quiche/quic/test_tools/quic_dispatcher_peer.cc",
"src/quiche/quic/test_tools/quic_dispatcher_peer.h",
"src/quiche/quic/test_tools/quic_flow_controller_peer.cc",
"src/quiche/quic/test_tools/quic_flow_controller_peer.h",
"src/quiche/quic/test_tools/quic_framer_peer.cc",
"src/quiche/quic/test_tools/quic_framer_peer.h",
"src/quiche/quic/test_tools/quic_interval_deque_peer.h",
"src/quiche/quic/test_tools/quic_packet_creator_peer.cc",
"src/quiche/quic/test_tools/quic_packet_creator_peer.h",
"src/quiche/quic/test_tools/quic_path_validator_peer.cc",
"src/quiche/quic/test_tools/quic_path_validator_peer.h",
"src/quiche/quic/test_tools/quic_sent_packet_manager_peer.cc",
"src/quiche/quic/test_tools/quic_sent_packet_manager_peer.h",
"src/quiche/quic/test_tools/quic_server_session_base_peer.h",
"src/quiche/quic/test_tools/quic_session_peer.cc",
"src/quiche/quic/test_tools/quic_session_peer.h",
"src/quiche/quic/test_tools/quic_spdy_session_peer.cc",
"src/quiche/quic/test_tools/quic_spdy_session_peer.h",
"src/quiche/quic/test_tools/quic_spdy_stream_peer.cc",
"src/quiche/quic/test_tools/quic_spdy_stream_peer.h",
"src/quiche/quic/test_tools/quic_stream_id_manager_peer.cc",
"src/quiche/quic/test_tools/quic_stream_id_manager_peer.h",
"src/quiche/quic/test_tools/quic_stream_peer.cc",
"src/quiche/quic/test_tools/quic_stream_peer.h",
"src/quiche/quic/test_tools/quic_stream_send_buffer_peer.cc",
"src/quiche/quic/test_tools/quic_stream_send_buffer_peer.h",
"src/quiche/quic/test_tools/quic_stream_sequencer_buffer_peer.cc",
"src/quiche/quic/test_tools/quic_stream_sequencer_buffer_peer.h",
"src/quiche/quic/test_tools/quic_stream_sequencer_peer.cc",
"src/quiche/quic/test_tools/quic_stream_sequencer_peer.h",
"src/quiche/quic/test_tools/quic_sustained_bandwidth_recorder_peer.cc",
"src/quiche/quic/test_tools/quic_sustained_bandwidth_recorder_peer.h",
"src/quiche/quic/test_tools/quic_test_backend.cc",
"src/quiche/quic/test_tools/quic_test_backend.h",
"src/quiche/quic/test_tools/quic_test_utils.cc",
"src/quiche/quic/test_tools/quic_test_utils.h",
"src/quiche/quic/test_tools/quic_time_wait_list_manager_peer.cc",
"src/quiche/quic/test_tools/quic_time_wait_list_manager_peer.h",
"src/quiche/quic/test_tools/quic_unacked_packet_map_peer.cc",
"src/quiche/quic/test_tools/quic_unacked_packet_map_peer.h",
"src/quiche/quic/test_tools/rtt_stats_peer.cc",
"src/quiche/quic/test_tools/rtt_stats_peer.h",
"src/quiche/quic/test_tools/send_algorithm_test_utils.cc",
"src/quiche/quic/test_tools/send_algorithm_test_utils.h",
"src/quiche/quic/test_tools/simple_data_producer.cc",
"src/quiche/quic/test_tools/simple_data_producer.h",
"src/quiche/quic/test_tools/simple_quic_framer.cc",
"src/quiche/quic/test_tools/simple_quic_framer.h",
"src/quiche/quic/test_tools/simple_session_cache.cc",
"src/quiche/quic/test_tools/simple_session_cache.h",
"src/quiche/quic/test_tools/simple_session_notifier.cc",
"src/quiche/quic/test_tools/simple_session_notifier.h",
"src/quiche/quic/test_tools/simulator/actor.cc",
"src/quiche/quic/test_tools/simulator/actor.h",
"src/quiche/quic/test_tools/simulator/alarm_factory.cc",
"src/quiche/quic/test_tools/simulator/alarm_factory.h",
"src/quiche/quic/test_tools/simulator/link.cc",
"src/quiche/quic/test_tools/simulator/link.h",
"src/quiche/quic/test_tools/simulator/packet_filter.cc",
"src/quiche/quic/test_tools/simulator/packet_filter.h",
"src/quiche/quic/test_tools/simulator/port.cc",
"src/quiche/quic/test_tools/simulator/port.h",
"src/quiche/quic/test_tools/simulator/queue.cc",
"src/quiche/quic/test_tools/simulator/queue.h",
"src/quiche/quic/test_tools/simulator/quic_endpoint.cc",
"src/quiche/quic/test_tools/simulator/quic_endpoint.h",
"src/quiche/quic/test_tools/simulator/quic_endpoint_base.cc",
"src/quiche/quic/test_tools/simulator/quic_endpoint_base.h",
"src/quiche/quic/test_tools/simulator/simulator.cc",
"src/quiche/quic/test_tools/simulator/simulator.h",
"src/quiche/quic/test_tools/simulator/switch.cc",
"src/quiche/quic/test_tools/simulator/switch.h",
"src/quiche/quic/test_tools/simulator/traffic_policer.cc",
"src/quiche/quic/test_tools/simulator/traffic_policer.h",
"src/quiche/quic/test_tools/test_certificates.cc",
"src/quiche/quic/test_tools/test_certificates.h",
"src/quiche/quic/test_tools/test_ticket_crypter.cc",
"src/quiche/quic/test_tools/test_ticket_crypter.h",
"src/quiche/quic/test_tools/web_transport_resets_backend.cc",
"src/quiche/quic/test_tools/web_transport_resets_backend.h",
"src/quiche/quic/test_tools/web_transport_test_tools.h",
"src/quiche/spdy/test_tools/mock_spdy_framer_visitor.cc",
"src/quiche/spdy/test_tools/mock_spdy_framer_visitor.h",
"src/quiche/spdy/test_tools/spdy_test_utils.cc",
"src/quiche/spdy/test_tools/spdy_test_utils.h",
"src/quiche/web_transport/test_tools/mock_web_transport.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
":quiche",
":quiche_tool_support",
"//base",
"//crypto:test_support",
"//net:quic_test_flags_utils",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/boringssl",
"//third_party/protobuf:protobuf_lite",
"//third_party/quic_trace:quic_trace_proto",
]
}
static_library("quiche_tool_support") {
sources = [
"overrides/quiche_platform_impl/quiche_command_line_flags_impl.cc",
"overrides/quiche_platform_impl/quiche_command_line_flags_impl.h",
"overrides/quiche_platform_impl/quiche_default_proof_providers_impl.cc",
"overrides/quiche_platform_impl/quiche_default_proof_providers_impl.h",
"overrides/quiche_platform_impl/quiche_system_event_loop_impl.h",
"src/quiche/common/platform/api/quiche_command_line_flags.h",
"src/quiche/common/platform/api/quiche_default_proof_providers.h",
"src/quiche/common/platform/api/quiche_file_utils.cc",
"src/quiche/common/platform/api/quiche_file_utils.h",
"src/quiche/common/platform/api/quiche_system_event_loop.h",
"src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc",
"src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.h",
"src/quiche/quic/core/chlo_extractor.cc",
"src/quiche/quic/core/chlo_extractor.h",
"src/quiche/quic/core/http/quic_spdy_server_stream_base.cc",
"src/quiche/quic/core/http/quic_spdy_server_stream_base.h",
"src/quiche/quic/core/quic_buffered_packet_store.cc",
"src/quiche/quic/core/quic_buffered_packet_store.h",
"src/quiche/quic/core/quic_dispatcher.cc",
"src/quiche/quic/core/quic_dispatcher.h",
"src/quiche/quic/core/quic_packet_writer_wrapper.cc",
"src/quiche/quic/core/quic_packet_writer_wrapper.h",
"src/quiche/quic/core/quic_process_packet_interface.h",
"src/quiche/quic/core/quic_time_wait_list_manager.cc",
"src/quiche/quic/core/quic_time_wait_list_manager.h",
"src/quiche/quic/core/tls_chlo_extractor.cc",
"src/quiche/quic/core/tls_chlo_extractor.h",
"src/quiche/quic/platform/api/quic_default_proof_providers.h",
"src/quiche/quic/tools/fake_proof_verifier.h",
"src/quiche/quic/tools/quic_backend_response.cc",
"src/quiche/quic/tools/quic_backend_response.h",
"src/quiche/quic/tools/quic_client_base.cc",
"src/quiche/quic/tools/quic_client_base.h",
"src/quiche/quic/tools/quic_memory_cache_backend.cc",
"src/quiche/quic/tools/quic_memory_cache_backend.h",
"src/quiche/quic/tools/quic_simple_client_session.cc",
"src/quiche/quic/tools/quic_simple_client_session.h",
"src/quiche/quic/tools/quic_simple_client_stream.cc",
"src/quiche/quic/tools/quic_simple_client_stream.h",
"src/quiche/quic/tools/quic_simple_crypto_server_stream_helper.cc",
"src/quiche/quic/tools/quic_simple_crypto_server_stream_helper.h",
"src/quiche/quic/tools/quic_simple_dispatcher.cc",
"src/quiche/quic/tools/quic_simple_dispatcher.h",
"src/quiche/quic/tools/quic_simple_server_backend.h",
"src/quiche/quic/tools/quic_simple_server_session.cc",
"src/quiche/quic/tools/quic_simple_server_session.h",
"src/quiche/quic/tools/quic_simple_server_stream.cc",
"src/quiche/quic/tools/quic_simple_server_stream.h",
"src/quiche/quic/tools/quic_spdy_client_base.cc",
"src/quiche/quic/tools/quic_spdy_client_base.h",
"src/quiche/quic/tools/quic_spdy_server_base.h",
"src/quiche/quic/tools/quic_tcp_like_trace_converter.cc",
"src/quiche/quic/tools/quic_tcp_like_trace_converter.h",
"src/quiche/quic/tools/quic_url.cc",
"src/quiche/quic/tools/quic_url.h",
"src/quiche/quic/tools/simple_ticket_crypter.cc",
"src/quiche/quic/tools/simple_ticket_crypter.h",
"src/quiche/quic/tools/web_transport_test_visitors.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
"//base",
"//base/third_party/dynamic_annotations",
"//net",
"//third_party/protobuf:protobuf_lite",
"//url",
]
}
# QUICHE-provided CLI tools that don't use epoll.
if (!is_ios) {
# The two libraries below, quic_client_core and quic_server_core, define
# mutually exclusive command-line flags, and thus any target depending
# directly on both will fail to build. Only executable targets should depend
# on those.
source_set("quic_client_core") {
testonly = true
sources = [
"src/quiche/quic/tools/quic_toy_client.cc",
"src/quiche/quic/tools/quic_toy_client.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
"//net",
"//net:quic_test_tools",
"//net:simple_quic_tools",
]
}
source_set("quic_server_core") {
sources = [
"src/quiche/common/masque/connect_udp_datagram_payload.cc",
"src/quiche/common/masque/connect_udp_datagram_payload.h",
"src/quiche/quic/tools/connect_server_backend.cc",
"src/quiche/quic/tools/connect_server_backend.h",
"src/quiche/quic/tools/connect_tunnel.cc",
"src/quiche/quic/tools/connect_tunnel.h",
"src/quiche/quic/tools/connect_udp_tunnel.cc",
"src/quiche/quic/tools/connect_udp_tunnel.h",
"src/quiche/quic/tools/quic_name_lookup.cc",
"src/quiche/quic/tools/quic_name_lookup.h",
"src/quiche/quic/tools/quic_toy_server.cc",
"src/quiche/quic/tools/quic_toy_server.h",
]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
"//net",
"//net:simple_quic_tools",
]
}
executable("quic_packet_printer") {
sources = [ "src/quiche/quic/tools/quic_packet_printer_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
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/quiche/quic/tools/crypto_message_printer_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
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/quiche/quic/tools/quic_reject_reason_decoder_bin.cc" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
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
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
sources = [ "src/quiche/quic/tools/qpack_offline_decoder_bin.cc" ]
deps = [
"//base",
"//net",
"//net:quic_test_tools",
"//net:simple_quic_tools",
"//testing/gmock",
]
}
}
bundle_data("test_data") {
visibility = [ ":quiche_tests" ]
testonly = true
sources = [
"src/quiche/common/platform/api/testdir/README.md",
"src/quiche/common/platform/api/testdir/a/b/c/d/e",
"src/quiche/common/platform/api/testdir/a/subdir/testfile",
"src/quiche/common/platform/api/testdir/a/z",
"src/quiche/common/platform/api/testdir/testfile",
]
outputs = [ "{{bundle_resources_dir}}/" +
"{{source_root_relative_dir}}/{{source_file_part}}" ]
}
source_set("quiche_tests") {
testonly = true
sources = [
"src/quiche/binary_http/binary_http_message_test.cc",
"src/quiche/common/capsule_test.cc",
"src/quiche/common/platform/api/quiche_file_utils_test.cc",
"src/quiche/common/platform/api/quiche_hostname_utils_test.cc",
"src/quiche/common/platform/api/quiche_mem_slice_test.cc",
"src/quiche/common/platform/api/quiche_reference_counted_test.cc",
"src/quiche/common/platform/api/quiche_stack_trace_test.cc",
"src/quiche/common/platform/api/quiche_time_utils_test.cc",
"src/quiche/common/platform/api/quiche_url_utils_test.cc",
"src/quiche/common/quiche_buffer_allocator_test.cc",
"src/quiche/common/quiche_circular_deque_test.cc",
"src/quiche/common/quiche_data_reader_test.cc",
"src/quiche/common/quiche_data_writer_test.cc",
"src/quiche/common/quiche_endian_test.cc",
"src/quiche/common/quiche_ip_address_test.cc",
"src/quiche/common/quiche_linked_hash_map_test.cc",
"src/quiche/common/quiche_mem_slice_storage_test.cc",
"src/quiche/common/quiche_random_test.cc",
"src/quiche/common/quiche_text_utils_test.cc",
"src/quiche/common/simple_buffer_allocator_test.cc",
"src/quiche/common/structured_headers_generated_test.cc",
"src/quiche/common/structured_headers_test.cc",
"src/quiche/http2/adapter/event_forwarder_test.cc",
"src/quiche/http2/adapter/header_validator_test.cc",
"src/quiche/http2/adapter/noop_header_validator_test.cc",
"src/quiche/http2/adapter/oghttp2_adapter_test.cc",
"src/quiche/http2/adapter/oghttp2_session_test.cc",
"src/quiche/http2/adapter/window_manager_test.cc",
"src/quiche/http2/core/priority_write_scheduler_test.cc",
"src/quiche/http2/decoder/decode_buffer_test.cc",
"src/quiche/http2/decoder/decode_http2_structures_test.cc",
"src/quiche/http2/decoder/http2_frame_decoder_test.cc",
"src/quiche/http2/decoder/http2_structure_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/altsvc_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/continuation_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/data_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/goaway_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/headers_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/ping_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/priority_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/priority_update_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/push_promise_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/rst_stream_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/settings_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/unknown_payload_decoder_test.cc",
"src/quiche/http2/decoder/payload_decoders/window_update_payload_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_block_collector_test.cc",
"src/quiche/http2/hpack/decoder/hpack_block_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_decoder_state_test.cc",
"src/quiche/http2/hpack/decoder/hpack_decoder_string_buffer_test.cc",
"src/quiche/http2/hpack/decoder/hpack_decoder_tables_test.cc",
"src/quiche/http2/hpack/decoder/hpack_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_entry_collector_test.cc",
"src/quiche/http2/hpack/decoder/hpack_entry_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_entry_type_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_string_decoder_test.cc",
"src/quiche/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc",
"src/quiche/http2/hpack/http2_hpack_constants_test.cc",
"src/quiche/http2/hpack/huffman/hpack_huffman_decoder_test.cc",
"src/quiche/http2/hpack/huffman/hpack_huffman_encoder_test.cc",
"src/quiche/http2/hpack/huffman/hpack_huffman_transcoder_test.cc",
"src/quiche/http2/hpack/varint/hpack_varint_decoder_test.cc",
"src/quiche/http2/hpack/varint/hpack_varint_encoder_test.cc",
"src/quiche/http2/hpack/varint/hpack_varint_round_trip_test.cc",
"src/quiche/http2/http2_constants_test.cc",
"src/quiche/http2/http2_structures_test.cc",
"src/quiche/http2/test_tools/hpack_block_builder_test.cc",
"src/quiche/http2/test_tools/http2_random_test.cc",
"src/quiche/oblivious_http/buffers/oblivious_http_integration_test.cc",
"src/quiche/oblivious_http/buffers/oblivious_http_request_test.cc",
"src/quiche/oblivious_http/buffers/oblivious_http_response_test.cc",
"src/quiche/oblivious_http/common/oblivious_http_header_key_config_test.cc",
"src/quiche/oblivious_http/oblivious_http_client_test.cc",
"src/quiche/oblivious_http/oblivious_http_gateway_test.cc",
"src/quiche/quic/core/congestion_control/bandwidth_sampler_test.cc",
"src/quiche/quic/core/congestion_control/bbr2_simulator_test.cc",
"src/quiche/quic/core/congestion_control/bbr_sender_test.cc",
"src/quiche/quic/core/congestion_control/cubic_bytes_test.cc",
"src/quiche/quic/core/congestion_control/general_loss_algorithm_test.cc",
"src/quiche/quic/core/congestion_control/hybrid_slow_start_test.cc",
"src/quiche/quic/core/congestion_control/pacing_sender_test.cc",
"src/quiche/quic/core/congestion_control/prr_sender_test.cc",
"src/quiche/quic/core/congestion_control/rtt_stats_test.cc",
"src/quiche/quic/core/congestion_control/send_algorithm_test.cc",
"src/quiche/quic/core/congestion_control/tcp_cubic_sender_bytes_test.cc",
"src/quiche/quic/core/congestion_control/uber_loss_algorithm_test.cc",
"src/quiche/quic/core/congestion_control/windowed_filter_test.cc",
"src/quiche/quic/core/crypto/aes_128_gcm_12_decrypter_test.cc",
"src/quiche/quic/core/crypto/aes_128_gcm_12_encrypter_test.cc",
"src/quiche/quic/core/crypto/aes_128_gcm_decrypter_test.cc",
"src/quiche/quic/core/crypto/aes_128_gcm_encrypter_test.cc",
"src/quiche/quic/core/crypto/aes_256_gcm_decrypter_test.cc",
"src/quiche/quic/core/crypto/aes_256_gcm_encrypter_test.cc",
"src/quiche/quic/core/crypto/cert_compressor_test.cc",
"src/quiche/quic/core/crypto/certificate_util_test.cc",
"src/quiche/quic/core/crypto/certificate_view_test.cc",
"src/quiche/quic/core/crypto/chacha20_poly1305_decrypter_test.cc",
"src/quiche/quic/core/crypto/chacha20_poly1305_encrypter_test.cc",
"src/quiche/quic/core/crypto/chacha20_poly1305_tls_decrypter_test.cc",
"src/quiche/quic/core/crypto/chacha20_poly1305_tls_encrypter_test.cc",
"src/quiche/quic/core/crypto/channel_id_test.cc",
"src/quiche/quic/core/crypto/client_proof_source_test.cc",
"src/quiche/quic/core/crypto/crypto_framer_test.cc",
"src/quiche/quic/core/crypto/crypto_handshake_message_test.cc",
"src/quiche/quic/core/crypto/crypto_secret_boxer_test.cc",
"src/quiche/quic/core/crypto/crypto_server_test.cc",
"src/quiche/quic/core/crypto/crypto_utils_test.cc",
"src/quiche/quic/core/crypto/curve25519_key_exchange_test.cc",
"src/quiche/quic/core/crypto/null_decrypter_test.cc",
"src/quiche/quic/core/crypto/null_encrypter_test.cc",
"src/quiche/quic/core/crypto/p256_key_exchange_test.cc",
"src/quiche/quic/core/crypto/proof_source_x509_test.cc",
"src/quiche/quic/core/crypto/quic_client_session_cache_test.cc",
"src/quiche/quic/core/crypto/quic_compressed_certs_cache_test.cc",
"src/quiche/quic/core/crypto/quic_crypto_client_config_test.cc",
"src/quiche/quic/core/crypto/quic_crypto_server_config_test.cc",
"src/quiche/quic/core/crypto/quic_hkdf_test.cc",
"src/quiche/quic/core/crypto/transport_parameters_test.cc",
"src/quiche/quic/core/crypto/web_transport_fingerprint_proof_verifier_test.cc",
"src/quiche/quic/core/frames/quic_frames_test.cc",
"src/quiche/quic/core/http/http_decoder_test.cc",
"src/quiche/quic/core/http/http_encoder_test.cc",
"src/quiche/quic/core/http/http_frames_test.cc",
"src/quiche/quic/core/http/quic_client_promised_info_test.cc",
"src/quiche/quic/core/http/quic_client_push_promise_index_test.cc",
"src/quiche/quic/core/http/quic_header_list_test.cc",
"src/quiche/quic/core/http/quic_headers_stream_test.cc",
"src/quiche/quic/core/http/quic_receive_control_stream_test.cc",
"src/quiche/quic/core/http/quic_send_control_stream_test.cc",
"src/quiche/quic/core/http/quic_server_session_base_test.cc",
"src/quiche/quic/core/http/quic_spdy_session_test.cc",
"src/quiche/quic/core/http/quic_spdy_stream_body_manager_test.cc",
"src/quiche/quic/core/http/quic_spdy_stream_test.cc",
"src/quiche/quic/core/http/spdy_server_push_utils_test.cc",
"src/quiche/quic/core/http/spdy_utils_test.cc",
"src/quiche/quic/core/http/web_transport_http3_test.cc",
"src/quiche/quic/core/legacy_quic_stream_id_manager_test.cc",
"src/quiche/quic/core/packet_number_indexed_queue_test.cc",
"src/quiche/quic/core/qpack/qpack_blocking_manager_test.cc",
"src/quiche/quic/core/qpack/qpack_decoded_headers_accumulator_test.cc",
"src/quiche/quic/core/qpack/qpack_decoder_stream_receiver_test.cc",
"src/quiche/quic/core/qpack/qpack_decoder_stream_sender_test.cc",
"src/quiche/quic/core/qpack/qpack_decoder_test.cc",
"src/quiche/quic/core/qpack/qpack_encoder_stream_receiver_test.cc",
"src/quiche/quic/core/qpack/qpack_encoder_stream_sender_test.cc",
"src/quiche/quic/core/qpack/qpack_encoder_test.cc",
"src/quiche/quic/core/qpack/qpack_header_table_test.cc",
"src/quiche/quic/core/qpack/qpack_index_conversions_test.cc",
"src/quiche/quic/core/qpack/qpack_instruction_decoder_test.cc",
"src/quiche/quic/core/qpack/qpack_instruction_encoder_test.cc",
"src/quiche/quic/core/qpack/qpack_receive_stream_test.cc",
"src/quiche/quic/core/qpack/qpack_required_insert_count_test.cc",
"src/quiche/quic/core/qpack/qpack_round_trip_test.cc",
"src/quiche/quic/core/qpack/qpack_send_stream_test.cc",
"src/quiche/quic/core/qpack/qpack_static_table_test.cc",
"src/quiche/quic/core/qpack/value_splitting_header_list_test.cc",
"src/quiche/quic/core/quic_alarm_test.cc",
"src/quiche/quic/core/quic_arena_scoped_ptr_test.cc",
"src/quiche/quic/core/quic_bandwidth_test.cc",
"src/quiche/quic/core/quic_buffered_packet_store_test.cc",
"src/quiche/quic/core/quic_chaos_protector_test.cc",
"src/quiche/quic/core/quic_coalesced_packet_test.cc",
"src/quiche/quic/core/quic_config_test.cc",
"src/quiche/quic/core/quic_connection_context_test.cc",
"src/quiche/quic/core/quic_connection_id_manager_test.cc",
"src/quiche/quic/core/quic_connection_id_test.cc",
"src/quiche/quic/core/quic_connection_test.cc",
"src/quiche/quic/core/quic_control_frame_manager_test.cc",
"src/quiche/quic/core/quic_crypto_client_handshaker_test.cc",
"src/quiche/quic/core/quic_crypto_client_stream_test.cc",
"src/quiche/quic/core/quic_crypto_server_stream_test.cc",
"src/quiche/quic/core/quic_crypto_stream_test.cc",
"src/quiche/quic/core/quic_data_writer_test.cc",
"src/quiche/quic/core/quic_datagram_queue_test.cc",
"src/quiche/quic/core/quic_dispatcher_test.cc",
"src/quiche/quic/core/quic_error_codes_test.cc",
"src/quiche/quic/core/quic_flow_controller_test.cc",
"src/quiche/quic/core/quic_framer_test.cc",
"src/quiche/quic/core/quic_idle_network_detector_test.cc",
"src/quiche/quic/core/quic_interval_deque_test.cc",
"src/quiche/quic/core/quic_interval_set_test.cc",
"src/quiche/quic/core/quic_interval_test.cc",
"src/quiche/quic/core/quic_lru_cache_test.cc",
"src/quiche/quic/core/quic_network_blackhole_detector_test.cc",
"src/quiche/quic/core/quic_one_block_arena_test.cc",
"src/quiche/quic/core/quic_packet_creator_test.cc",
"src/quiche/quic/core/quic_packet_number_test.cc",
"src/quiche/quic/core/quic_packets_test.cc",
"src/quiche/quic/core/quic_path_validator_test.cc",
"src/quiche/quic/core/quic_received_packet_manager_test.cc",
"src/quiche/quic/core/quic_sent_packet_manager_test.cc",
"src/quiche/quic/core/quic_server_id_test.cc",
"src/quiche/quic/core/quic_session_test.cc",
"src/quiche/quic/core/quic_socket_address_coder_test.cc",
"src/quiche/quic/core/quic_stream_id_manager_test.cc",
"src/quiche/quic/core/quic_stream_priority_test.cc",
"src/quiche/quic/core/quic_stream_send_buffer_test.cc",
"src/quiche/quic/core/quic_stream_sequencer_buffer_test.cc",
"src/quiche/quic/core/quic_stream_sequencer_test.cc",
"src/quiche/quic/core/quic_stream_test.cc",
"src/quiche/quic/core/quic_sustained_bandwidth_recorder_test.cc",
"src/quiche/quic/core/quic_tag_test.cc",
"src/quiche/quic/core/quic_time_accumulator_test.cc",
"src/quiche/quic/core/quic_time_test.cc",
"src/quiche/quic/core/quic_time_wait_list_manager_test.cc",
"src/quiche/quic/core/quic_trace_visitor_test.cc",
"src/quiche/quic/core/quic_unacked_packet_map_test.cc",
"src/quiche/quic/core/quic_utils_test.cc",
"src/quiche/quic/core/quic_version_manager_test.cc",
"src/quiche/quic/core/quic_versions_test.cc",
"src/quiche/quic/core/quic_write_blocked_list_test.cc",
"src/quiche/quic/core/tls_chlo_extractor_test.cc",
"src/quiche/quic/core/tls_client_handshaker_test.cc",
"src/quiche/quic/core/uber_quic_stream_id_manager_test.cc",
"src/quiche/quic/core/uber_received_packet_manager_test.cc",
"src/quiche/quic/platform/api/quic_socket_address_test.cc",
"src/quiche/quic/test_tools/crypto_test_utils_test.cc",
"src/quiche/quic/test_tools/quic_test_utils_test.cc",
"src/quiche/quic/test_tools/simple_session_notifier_test.cc",
"src/quiche/quic/test_tools/simulator/quic_endpoint_test.cc",
"src/quiche/quic/test_tools/simulator/simulator_test.cc",
"src/quiche/quic/tools/quic_memory_cache_backend_test.cc",
"src/quiche/quic/tools/quic_tcp_like_trace_converter_test.cc",
"src/quiche/quic/tools/simple_ticket_crypter_test.cc",
"src/quiche/spdy/core/array_output_buffer_test.cc",
"src/quiche/spdy/core/hpack/hpack_decoder_adapter_test.cc",
"src/quiche/spdy/core/hpack/hpack_encoder_test.cc",
"src/quiche/spdy/core/hpack/hpack_entry_test.cc",
"src/quiche/spdy/core/hpack/hpack_header_table_test.cc",
"src/quiche/spdy/core/hpack/hpack_output_stream_test.cc",
"src/quiche/spdy/core/hpack/hpack_round_trip_test.cc",
"src/quiche/spdy/core/hpack/hpack_static_table_test.cc",
"src/quiche/spdy/core/http2_header_block_test.cc",
"src/quiche/spdy/core/http2_header_storage_test.cc",
"src/quiche/spdy/core/spdy_alt_svc_wire_format_test.cc",
"src/quiche/spdy/core/spdy_frame_builder_test.cc",
"src/quiche/spdy/core/spdy_framer_test.cc",
"src/quiche/spdy/core/spdy_intrusive_list_test.cc",
"src/quiche/spdy/core/spdy_pinnable_buffer_piece_test.cc",
"src/quiche/spdy/core/spdy_prefixed_buffer_reader_test.cc",
"src/quiche/spdy/core/spdy_protocol_test.cc",
"src/quiche/spdy/core/spdy_simple_arena_test.cc",
]
data = [ "src/quiche/common/platform/api/testdir/" ]
configs += [ ":quiche_internal_config" ]
public_configs = [ ":quiche_config" ]
deps = [
"//net",
"//net:quic_test_tools",
"//net:simple_quic_tools",
"//net:spdy_test_tools",
"//testing/gmock",
"//testing/gtest",
]
if (is_ios) {
deps += [ ":test_data" ]
}
public_deps = []
if (build_epoll_based_tools) {
sources += [
"overrides/quiche_platform_impl/quiche_command_line_flags_test.cc",
"src/quiche/quic/core/chlo_extractor_test.cc",
"src/quiche/quic/core/http/end_to_end_test.cc",
"src/quiche/quic/core/http/quic_spdy_client_session_test.cc",
"src/quiche/quic/core/http/quic_spdy_client_stream_test.cc",
"src/quiche/quic/core/http/quic_spdy_server_stream_base_test.cc",
"src/quiche/quic/tools/quic_default_client_test.cc",
"src/quiche/quic/tools/quic_server_test.cc",
"src/quiche/quic/tools/quic_simple_server_session_test.cc",
"src/quiche/quic/tools/quic_simple_server_stream_test.cc",
"src/quiche/quic/tools/quic_url_test.cc",
]
public_deps += [
":epoll_test_support",
":epoll_tool_support",
]
}
}
fuzzer_test("net_quic_framer_fuzzer") {
sources = [ "src/quiche/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/quiche/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/quiche/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/quiche/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/quiche/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/quiche/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")
}
@ -210,9 +208,3 @@ if (current_toolchain == host_toolchain) {
}
}
}
fuzzer_test("brotli_fuzzer") {
sources = [ "fuzz/decode_fuzzer.c" ]
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 || is_robolectric) {
@ -98,306 +96,3 @@ component("url") {
]
}
}
if (is_android || is_robolectric) {
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("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",
]
if (is_robolectric) {
# Make jni.h available.
configs += [ "//third_party/jdk" ]
}
}
static_library("origin_android") {
sources = [ "android/origin_android.cc" ]
deps = [
":gurl_android",
":url",
":url_jni_headers",
"//base",
]
}
}
if (is_android) {
android_library("url_java") {
sources = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ]
deps = [ "//base:jni_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",
"//build/android:build_java",
"//third_party/android_deps:com_google_errorprone_error_prone_annotations_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//url/mojom:url_mojom_gurl_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
android_library("origin_java") {
sources = [ "android/java/src/org/chromium/url/Origin.java" ]
deps = [
":gurl_java",
"//base:jni_java",
"//build/android:build_java",
"//mojo/public/java:bindings_java",
"//mojo/public/mojom/base:base_java",
"//url/mojom:url_mojom_origin_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
}
}
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("android_test_helper") {
testonly = true
sources = [
"android/gurl_java_test_helper.cc",
"android/origin_java_test_helper.cc",
]
deps = [
":gurl_android",
":j_test_jni_headers",
":origin_android",
":url",
"//base/test:test_support",
]
}
android_library("android_test_helper_java") {
testonly = true
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
sources = [
"android/javatests/src/org/chromium/url/GURLJavaTestHelper.java",
"android/javatests/src/org/chromium/url/OriginJavaTestHelper.java",
]
deps = [
":gurl_java",
":origin_java",
"//base:base_java_test_support",
"//base:jni_java",
]
}
# 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.
robolectric_library("gurl_junit_shadows") {
sources = [ "android/test/java/src/org/chromium/url/ShadowGURL.java" ]
deps = [
":gurl_java",
":gurl_junit_test_support",
]
}
android_library("url_java_unit_tests") {
testonly = true
sources = [
"android/javatests/src/org/chromium/url/GURLJavaTest.java",
"android/javatests/src/org/chromium/url/JUnitTestGURLsTest.java",
"android/javatests/src/org/chromium/url/OriginJavaTest.java",
]
deps = [
":android_test_helper_java",
":gurl_java",
":gurl_junit_test_support",
":origin_java",
"//base:base_java",
"//base:base_java_test_support",
"//base:jni_java",
"//content/public/test/android:content_java_test_support",
"//mojo/public/mojom/base:base_java",
"//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",
"//url/mojom:url_mojom_gurl_java",
"//url/mojom:url_mojom_origin_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("j_test_jni_headers") {
testonly = true
sources = [
"android/javatests/src/org/chromium/url/GURLJavaTestHelper.java",
"android/javatests/src/org/chromium/url/OriginJavaTestHelper.java",
]
}
robolectric_library("gurl_junit_tests") {
sources = [ "android/junit/src/org/chromium/url/ShadowGURLTest.java" ]
deps = [
":gurl_java",
":gurl_junit_shadows",
":gurl_junit_test_support",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//base/test:test_support_java",
"//third_party/junit",
]
}
}
if (is_robolectric) {
# Use this in robolectric_binary() targets if you just need GURL and //base
# functionality. Otherwise, define a custom shared_library().
shared_library("libgurl_robolectric") {
sources = [ "android/robolectric_test_main.cc" ]
deps = [
"//base",
"//url:gurl_android",
]
# Make jni.h available.
configs += [ "//third_party/jdk" ]
}
}