1 # Copyright 2017 gRPC authors.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 licenses(["notice"]) # Apache v2
17 load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
20 name = "test/cpp/util",
21 visibility = "public",
41 name = "grpc++_proto_reflection_desc_db",
43 "proto_reflection_descriptor_database.cc",
46 "proto_reflection_descriptor_database.h",
50 "//:grpc++_config_proto",
51 "//src/proto/grpc/reflection/v1alpha:reflection_proto",
55 GRPCXX_TESTUTIL_SRCS = [
56 "byte_buffer_proto_helper.cc",
57 "string_ref_helper.cc",
61 GRPCXX_TESTUTIL_HDRS = [
62 "byte_buffer_proto_helper.h",
63 "string_ref_helper.h",
69 srcs = GRPCXX_TESTUTIL_SRCS + [
70 "create_test_channel.cc",
71 "test_credentials_provider.cc",
73 hdrs = GRPCXX_TESTUTIL_HDRS + [
74 "create_test_channel.h",
75 "test_credentials_provider.h",
83 "//test/core/end2end:ssl_test_data",
84 "//test/core/util:grpc_test_util",
89 name = "channel_trace_proto_helper",
92 "channel_trace_proto_helper.cc",
95 "channel_trace_proto_helper.h",
103 "//src/proto/grpc/channelz:channelz_proto",
108 name = "test_util_unsecure",
109 srcs = GRPCXX_TESTUTIL_SRCS,
110 hdrs = GRPCXX_TESTUTIL_HDRS,
115 "//:grpc++_unsecure",
116 "//test/core/util:grpc_test_util_unsecure",
121 name = "grpc_cli_utils",
124 "cli_credentials.cc",
125 "proto_file_parser.cc",
126 "service_describer.cc",
132 "proto_file_parser.h",
133 "service_describer.h",
141 ":grpc++_proto_reflection_desc_db",
143 "//src/proto/grpc/reflection/v1alpha:reflection_proto",
148 name = "grpc_cli_libs",
164 name = "metrics_server_lib",
173 "//src/proto/grpc/testing:metrics_proto",
178 name = "grpc_tool_test",
183 "//src/core/tsi/test_creds:ca.pem",
184 "//src/core/tsi/test_creds:server1.key",
185 "//src/core/tsi/test_creds:server1.pem",
186 "//src/proto/grpc/testing:echo.proto",
187 "//src/proto/grpc/testing:echo_messages.proto",
188 "//src/proto/grpc/testing:simple_messages.proto",
197 "nomsan", # death tests seem to be incompatible with msan
202 "//:grpc++_reflection",
203 "//src/proto/grpc/testing:echo_messages_proto",
204 "//src/proto/grpc/testing:echo_proto",
205 "//src/proto/grpc/testing:simple_messages_proto",
206 "//test/core/util:grpc_test_util",
211 name = "byte_buffer_test",
213 "byte_buffer_test.cc",
218 uses_polling = False,
232 uses_polling = False,
239 name = "string_ref_test",
241 "string_ref_test.cc",
246 uses_polling = False,
249 "//test/core/util:grpc_test_util",
261 uses_polling = False,
268 name = "cli_call_test",
278 "//src/proto/grpc/testing:echo_proto",
279 "//test/core/util:grpc_test_util",
284 name = "error_details_test",
286 "error_details_test.cc",
291 tags = ["no_test_ios"],
293 "//:grpc++_error_details",
294 "//src/proto/grpc/status:status_proto",
295 "//src/proto/grpc/testing:echo_messages_proto",
296 "//test/core/util:grpc_test_util",
309 ":grpc++_proto_reflection_desc_db",
313 "//src/proto/grpc/reflection/v1alpha:reflection_proto",
318 name = "channelz_sampler",
319 srcs = ["channelz_sampler.cc"],
325 "no_windows", # unistd.h
330 "//:grpcpp_channelz",
331 "//src/proto/grpc/channelz:channelz_proto",
332 "//test/cpp/util:test_config",
333 "//test/cpp/util:test_util",
338 name = "channelz_sampler_test",
340 "channelz_sampler_test.cc",
349 "no_mac", # cmake does not build channelz_sampler in Basic Tests C/C++ MacOS test
350 "no_test_android", # android_cc_test doesn't work with data dependency.
352 "no_windows", # unistd.h
358 "//:grpcpp_channelz",
359 "//src/proto/grpc/channelz:channelz_proto",
360 "//src/proto/grpc/testing:test_proto",
361 "//test/core/util:grpc_test_util",
362 "//test/core/util:grpc_test_util_base",
363 "//test/cpp/util:test_util",