mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
build: Remove tests and minimize
This commit is contained in:
parent
bbcdb15861
commit
d14b4ab1d4
1614
src/BUILD.gn
1614
src/BUILD.gn
File diff suppressed because it is too large
Load Diff
1971
src/base/BUILD.gn
1971
src/base/BUILD.gn
File diff suppressed because it is too large
Load Diff
@ -9,15 +9,14 @@ import("//build/util/process_version.gni")
|
|||||||
import("//build/util/version.gni")
|
import("//build/util/version.gni")
|
||||||
import("//components/cronet/native/include/headers.gni")
|
import("//components/cronet/native/include/headers.gni")
|
||||||
import("//components/grpc_support/include/headers.gni")
|
import("//components/grpc_support/include/headers.gni")
|
||||||
import("//testing/test.gni")
|
|
||||||
|
|
||||||
declare_args() {
|
declare_args() {
|
||||||
# If set to true, this will remove histogram manager to reduce binary size.
|
# If set to true, this will remove histogram manager to reduce binary size.
|
||||||
disable_histogram_support = is_mac || is_win
|
disable_histogram_support = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable histogram support is not allowed on Android.
|
# Disable histogram support is not allowed on Android.
|
||||||
assert(!disable_histogram_support || !is_android)
|
#assert(!disable_histogram_support || !is_android)
|
||||||
|
|
||||||
buildflag_header("cronet_buildflags") {
|
buildflag_header("cronet_buildflags") {
|
||||||
header = "cronet_buildflags.h"
|
header = "cronet_buildflags.h"
|
||||||
@ -59,7 +58,6 @@ source_set("cronet_common") {
|
|||||||
"//base",
|
"//base",
|
||||||
"//components/prefs:prefs",
|
"//components/prefs:prefs",
|
||||||
"//net",
|
"//net",
|
||||||
"//third_party/metrics_proto",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!disable_histogram_support) {
|
if (!disable_histogram_support) {
|
||||||
@ -75,24 +73,6 @@ source_set("metrics_util") {
|
|||||||
deps = [ "//base" ]
|
deps = [ "//base" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Unit tests for Cronet common implementation.
|
|
||||||
source_set("cronet_common_unittests") {
|
|
||||||
testonly = true
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":cronet_common",
|
|
||||||
"//components/prefs:test_support",
|
|
||||||
"//net:test_support",
|
|
||||||
]
|
|
||||||
|
|
||||||
sources = [
|
|
||||||
"host_cache_persistence_manager_unittest.cc",
|
|
||||||
"network_tasks_unittest.cc",
|
|
||||||
"stale_host_resolver_unittest.cc",
|
|
||||||
"url_request_context_config_unittest.cc",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
# For platforms on which the native Cronet library is used, build the library,
|
# For platforms on which the native Cronet library is used, build the library,
|
||||||
# a cronet_tests binary that exercises it, and a unit-tests binary.
|
# a cronet_tests binary that exercises it, and a unit-tests binary.
|
||||||
# Android and iOS have their own platform-specific rules to build Cronet.
|
# Android and iOS have their own platform-specific rules to build Cronet.
|
||||||
@ -139,50 +119,6 @@ if (is_android) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test("cronet_tests") {
|
|
||||||
deps = [
|
|
||||||
":cronet_common",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//components/cronet/native:cronet_native_impl",
|
|
||||||
"//components/cronet/native/test:cronet_native_tests",
|
|
||||||
"//net",
|
|
||||||
]
|
|
||||||
|
|
||||||
sources = [
|
|
||||||
"cronet_global_state_stubs.cc",
|
|
||||||
"run_all_unittests.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
defines = [ "CRONET_TESTS_IMPLEMENTATION" ]
|
|
||||||
|
|
||||||
if ((is_linux || is_chromeos) && !is_component_build) {
|
|
||||||
public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_fuchsia) {
|
|
||||||
use_cfv1 = false
|
|
||||||
additional_manifest_fragments =
|
|
||||||
[ "//build/config/fuchsia/test/network.shard.test-cml" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
test("cronet_unittests") {
|
|
||||||
deps = [
|
|
||||||
":cronet_common",
|
|
||||||
":cronet_common_unittests",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//components/cronet/native:cronet_native_unittests",
|
|
||||||
"//net",
|
|
||||||
]
|
|
||||||
|
|
||||||
sources = [
|
|
||||||
"cronet_global_state_stubs.cc",
|
|
||||||
"run_all_unittests.cc",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
_package_dir = "$root_out_dir/cronet"
|
_package_dir = "$root_out_dir/cronet"
|
||||||
|
|
||||||
# Generate LICENSE file by recursively joining all dependent licenses.
|
# Generate LICENSE file by recursively joining all dependent licenses.
|
||||||
@ -228,22 +164,6 @@ if (is_android) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
executable("cronet_native_perf_test") {
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"native/perftest/main.cc",
|
|
||||||
"native/perftest/perf_test.cc",
|
|
||||||
]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//components/cronet",
|
|
||||||
"//components/cronet/native:cronet_native_headers",
|
|
||||||
"//components/cronet/native/test:cronet_native_tests",
|
|
||||||
"//components/cronet/native/test:cronet_native_testutil",
|
|
||||||
"//net:test_support",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
executable("cronet_sample") {
|
executable("cronet_sample") {
|
||||||
testonly = true
|
testonly = true
|
||||||
sources = [
|
sources = [
|
||||||
@ -261,12 +181,4 @@ if (is_android) {
|
|||||||
public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test("cronet_sample_test") {
|
|
||||||
sources = [ "native/sample/test/sample_test.cc" ]
|
|
||||||
deps = [
|
|
||||||
":cronet_sample",
|
|
||||||
"//testing/gtest:gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
import("//components/cronet/native/include/headers.gni")
|
import("//components/cronet/native/include/headers.gni")
|
||||||
import("//components/grpc_support/include/headers.gni")
|
import("//components/grpc_support/include/headers.gni")
|
||||||
import("//testing/test.gni")
|
|
||||||
|
|
||||||
config("cronet_native_include_config") {
|
config("cronet_native_include_config") {
|
||||||
include_dirs = [
|
include_dirs = [
|
||||||
@ -70,29 +69,3 @@ source_set("cronet_native_impl") {
|
|||||||
"generated/cronet.idl_impl_struct.cc",
|
"generated/cronet.idl_impl_struct.cc",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Unit tests for Cronet native API. Depends on cronet_native_impl to test
|
|
||||||
# implementation details.
|
|
||||||
source_set("cronet_native_unittests") {
|
|
||||||
testonly = true
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":cronet_native_impl",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//components/cronet/native/test:cronet_native_testutil",
|
|
||||||
"//net:test_support",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
|
|
||||||
configs += [ ":cronet_native_include_config" ]
|
|
||||||
|
|
||||||
sources = [
|
|
||||||
"engine_unittest.cc",
|
|
||||||
"native_metrics_util_test.cc",
|
|
||||||
"runnables_unittest.cc",
|
|
||||||
|
|
||||||
# Generated from cronet.idl.
|
|
||||||
"generated/cronet.idl_impl_interface_unittest.cc",
|
|
||||||
"generated/cronet.idl_impl_struct_unittest.cc",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -17,33 +17,3 @@ source_set("grpc_support") {
|
|||||||
"//url",
|
"//url",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Depends on ":grpc_support" implementation.
|
|
||||||
source_set("bidirectional_stream_unittest") {
|
|
||||||
testonly = true
|
|
||||||
sources = [ "bidirectional_stream_unittest.cc" ]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":grpc_support",
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:test_support",
|
|
||||||
]
|
|
||||||
|
|
||||||
public_deps = [ "//components/grpc_support/test:get_stream_engine_header" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
# Depends on ":headers" to avoid ":grpc_support" implementation.
|
|
||||||
source_set("bidirectional_stream_test") {
|
|
||||||
testonly = true
|
|
||||||
sources = [ "bidirectional_stream_unittest.cc" ]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":headers",
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:test_support",
|
|
||||||
]
|
|
||||||
|
|
||||||
public_deps = [ "//components/grpc_support/test:get_stream_engine_header" ]
|
|
||||||
}
|
|
||||||
|
@ -66,55 +66,3 @@ component("prefs") {
|
|||||||
deps += [ "android:jni_headers" ]
|
deps += [ "android:jni_headers" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static_library("test_support") {
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"mock_pref_change_callback.cc",
|
|
||||||
"mock_pref_change_callback.h",
|
|
||||||
"pref_store_observer_mock.cc",
|
|
||||||
"pref_store_observer_mock.h",
|
|
||||||
"pref_test_utils.cc",
|
|
||||||
"pref_test_utils.h",
|
|
||||||
"testing_pref_service.cc",
|
|
||||||
"testing_pref_service.h",
|
|
||||||
"testing_pref_store.cc",
|
|
||||||
"testing_pref_store.h",
|
|
||||||
]
|
|
||||||
|
|
||||||
public_deps = [ ":prefs" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
source_set("unit_tests") {
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"default_pref_store_unittest.cc",
|
|
||||||
"in_memory_pref_store_unittest.cc",
|
|
||||||
"json_pref_store_unittest.cc",
|
|
||||||
"overlay_user_pref_store_unittest.cc",
|
|
||||||
"persistent_pref_store_unittest.cc",
|
|
||||||
"persistent_pref_store_unittest.h",
|
|
||||||
"pref_change_registrar_unittest.cc",
|
|
||||||
"pref_member_unittest.cc",
|
|
||||||
"pref_notifier_impl_unittest.cc",
|
|
||||||
"pref_service_unittest.cc",
|
|
||||||
"pref_value_map_unittest.cc",
|
|
||||||
"pref_value_store_unittest.cc",
|
|
||||||
"scoped_user_pref_update_unittest.cc",
|
|
||||||
"segregated_pref_store_unittest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":test_support",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//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") {
|
source_set("channel") {
|
||||||
sources = [ "channel.h" ]
|
sources = [ "channel.h" ]
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
import("//build/buildflag_header.gni")
|
import("//build/buildflag_header.gni")
|
||||||
import("//build/config/chromeos/ui_mode.gni")
|
import("//build/config/chromeos/ui_mode.gni")
|
||||||
import("//crypto/features.gni")
|
import("//crypto/features.gni")
|
||||||
import("//testing/test.gni")
|
|
||||||
|
|
||||||
buildflag_header("buildflags") {
|
buildflag_header("buildflags") {
|
||||||
header = "crypto_buildflags.h"
|
header = "crypto_buildflags.h"
|
||||||
@ -144,70 +143,10 @@ component("crypto") {
|
|||||||
defines = [ "CRYPTO_IMPLEMENTATION" ]
|
defines = [ "CRYPTO_IMPLEMENTATION" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
test("crypto_unittests") {
|
config("platform_config") {
|
||||||
sources = [
|
if (use_nss_certs && is_clang) {
|
||||||
"aead_unittest.cc",
|
# There is a broken header guard in /usr/include/nss/secmod.h:
|
||||||
"ec_private_key_unittest.cc",
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=884072
|
||||||
"ec_signature_creator_unittest.cc",
|
cflags = [ "-Wno-header-guard" ]
|
||||||
"encryptor_unittest.cc",
|
|
||||||
"hmac_unittest.cc",
|
|
||||||
"p224_spake_unittest.cc",
|
|
||||||
"random_unittest.cc",
|
|
||||||
"rsa_private_key_unittest.cc",
|
|
||||||
"secure_hash_unittest.cc",
|
|
||||||
"sha2_unittest.cc",
|
|
||||||
"signature_creator_unittest.cc",
|
|
||||||
"signature_verifier_unittest.cc",
|
|
||||||
"symmetric_key_unittest.cc",
|
|
||||||
"unexportable_key_unittest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Some files are built when NSS is used for the platform certificate library.
|
|
||||||
if (use_nss_certs) {
|
|
||||||
sources += [
|
|
||||||
"nss_key_util_unittest.cc",
|
|
||||||
"nss_util_unittest.cc",
|
|
||||||
]
|
|
||||||
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",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
3768
src/net/BUILD.gn
3768
src/net/BUILD.gn
File diff suppressed because it is too large
Load Diff
@ -3,8 +3,6 @@
|
|||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
import("//net/features.gni")
|
import("//net/features.gni")
|
||||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
||||||
import("//third_party/protobuf/proto_library.gni")
|
|
||||||
|
|
||||||
enable_built_in_dns = !is_ios
|
enable_built_in_dns = !is_ios
|
||||||
|
|
||||||
@ -17,12 +15,7 @@ source_set("dns") {
|
|||||||
|
|
||||||
# Internals only intended for use inside network stack (and tests).
|
# Internals only intended for use inside network stack (and tests).
|
||||||
friend = [
|
friend = [
|
||||||
"//chrome/browser:test_support",
|
|
||||||
"//chrome/test/*",
|
|
||||||
"//components/certificate_transparency:unit_tests",
|
|
||||||
"//components/cronet/*",
|
|
||||||
"//net/*",
|
"//net/*",
|
||||||
"//services/network/*",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
public = []
|
public = []
|
||||||
@ -185,30 +178,7 @@ source_set("host_resolver") {
|
|||||||
# Restricted access so we can keep track of all usage external to the
|
# Restricted access so we can keep track of all usage external to the
|
||||||
# network stack and network service.
|
# network stack and network service.
|
||||||
friend = [
|
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/*",
|
"//net/*",
|
||||||
"//services/network/*",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
@ -248,16 +218,7 @@ source_set("host_resolver_manager") {
|
|||||||
# Restricted access so we can keep track of all usage external to the
|
# Restricted access so we can keep track of all usage external to the
|
||||||
# network stack and network service.
|
# network stack and network service.
|
||||||
friend = [
|
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/*",
|
"//net/*",
|
||||||
"//services/network/*",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
sources = [ "host_resolver_manager.h" ]
|
sources = [ "host_resolver_manager.h" ]
|
||||||
@ -287,24 +248,7 @@ source_set("dns_client") {
|
|||||||
# Restricted access so we can keep track of all usage external to the
|
# Restricted access so we can keep track of all usage external to the
|
||||||
# network stack.
|
# network stack.
|
||||||
friend = [
|
friend = [
|
||||||
# chrome/browser/local_discovery/service_discovery_client_impl.cc
|
|
||||||
# Result parsing utilities for parsing results read through MdnsClient.
|
|
||||||
# TODO(crbug.com/874662): Remove once migrated to network service.
|
|
||||||
"//chrome/browser",
|
|
||||||
|
|
||||||
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.cc
|
|
||||||
# Result parsing for results read through MdnsClient.
|
|
||||||
# TODO(crbug.com/902531): Remove once migrated to network service.
|
|
||||||
"//chrome/browser/chromeos",
|
|
||||||
|
|
||||||
# Tests and test support
|
|
||||||
"//chrome/browser:test_support",
|
|
||||||
"//chrome/test/*",
|
|
||||||
|
|
||||||
# Network stack/service
|
|
||||||
"//components/certificate_transparency/*",
|
|
||||||
"//net/*",
|
"//net/*",
|
||||||
"//services/network/*",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
@ -340,29 +284,7 @@ source_set("mdns_client") {
|
|||||||
# Restricted access so we can keep track of all usage external to the
|
# Restricted access so we can keep track of all usage external to the
|
||||||
# network stack.
|
# network stack.
|
||||||
friend = [
|
friend = [
|
||||||
# chrome/browser/local_discovery/service_discovery_client_mdns.h
|
|
||||||
# chrome/browser/local_discovery/service_discovery_client_impl.h
|
|
||||||
# Makes MDNS queries using MDnsClient.
|
|
||||||
# TODO(crbug.com/874662): Remove once migrated to network service.
|
|
||||||
"//chrome/browser",
|
|
||||||
|
|
||||||
# chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
|
|
||||||
# Creates MDnsClient instance and passes to ServiceDiscoveryClientImpl.
|
|
||||||
# TODO(crbug.com/874662): Remove once discovery client migrated.
|
|
||||||
"//chrome/tools/service_discovery_sniffer",
|
|
||||||
|
|
||||||
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.h
|
|
||||||
# chrome/browser/ash/smb_client/discovery/mdns_host_locator.cc
|
|
||||||
# Makes MDNS queries using MDnsClient.
|
|
||||||
# TODO(crbug.com/902531): Remove once migrated to network service.
|
|
||||||
"//chrome/browser/chromeos",
|
|
||||||
|
|
||||||
# Tests and test support
|
|
||||||
"//chrome/browser:test_support",
|
|
||||||
|
|
||||||
# Network stack/service
|
|
||||||
"//net/*",
|
"//net/*",
|
||||||
"//services/network/*",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
public = []
|
public = []
|
||||||
@ -379,231 +301,3 @@ source_set("mdns_client") {
|
|||||||
]
|
]
|
||||||
public_deps = [ "//net:net_public_deps" ]
|
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_transaction_unittest.cc",
|
|
||||||
"dns_udp_tracker_unittest.cc",
|
|
||||||
"dns_util_unittest.cc",
|
|
||||||
"host_cache_unittest.cc",
|
|
||||||
"host_resolver_manager_unittest.cc",
|
|
||||||
"https_record_rdata_unittest.cc",
|
|
||||||
"httpssvc_metrics_unittest.cc",
|
|
||||||
"mapped_host_resolver_unittest.cc",
|
|
||||||
"nsswitch_reader_unittest.cc",
|
|
||||||
"record_parsed_unittest.cc",
|
|
||||||
"record_rdata_unittest.cc",
|
|
||||||
"resolve_context_unittest.cc",
|
|
||||||
"serial_worker_unittest.cc",
|
|
||||||
"system_dns_config_change_notifier_unittest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (is_win) {
|
|
||||||
sources += [ "dns_config_service_win_unittest.cc" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_android) {
|
|
||||||
sources += [ "dns_config_service_android_unittest.cc" ]
|
|
||||||
} else if (is_linux) {
|
|
||||||
sources += [ "dns_config_service_linux_unittest.cc" ]
|
|
||||||
} else if (is_posix) {
|
|
||||||
sources += [ "dns_config_service_posix_unittest.cc" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enable_built_in_dns) {
|
|
||||||
sources += [
|
|
||||||
"address_sorter_unittest.cc",
|
|
||||||
"dns_client_unittest.cc",
|
|
||||||
]
|
|
||||||
if (is_posix || is_fuchsia) {
|
|
||||||
sources += [ "address_sorter_posix_unittest.cc" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enable_mdns) {
|
|
||||||
sources += [
|
|
||||||
"mdns_cache_unittest.cc",
|
|
||||||
"mdns_client_unittest.cc",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:test_support",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
source_set("test_support") {
|
|
||||||
visibility = [ "//net:test_support" ]
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"dns_test_util.cc",
|
|
||||||
"host_resolver_results_test_util.cc",
|
|
||||||
"mock_host_resolver.cc",
|
|
||||||
]
|
|
||||||
public = [
|
|
||||||
"dns_test_util.h",
|
|
||||||
"host_resolver_results_test_util.h",
|
|
||||||
"mock_host_resolver.h",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (enable_mdns) {
|
|
||||||
sources += [
|
|
||||||
"mock_mdns_client.cc",
|
|
||||||
"mock_mdns_socket_factory.cc",
|
|
||||||
]
|
|
||||||
public += [
|
|
||||||
"mock_mdns_client.h",
|
|
||||||
"mock_mdns_socket_factory.h",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (use_fuzzing_engine) {
|
|
||||||
# fuzzer_test targets are no-op when |use_fuzzing_engine| is false. Fuzzer
|
|
||||||
# support targets should be disabled too.
|
|
||||||
source_set("fuzzer_test_support") {
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"fuzzed_host_resolver_util.cc",
|
|
||||||
"fuzzed_host_resolver_util.h",
|
|
||||||
]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//net",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
proto_library("host_cache_fuzzer_proto") {
|
|
||||||
proto_in_dir = "//"
|
|
||||||
sources = [ "host_cache_fuzzer.proto" ]
|
|
||||||
deps = [ "//testing/libfuzzer/proto:json_proto" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_host_cache_fuzzer") {
|
|
||||||
sources = [ "host_cache_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
":host_cache_fuzzer_proto",
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
"//testing/libfuzzer/proto:json_proto",
|
|
||||||
"//testing/libfuzzer/proto:json_proto_converter",
|
|
||||||
"//third_party/libprotobuf-mutator",
|
|
||||||
]
|
|
||||||
dict = "//testing/libfuzzer/fuzzers/dicts/json.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_hosts_parse_fuzzer") {
|
|
||||||
sources = [ "dns_hosts_parse_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_https_record_rdata_fuzzer") {
|
|
||||||
sources = [ "https_record_rdata_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_integrity_record_fuzzer") {
|
|
||||||
sources = [ "integrity_record_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_nsswitch_reader_fuzzer") {
|
|
||||||
sources = [ "nsswitch_reader_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_nsswitch_reader_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_record_fuzzer") {
|
|
||||||
sources = [ "dns_record_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_query_parse_fuzzer") {
|
|
||||||
sources = [ "dns_query_parse_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_dns_response_fuzzer") {
|
|
||||||
sources = [ "dns_response_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_record_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("net_host_resolver_manager_fuzzer") {
|
|
||||||
sources = [ "host_resolver_manager_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
"//net:test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_host_resolver_manager_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_win) {
|
|
||||||
fuzzer_test("net_dns_parse_domain_ascii_win_fuzzer") {
|
|
||||||
sources = [ "dns_parse_domain_ascii_win_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
"//base",
|
|
||||||
"//net",
|
|
||||||
"//net:net_fuzzer_test_support",
|
|
||||||
]
|
|
||||||
dict = "//net/data/fuzzer_dictionaries/net_dns_hosts_parse_fuzzer.dict"
|
|
||||||
seed_corpus = "//net/data/fuzzer_data/dns_parse_domain_ascii_win_fuzzer"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -59,32 +59,3 @@ source_set("public") {
|
|||||||
|
|
||||||
public_deps = [ "//net:net_public_deps" ]
|
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",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
971
src/net/third_party/quiche/BUILD.gn
vendored
971
src/net/third_party/quiche/BUILD.gn
vendored
@ -25,11 +25,8 @@
|
|||||||
# (*) only used on platforms where epoll tests are built
|
# (*) only used on platforms where epoll tests are built
|
||||||
|
|
||||||
import("//build/config/chromeos/ui_mode.gni")
|
import("//build/config/chromeos/ui_mode.gni")
|
||||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
||||||
import("//third_party/protobuf/proto_library.gni")
|
import("//third_party/protobuf/proto_library.gni")
|
||||||
|
|
||||||
build_epoll_based_tools = is_linux || is_chromeos
|
|
||||||
|
|
||||||
config("quiche_internal_config") {
|
config("quiche_internal_config") {
|
||||||
cflags = []
|
cflags = []
|
||||||
if (is_clang) {
|
if (is_clang) {
|
||||||
@ -759,971 +756,3 @@ proto_library("net_quic_test_tools_proto") {
|
|||||||
|
|
||||||
extra_configs = [ "//build/config/compiler:wexit_time_destructors" ]
|
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_epoll.h",
|
|
||||||
"src/quiche/common/platform/api/quiche_stream_buffer_allocator.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/epoll_server/platform/api/epoll_bug.h",
|
|
||||||
"src/quiche/epoll_server/platform/api/epoll_logging.h",
|
|
||||||
"src/quiche/epoll_server/platform/api/epoll_thread.h",
|
|
||||||
"src/quiche/epoll_server/simple_epoll_server.cc",
|
|
||||||
"src/quiche/epoll_server/simple_epoll_server.h",
|
|
||||||
"src/quiche/quic/core/quic_default_packet_writer.cc",
|
|
||||||
"src/quiche/quic/core/quic_default_packet_writer.h",
|
|
||||||
"src/quiche/quic/core/quic_epoll_alarm_factory.cc",
|
|
||||||
"src/quiche/quic/core/quic_epoll_alarm_factory.h",
|
|
||||||
"src/quiche/quic/core/quic_epoll_clock.cc",
|
|
||||||
"src/quiche/quic/core/quic_epoll_clock.h",
|
|
||||||
"src/quiche/quic/core/quic_epoll_connection_helper.cc",
|
|
||||||
"src/quiche/quic/core/quic_epoll_connection_helper.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_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_session.cc",
|
|
||||||
"src/quiche/quic/masque/masque_encapsulated_client_session.h",
|
|
||||||
"src/quiche/quic/masque/masque_encapsulated_epoll_client.cc",
|
|
||||||
"src/quiche/quic/masque/masque_encapsulated_epoll_client.h",
|
|
||||||
"src/quiche/quic/masque/masque_epoll_client.cc",
|
|
||||||
"src/quiche/quic/masque/masque_epoll_client.h",
|
|
||||||
"src/quiche/quic/masque/masque_epoll_server.cc",
|
|
||||||
"src/quiche/quic/masque/masque_epoll_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_epoll.h",
|
|
||||||
"src/quiche/quic/platform/api/quic_udp_socket_platform_api.h",
|
|
||||||
"src/quiche/quic/tools/quic_client.cc",
|
|
||||||
"src/quiche/quic/tools/quic_client.h",
|
|
||||||
"src/quiche/quic/tools/quic_client_epoll_network_helper.cc",
|
|
||||||
"src/quiche/quic/tools/quic_client_epoll_network_helper.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_epoll_server_factory.cc",
|
|
||||||
"src/quiche/quic/tools/quic_epoll_server_factory.h",
|
|
||||||
"src/quiche/quic/tools/quic_server_bin.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
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/common/platform/api/quiche_epoll_test_tools.h",
|
|
||||||
"src/quiche/epoll_server/fake_simple_epoll_server.cc",
|
|
||||||
"src/quiche/epoll_server/fake_simple_epoll_server.h",
|
|
||||||
"src/quiche/epoll_server/platform/api/epoll_address_test_utils.h",
|
|
||||||
"src/quiche/epoll_server/platform/api/epoll_expect_bug.h",
|
|
||||||
"src/quiche/epoll_server/platform/api/epoll_test.h",
|
|
||||||
"src/quiche/quic/test_tools/quic_client_peer.cc",
|
|
||||||
"src/quiche/quic/test_tools/quic_client_peer.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.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_encoder_test_utils.cc",
|
|
||||||
"src/quiche/quic/test_tools/qpack/qpack_encoder_test_utils.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",
|
|
||||||
]
|
|
||||||
|
|
||||||
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/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/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_linked_hash_map_test.cc",
|
|
||||||
"src/quiche/common/quiche_mem_slice_storage_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/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/quic_random_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/capsule_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_legacy_version_encapsulator_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_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_ip_address_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/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_header_block_test.cc",
|
|
||||||
"src/quiche/spdy/core/spdy_header_storage_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/epoll_server/simple_epoll_server_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/core/quic_epoll_alarm_factory_test.cc",
|
|
||||||
"src/quiche/quic/core/quic_epoll_clock_test.cc",
|
|
||||||
"src/quiche/quic/core/quic_epoll_connection_helper_test.cc",
|
|
||||||
"src/quiche/quic/tools/quic_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",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -17,19 +17,3 @@ source_set("huffman_trie_generator_sources") {
|
|||||||
]
|
]
|
||||||
deps = [ "//base" ]
|
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") {
|
executable("transport_security_state_generator") {
|
||||||
sources = [ "transport_security_state_generator.cc" ]
|
sources = [ "transport_security_state_generator.cc" ]
|
||||||
deps = [
|
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/compiler/compiler.gni")
|
||||||
import("//build/config/sanitizers/sanitizers.gni")
|
import("//build/config/sanitizers/sanitizers.gni")
|
||||||
import("//build_overrides/build.gni")
|
import("//build_overrides/build.gni")
|
||||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
||||||
import("BUILD.generated.gni")
|
import("BUILD.generated.gni")
|
||||||
import("BUILD.generated_tests.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
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
import("//build/config/win/visual_studio_version.gni")
|
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" ]
|
|
||||||
}
|
|
||||||
|
273
src/url/BUILD.gn
273
src/url/BUILD.gn
@ -3,8 +3,6 @@
|
|||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
import("//build/buildflag_header.gni")
|
import("//build/buildflag_header.gni")
|
||||||
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
||||||
import("//testing/test.gni")
|
|
||||||
import("features.gni")
|
import("features.gni")
|
||||||
|
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
@ -62,7 +60,6 @@ component("url") {
|
|||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
"//base/third_party/dynamic_annotations",
|
"//base/third_party/dynamic_annotations",
|
||||||
"//ipc:param_traits",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
@ -100,273 +97,3 @@ component("url") {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_android) {
|
|
||||||
source_set("gurl_android") {
|
|
||||||
sources = [
|
|
||||||
"android/gurl_android.cc",
|
|
||||||
"android/gurl_android.h",
|
|
||||||
"android/parsed_android.cc",
|
|
||||||
"android/parsed_android.h",
|
|
||||||
]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":gurl_jni_headers",
|
|
||||||
":url",
|
|
||||||
"//base:base",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
static_library("origin_android") {
|
|
||||||
sources = [ "android/origin_android.cc" ]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":url",
|
|
||||||
":url_jni_headers",
|
|
||||||
"//base",
|
|
||||||
"//url/mojom:url_mojom_origin",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
android_library("url_java") {
|
|
||||||
sources = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ]
|
|
||||||
deps = [ "//base: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/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:jni_java",
|
|
||||||
"//mojo/public/java:bindings_java",
|
|
||||||
"//mojo/public/mojom/base:base_java",
|
|
||||||
"//url/mojom:url_mojom_origin_java",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
generate_jni("url_jni_headers") {
|
|
||||||
sources = [
|
|
||||||
"android/java/src/org/chromium/url/IDNStringUtil.java",
|
|
||||||
"android/java/src/org/chromium/url/Origin.java",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
generate_jni("gurl_jni_headers") {
|
|
||||||
sources = [
|
|
||||||
"android/java/src/org/chromium/url/GURL.java",
|
|
||||||
"android/java/src/org/chromium/url/Parsed.java",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
source_set("url_test_support") {
|
|
||||||
testonly = true
|
|
||||||
|
|
||||||
sources = [
|
|
||||||
"gurl_abstract_tests.h",
|
|
||||||
"origin_abstract_tests.cc",
|
|
||||||
"origin_abstract_tests.h",
|
|
||||||
]
|
|
||||||
|
|
||||||
public_deps = [
|
|
||||||
":url",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
test("url_unittests") {
|
|
||||||
sources = [
|
|
||||||
"gurl_unittest.cc",
|
|
||||||
"origin_unittest.cc",
|
|
||||||
"run_all_unittests.cc",
|
|
||||||
"scheme_host_port_unittest.cc",
|
|
||||||
"url_canon_icu_unittest.cc",
|
|
||||||
"url_canon_unittest.cc",
|
|
||||||
"url_parse_unittest.cc",
|
|
||||||
"url_test_utils.h",
|
|
||||||
"url_util_unittest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":url",
|
|
||||||
":url_test_support",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gmock",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
|
|
||||||
if (use_platform_icu_alternatives) {
|
|
||||||
# Unit tests that are not supported by the current ICU alternatives on Android.
|
|
||||||
if (is_android) {
|
|
||||||
sources -= [
|
|
||||||
"url_canon_icu_unittest.cc",
|
|
||||||
"url_canon_unittest.cc",
|
|
||||||
]
|
|
||||||
deps += [ ":url_java" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
# Unit tests that are not supported by the current ICU alternatives on iOS.
|
|
||||||
if (is_ios) {
|
|
||||||
sources -= [
|
|
||||||
"origin_unittest.cc",
|
|
||||||
"scheme_host_port_unittest.cc",
|
|
||||||
"url_canon_icu_unittest.cc",
|
|
||||||
"url_canon_unittest.cc",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
} else { # !use_platform_icu_alternatives
|
|
||||||
deps += [ "//third_party/icu:icuuc" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!is_ios) {
|
|
||||||
sources += [
|
|
||||||
"mojom/scheme_host_port_mojom_traits_unittest.cc",
|
|
||||||
"mojom/url_gurl_mojom_traits_unittest.cc",
|
|
||||||
]
|
|
||||||
deps += [
|
|
||||||
"//mojo/core/embedder",
|
|
||||||
"//mojo/public/cpp/test_support:test_utils",
|
|
||||||
"//url/ipc:url_ipc_unittests",
|
|
||||||
"//url/mojom:mojom_traits",
|
|
||||||
"//url/mojom:test_url_mojom_gurl",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
test("url_perftests") {
|
|
||||||
sources = [
|
|
||||||
"run_all_perftests.cc",
|
|
||||||
"url_parse_perftest.cc",
|
|
||||||
]
|
|
||||||
|
|
||||||
deps = [
|
|
||||||
":url",
|
|
||||||
"//base",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
fuzzer_test("gurl_fuzzer") {
|
|
||||||
sources = [ "gurl_fuzzer.cc" ]
|
|
||||||
deps = [
|
|
||||||
":url",
|
|
||||||
"//base",
|
|
||||||
"//base:i18n",
|
|
||||||
]
|
|
||||||
dict = "gurl_fuzzer.dict"
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_android) {
|
|
||||||
source_set("gurl_android_test_helper") {
|
|
||||||
testonly = true
|
|
||||||
sources = [ "android/gurl_java_test_helper.cc" ]
|
|
||||||
deps = [
|
|
||||||
":gurl_android",
|
|
||||||
":gurl_j_test_jni_headers",
|
|
||||||
":url",
|
|
||||||
"//base/test:test_support",
|
|
||||||
"//testing/gtest",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
android_library("gurl_android_test_helper_java") {
|
|
||||||
testonly = true
|
|
||||||
sources =
|
|
||||||
[ "android/javatests/src/org/chromium/url/GURLJavaTestHelper.java" ]
|
|
||||||
deps = [
|
|
||||||
":gurl_java",
|
|
||||||
"//base:base_java_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.
|
|
||||||
android_library("gurl_junit_shadows") {
|
|
||||||
# Platform checks are broken for Robolectric. See https://crbug.com/1071638.
|
|
||||||
bypass_platform_checks = true
|
|
||||||
testonly = true
|
|
||||||
sources = [ "android/test/java/src/org/chromium/url/ShadowGURL.java" ]
|
|
||||||
deps = [
|
|
||||||
":gurl_java",
|
|
||||||
":gurl_junit_test_support",
|
|
||||||
"//third_party/android_deps:robolectric_all_java",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
android_library("gurl_javatests") {
|
|
||||||
testonly = true
|
|
||||||
sources = [
|
|
||||||
"android/javatests/src/org/chromium/url/GURLJavaTest.java",
|
|
||||||
"android/javatests/src/org/chromium/url/JUnitTestGURLsTest.java",
|
|
||||||
]
|
|
||||||
deps = [
|
|
||||||
":gurl_android_test_helper_java",
|
|
||||||
":gurl_java",
|
|
||||||
":gurl_junit_test_support",
|
|
||||||
"//base:base_java",
|
|
||||||
"//base:base_java_test_support",
|
|
||||||
"//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" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
android_library("gurl_junit_tests") {
|
|
||||||
# Platform checks are broken for Robolectric. See https://crbug.com/1071638.
|
|
||||||
bypass_platform_checks = true
|
|
||||||
testonly = true
|
|
||||||
sources = [ "android/junit/src/org/chromium/url/ShadowGURLTest.java" ]
|
|
||||||
deps = [
|
|
||||||
":gurl_java",
|
|
||||||
":gurl_junit_shadows",
|
|
||||||
":gurl_junit_test_support",
|
|
||||||
"//base:base_java_test_support",
|
|
||||||
"//base:base_junit_test_support",
|
|
||||||
"//base/test:test_support_java",
|
|
||||||
"//third_party/android_deps:robolectric_all_java",
|
|
||||||
"//third_party/junit",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user