mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
521 lines
12 KiB
521 lines
12 KiB
8 years ago
|
# Copyright 2017 gRPC authors.
|
||
8 years ago
|
#
|
||
8 years ago
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
# you may not use this file except in compliance with the License.
|
||
|
# You may obtain a copy of the License at
|
||
8 years ago
|
#
|
||
8 years ago
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
8 years ago
|
#
|
||
8 years ago
|
# Unless required by applicable law or agreed to in writing, software
|
||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
# See the License for the specific language governing permissions and
|
||
|
# limitations under the License.
|
||
8 years ago
|
|
||
2 years ago
|
load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package", "grpc_proto_library")
|
||
8 years ago
|
|
||
3 years ago
|
licenses(["notice"])
|
||
8 years ago
|
|
||
7 years ago
|
grpc_package(
|
||
7 months ago
|
name = "test/core/test_util",
|
||
7 years ago
|
visibility = "public",
|
||
|
)
|
||
8 years ago
|
|
||
3 years ago
|
grpc_cc_library(
|
||
|
name = "grpc_suppressions",
|
||
|
data = [
|
||
|
"lsan_suppressions.txt",
|
||
|
"tsan_suppressions.txt",
|
||
|
"ubsan_suppressions.txt",
|
||
|
],
|
||
|
)
|
||
|
|
||
2 years ago
|
TEST_UTILS_THAT_USE_GRPC_H_SOURCES = [
|
||
|
"port.cc",
|
||
|
"port_isolated_runtime_environment.cc",
|
||
|
"port_server_client.cc",
|
||
|
"reconnect_server.cc",
|
||
|
"test_config.cc",
|
||
|
"test_tcp_server.cc",
|
||
|
]
|
||
|
|
||
|
TEST_UTILS_THAT_USE_GRPC_H_HEADERS = [
|
||
|
"port.h",
|
||
|
"reconnect_server.h",
|
||
|
"port_server_client.h",
|
||
|
"test_config.h",
|
||
|
"test_tcp_server.h",
|
||
|
]
|
||
|
|
||
1 year ago
|
grpc_cc_library(
|
||
|
name = "proto_bit_gen",
|
||
|
language = "c++",
|
||
|
public_hdrs = ["proto_bit_gen.h"],
|
||
|
deps = ["//:gpr_platform"],
|
||
|
)
|
||
|
|
||
7 years ago
|
grpc_cc_library(
|
||
|
name = "grpc_test_util_base",
|
||
|
srcs = [
|
||
7 years ago
|
"cmdline.cc",
|
||
7 years ago
|
"fuzzer_util.cc",
|
||
7 years ago
|
"grpc_profiler.cc",
|
||
7 years ago
|
"histogram.cc",
|
||
7 years ago
|
"mock_endpoint.cc",
|
||
|
"parse_hexstring.cc",
|
||
4 years ago
|
"resolve_localhost_ip46.cc",
|
||
7 years ago
|
"slice_splitter.cc",
|
||
7 years ago
|
"tracer_util.cc",
|
||
8 years ago
|
],
|
||
|
hdrs = [
|
||
7 years ago
|
"cmdline.h",
|
||
4 years ago
|
"evaluate_args_test_util.h",
|
||
7 years ago
|
"fuzzer_util.h",
|
||
8 years ago
|
"grpc_profiler.h",
|
||
7 years ago
|
"histogram.h",
|
||
8 years ago
|
"mock_endpoint.h",
|
||
|
"parse_hexstring.h",
|
||
4 years ago
|
"resolve_localhost_ip46.h",
|
||
8 years ago
|
"slice_splitter.h",
|
||
7 years ago
|
"tracer_util.h",
|
||
8 years ago
|
],
|
||
4 years ago
|
external_deps = [
|
||
7 months ago
|
"absl/log:check",
|
||
2 years ago
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
3 years ago
|
"absl/strings:str_format",
|
||
2 years ago
|
"absl/types:span",
|
||
4 years ago
|
],
|
||
7 years ago
|
language = "C++",
|
||
2 years ago
|
tags = ["nofixdeps"],
|
||
8 years ago
|
deps = [
|
||
2 years ago
|
"//:debug_location",
|
||
2 years ago
|
"//:gpr",
|
||
3 years ago
|
"//:grpc_base",
|
||
2 years ago
|
"//:grpc_security_base",
|
||
|
"//:grpc_trace",
|
||
|
"//:iomgr_timer",
|
||
|
"//:ref_counted_ptr",
|
||
2 years ago
|
"//src/core:arena",
|
||
2 years ago
|
"//src/core:closure",
|
||
2 years ago
|
"//src/core:grpc_authorization_base",
|
||
|
"//src/core:grpc_sockaddr",
|
||
|
"//src/core:iomgr_fwd",
|
||
|
"//src/core:memory_quota",
|
||
|
"//src/core:resolved_address",
|
||
|
"//src/core:resource_quota",
|
||
|
"//src/core:slice",
|
||
|
"//src/core:slice_refcount",
|
||
|
"//src/core:time",
|
||
|
"//src/core:useful",
|
||
7 years ago
|
],
|
||
|
)
|
||
|
|
||
|
grpc_cc_library(
|
||
|
name = "grpc_test_util",
|
||
2 years ago
|
srcs = TEST_UTILS_THAT_USE_GRPC_H_SOURCES + ["tls_utils.cc"],
|
||
|
hdrs = TEST_UTILS_THAT_USE_GRPC_H_HEADERS + ["tls_utils.h"],
|
||
|
external_deps = [
|
||
|
"absl/base:core_headers",
|
||
|
"absl/debugging:failure_signal_handler",
|
||
7 months ago
|
"absl/log:check",
|
||
2 years ago
|
"absl/status",
|
||
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
|
"absl/strings:str_format",
|
||
|
],
|
||
7 years ago
|
language = "C++",
|
||
7 years ago
|
deps = [
|
||
2 years ago
|
"build",
|
||
|
"stack_tracer",
|
||
|
"//:config",
|
||
2 years ago
|
"//:exec_ctx",
|
||
2 years ago
|
"//:gpr",
|
||
8 years ago
|
"//:grpc",
|
||
2 years ago
|
"//:grpc_public_hdrs",
|
||
|
"//:grpc_security_base",
|
||
|
"//:httpcli",
|
||
|
"//:orphanable",
|
||
|
"//:ref_counted_ptr",
|
||
|
"//:tsi_ssl_credentials",
|
||
|
"//:uri_parser",
|
||
2 years ago
|
"//src/core:channel_args_endpoint_config",
|
||
2 years ago
|
"//src/core:channel_args_preconditioning",
|
||
2 years ago
|
"//src/core:closure",
|
||
2 years ago
|
"//src/core:error",
|
||
2 years ago
|
"//src/core:gpr_atm",
|
||
|
"//src/core:grpc_sockaddr",
|
||
|
"//src/core:iomgr_fwd",
|
||
|
"//src/core:iomgr_port",
|
||
10 months ago
|
"//src/core:load_file",
|
||
2 years ago
|
"//src/core:resolved_address",
|
||
|
"//src/core:slice",
|
||
|
"//src/core:slice_refcount",
|
||
|
"//src/core:status_helper",
|
||
|
"//src/core:time",
|
||
2 years ago
|
"//test/core/event_engine:test_init",
|
||
8 years ago
|
],
|
||
2 years ago
|
alwayslink = 1,
|
||
8 years ago
|
)
|
||
|
|
||
7 years ago
|
grpc_cc_library(
|
||
|
name = "grpc_test_util_unsecure",
|
||
2 years ago
|
srcs = TEST_UTILS_THAT_USE_GRPC_H_SOURCES,
|
||
|
hdrs = TEST_UTILS_THAT_USE_GRPC_H_HEADERS,
|
||
|
external_deps = [
|
||
|
"absl/debugging:failure_signal_handler",
|
||
7 months ago
|
"absl/log:check",
|
||
2 years ago
|
"absl/status",
|
||
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
|
"absl/strings:str_format",
|
||
|
],
|
||
7 years ago
|
language = "C++",
|
||
7 years ago
|
deps = [
|
||
2 years ago
|
"build",
|
||
|
"stack_tracer",
|
||
|
"//:config",
|
||
2 years ago
|
"//:exec_ctx",
|
||
2 years ago
|
"//:gpr",
|
||
2 years ago
|
"//:grpc_security_base",
|
||
7 years ago
|
"//:grpc_unsecure",
|
||
2 years ago
|
"//:httpcli",
|
||
|
"//:orphanable",
|
||
|
"//:ref_counted_ptr",
|
||
|
"//:uri_parser",
|
||
2 years ago
|
"//src/core:channel_args_endpoint_config",
|
||
2 years ago
|
"//src/core:channel_args_preconditioning",
|
||
2 years ago
|
"//src/core:closure",
|
||
2 years ago
|
"//src/core:error",
|
||
2 years ago
|
"//src/core:gpr_atm",
|
||
|
"//src/core:grpc_sockaddr",
|
||
|
"//src/core:iomgr_fwd",
|
||
|
"//src/core:iomgr_port",
|
||
|
"//src/core:resolved_address",
|
||
|
"//src/core:status_helper",
|
||
|
"//src/core:time",
|
||
2 years ago
|
"//test/core/event_engine:test_init",
|
||
7 years ago
|
],
|
||
2 years ago
|
alwayslink = 1,
|
||
7 years ago
|
)
|
||
|
|
||
7 years ago
|
grpc_cc_test(
|
||
|
name = "cmdline_test",
|
||
|
srcs = ["cmdline_test.cc"],
|
||
2 years ago
|
external_deps = ["gtest"],
|
||
7 years ago
|
language = "C++",
|
||
3 years ago
|
uses_event_engine = False,
|
||
5 years ago
|
uses_polling = False,
|
||
7 years ago
|
deps = [
|
||
2 years ago
|
"grpc_test_util",
|
||
|
"grpc_test_util_base",
|
||
2 years ago
|
"//:gpr",
|
||
2 years ago
|
"//src/core:useful",
|
||
7 years ago
|
],
|
||
|
)
|
||
|
|
||
8 years ago
|
grpc_cc_library(
|
||
7 years ago
|
name = "fuzzer_corpus_test",
|
||
7 years ago
|
testonly = 1,
|
||
7 years ago
|
srcs = ["fuzzer_corpus_test.cc"],
|
||
7 years ago
|
external_deps = [
|
||
4 years ago
|
"absl/flags:flag",
|
||
7 months ago
|
"absl/log:check",
|
||
7 years ago
|
"gtest",
|
||
|
],
|
||
4 years ago
|
linkstatic = True,
|
||
2 years ago
|
tags = [
|
||
|
"no_windows",
|
||
|
"nofixdeps",
|
||
|
],
|
||
8 years ago
|
deps = [
|
||
6 years ago
|
":grpc_test_util",
|
||
8 years ago
|
"//:grpc",
|
||
6 years ago
|
"//test/cpp/util:test_config",
|
||
8 years ago
|
],
|
||
7 years ago
|
)
|
||
|
|
||
|
grpc_cc_test(
|
||
|
name = "histogram_test",
|
||
|
srcs = ["histogram_test.cc"],
|
||
2 years ago
|
external_deps = ["gtest"],
|
||
7 years ago
|
language = "C++",
|
||
2 years ago
|
tags = ["nofixdeps"],
|
||
3 years ago
|
uses_event_engine = False,
|
||
5 years ago
|
uses_polling = False,
|
||
7 years ago
|
deps = [
|
||
2 years ago
|
"grpc_test_util",
|
||
|
"grpc_test_util_base",
|
||
2 years ago
|
"//:gpr",
|
||
7 years ago
|
],
|
||
8 years ago
|
)
|
||
8 years ago
|
|
||
|
sh_library(
|
||
8 years ago
|
name = "fuzzer_one_entry_runner",
|
||
|
srcs = ["fuzzer_one_entry_runner.sh"],
|
||
8 years ago
|
)
|
||
7 years ago
|
|
||
4 years ago
|
grpc_cc_library(
|
||
|
name = "stack_tracer",
|
||
|
srcs = [
|
||
|
"stack_tracer.cc",
|
||
|
],
|
||
|
hdrs = [
|
||
|
"stack_tracer.h",
|
||
|
],
|
||
|
external_deps = [
|
||
|
"absl/debugging:stacktrace",
|
||
|
"absl/debugging:symbolize",
|
||
|
],
|
||
|
language = "C++",
|
||
|
deps = [
|
||
3 years ago
|
"//:gpr_platform",
|
||
2 years ago
|
"//src/core:examine_stack",
|
||
4 years ago
|
],
|
||
|
)
|
||
|
|
||
|
grpc_cc_test(
|
||
|
name = "stack_tracer_test",
|
||
|
srcs = [
|
||
|
"stack_tracer_test.cc",
|
||
|
],
|
||
|
external_deps = [
|
||
2 years ago
|
"absl/strings",
|
||
4 years ago
|
"gtest",
|
||
|
],
|
||
|
language = "C++",
|
||
|
# TODO(https://github.com/grpc/grpc/issues/24627): Disable this on Windows
|
||
|
tags = ["no_windows"],
|
||
3 years ago
|
uses_event_engine = False,
|
||
4 years ago
|
uses_polling = False,
|
||
|
deps = [
|
||
2 years ago
|
"grpc_test_util",
|
||
|
"stack_tracer",
|
||
2 years ago
|
"//:gpr",
|
||
4 years ago
|
],
|
||
|
)
|
||
|
|
||
6 years ago
|
grpc_cc_library(
|
||
6 years ago
|
name = "test_lb_policies",
|
||
6 years ago
|
testonly = 1,
|
||
6 years ago
|
srcs = ["test_lb_policies.cc"],
|
||
|
hdrs = ["test_lb_policies.h"],
|
||
2 years ago
|
external_deps = [
|
||
7 months ago
|
"absl/log:check",
|
||
2 years ago
|
"absl/status",
|
||
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
|
"absl/types:variant",
|
||
|
],
|
||
6 years ago
|
deps = [
|
||
2 years ago
|
"//:config",
|
||
1 year ago
|
"//:endpoint_addresses",
|
||
2 years ago
|
"//:gpr",
|
||
6 years ago
|
"//:grpc",
|
||
2 years ago
|
"//:grpc_client_channel",
|
||
9 months ago
|
"//:oob_backend_metric",
|
||
2 years ago
|
"//:orphanable",
|
||
2 years ago
|
"//:parse_address",
|
||
2 years ago
|
"//:ref_counted_ptr",
|
||
|
"//:uri_parser",
|
||
2 years ago
|
"//src/core:channel_args",
|
||
1 year ago
|
"//src/core:delegating_helper",
|
||
2 years ago
|
"//src/core:error",
|
||
2 years ago
|
"//src/core:grpc_backend_metric_data",
|
||
|
"//src/core:json",
|
||
|
"//src/core:json_util",
|
||
|
"//src/core:lb_policy",
|
||
|
"//src/core:lb_policy_factory",
|
||
|
"//src/core:lb_policy_registry",
|
||
|
"//src/core:pollset_set",
|
||
|
"//src/core:resolved_address",
|
||
|
"//src/core:status_helper",
|
||
|
"//src/core:subchannel_interface",
|
||
|
"//src/core:time",
|
||
6 years ago
|
],
|
||
|
)
|
||
3 years ago
|
|
||
3 years ago
|
grpc_cc_library(
|
||
|
name = "fake_udp_and_tcp_server",
|
||
|
srcs = ["fake_udp_and_tcp_server.cc"],
|
||
|
hdrs = ["fake_udp_and_tcp_server.h"],
|
||
|
external_deps = [
|
||
7 months ago
|
"absl/log:check",
|
||
2 years ago
|
"absl/status:statusor",
|
||
3 years ago
|
"absl/strings",
|
||
|
],
|
||
|
language = "C++",
|
||
|
deps = [
|
||
2 years ago
|
"grpc_test_util",
|
||
2 years ago
|
"//:gpr",
|
||
3 years ago
|
"//:grpc",
|
||
2 years ago
|
"//:sockaddr_utils",
|
||
2 years ago
|
"//src/core:resolved_address",
|
||
3 years ago
|
],
|
||
|
)
|
||
|
|
||
2 years ago
|
grpc_cc_library(
|
||
|
name = "fake_udp_and_tcp_server_unsecure",
|
||
|
srcs = ["fake_udp_and_tcp_server.cc"],
|
||
|
hdrs = ["fake_udp_and_tcp_server.h"],
|
||
|
external_deps = [
|
||
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
|
],
|
||
|
language = "C++",
|
||
|
deps = [
|
||
|
"grpc_test_util_unsecure",
|
||
|
"//:gpr",
|
||
|
"//:grpc",
|
||
|
"//:sockaddr_utils",
|
||
|
"//src/core:resolved_address",
|
||
|
],
|
||
|
)
|
||
1 year ago
|
|
||
|
grpc_cc_library(
|
||
|
name = "socket_use_after_close_detector",
|
||
|
testonly = True,
|
||
|
srcs = ["socket_use_after_close_detector.cc"],
|
||
|
hdrs = ["socket_use_after_close_detector.h"],
|
||
|
external_deps = ["gtest"],
|
||
|
language = "C++",
|
||
|
deps = [
|
||
|
"grpc_test_util",
|
||
|
"//:gpr",
|
||
|
"//:grpc",
|
||
|
"//src/core:grpc_sockaddr",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
grpc_cc_library(
|
||
|
name = "socket_use_after_close_detector_unsecure",
|
||
|
testonly = True,
|
||
|
srcs = ["socket_use_after_close_detector.cc"],
|
||
|
hdrs = ["socket_use_after_close_detector.h"],
|
||
|
external_deps = ["gtest"],
|
||
|
language = "C++",
|
||
|
deps = [
|
||
|
"grpc_test_util_unsecure",
|
||
|
"//:gpr",
|
||
|
"//:grpc",
|
||
|
"//src/core:grpc_sockaddr",
|
||
|
],
|
||
|
)
|
||
2 years ago
|
|
||
3 years ago
|
grpc_cc_library(
|
||
|
name = "build",
|
||
|
srcs = ["build.cc"],
|
||
|
hdrs = ["build.h"],
|
||
|
)
|
||
2 years ago
|
|
||
2 years ago
|
grpc_cc_library(
|
||
|
name = "osa_distance",
|
||
|
srcs = ["osa_distance.cc"],
|
||
|
hdrs = ["osa_distance.h"],
|
||
|
external_deps = ["absl/strings"],
|
||
|
)
|
||
|
|
||
|
grpc_cc_test(
|
||
|
name = "osa_distance_test",
|
||
|
srcs = ["osa_distance_test.cc"],
|
||
|
external_deps = ["gtest"],
|
||
|
deps = ["osa_distance"],
|
||
|
)
|
||
|
|
||
2 years ago
|
grpc_cc_library(
|
||
|
name = "scoped_env_var",
|
||
|
testonly = True,
|
||
|
hdrs = ["scoped_env_var.h"],
|
||
|
deps = [
|
||
|
"//:gpr_platform",
|
||
2 years ago
|
"//src/core:env",
|
||
2 years ago
|
],
|
||
|
)
|
||
2 years ago
|
|
||
|
grpc_proto_library(
|
||
|
name = "fuzz_config_vars_proto",
|
||
|
srcs = ["fuzz_config_vars.proto"],
|
||
|
has_services = False,
|
||
|
)
|
||
|
|
||
|
grpc_cc_library(
|
||
|
name = "fuzz_config_vars",
|
||
|
srcs = ["fuzz_config_vars.cc"],
|
||
|
hdrs = ["fuzz_config_vars.h"],
|
||
|
external_deps = ["absl/types:optional"],
|
||
|
deps = [
|
||
2 years ago
|
"fuzz_config_vars_helpers",
|
||
2 years ago
|
"fuzz_config_vars_proto",
|
||
|
"//:config_vars",
|
||
|
"//:gpr_platform",
|
||
|
],
|
||
|
)
|
||
2 years ago
|
|
||
|
grpc_cc_library(
|
||
|
name = "fuzz_config_vars_helpers",
|
||
|
srcs = ["fuzz_config_vars_helpers.cc"],
|
||
|
hdrs = ["fuzz_config_vars_helpers.h"],
|
||
|
external_deps = ["absl/strings"],
|
||
|
deps = [
|
||
|
"//:gpr_platform",
|
||
|
"//src/core:experiments",
|
||
|
],
|
||
|
)
|
||
2 years ago
|
|
||
2 years ago
|
grpc_cc_library(
|
||
|
name = "audit_logging_utils",
|
||
|
srcs = ["audit_logging_utils.cc"],
|
||
|
hdrs = ["audit_logging_utils.h"],
|
||
|
external_deps = [
|
||
|
"absl/status:statusor",
|
||
|
"absl/strings",
|
||
|
],
|
||
|
deps = [
|
||
|
"//:gpr",
|
||
|
"//:gpr_platform",
|
||
|
"//:grpc",
|
||
|
"//src/core:json_writer",
|
||
|
],
|
||
|
)
|
||
|
|
||
2 years ago
|
grpc_proto_library(
|
||
|
name = "fuzzing_channel_args_proto",
|
||
|
srcs = ["fuzzing_channel_args.proto"],
|
||
|
has_services = False,
|
||
|
)
|
||
|
|
||
|
grpc_cc_library(
|
||
|
name = "fuzzing_channel_args",
|
||
|
srcs = ["fuzzing_channel_args.cc"],
|
||
|
hdrs = ["fuzzing_channel_args.h"],
|
||
|
deps = [
|
||
|
"fuzzing_channel_args_proto",
|
||
|
"//:gpr_platform",
|
||
|
"//:ref_counted_ptr",
|
||
|
"//src/core:channel_args",
|
||
|
"//src/core:resource_quota",
|
||
|
],
|
||
|
)
|
||
11 months ago
|
|
||
|
grpc_cc_library(
|
||
|
name = "fake_stats_plugin",
|
||
9 months ago
|
testonly = True,
|
||
11 months ago
|
srcs = ["fake_stats_plugin.cc"],
|
||
|
hdrs = ["fake_stats_plugin.h"],
|
||
9 months ago
|
external_deps = [
|
||
|
"absl/container:flat_hash_map",
|
||
|
"absl/functional:any_invocable",
|
||
7 months ago
|
"absl/log:check",
|
||
9 months ago
|
"absl/status",
|
||
|
"absl/strings",
|
||
|
"absl/types:optional",
|
||
|
"absl/types:span",
|
||
|
"gtest",
|
||
|
],
|
||
11 months ago
|
deps = [
|
||
|
"//:grpc",
|
||
|
"//src/core:examine_stack",
|
||
9 months ago
|
"//src/core:metrics",
|
||
11 months ago
|
],
|
||
|
)
|