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_library", "grpc_cc_binary", "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",
82 "//test/core/end2end:ssl_test_data",
83 "//test/core/util:grpc_test_util",
88 name = "channel_trace_proto_helper",
91 "channel_trace_proto_helper.cc",
94 "channel_trace_proto_helper.h",
102 "//src/proto/grpc/channelz:channelz_proto",
107 name = "test_util_unsecure",
108 srcs = GRPCXX_TESTUTIL_SRCS,
109 hdrs = GRPCXX_TESTUTIL_HDRS,
114 "//:grpc++_unsecure",
115 "//test/core/util:grpc_test_util_unsecure",
120 name = "grpc_cli_utils",
123 "cli_credentials.cc",
124 "proto_file_parser.cc",
125 "service_describer.cc",
131 "proto_file_parser.h",
132 "service_describer.h",
140 ":grpc++_proto_reflection_desc_db",
142 "//src/proto/grpc/reflection/v1alpha:reflection_proto",
147 name = "grpc_cli_libs",
163 name = "metrics_server_lib",
172 "//src/proto/grpc/testing:metrics_proto",
177 name = "grpc_tool_test",
182 "//src/proto/grpc/testing:echo.proto",
183 "//src/proto/grpc/testing:echo_messages.proto",
184 "//src/proto/grpc/testing:simple_messages.proto",
189 tags = ["nomsan"], # death tests seem to be incompatible with msan
193 "//:grpc++_reflection",
194 "//src/proto/grpc/testing:echo_messages_proto",
195 "//src/proto/grpc/testing:echo_proto",
196 "//src/proto/grpc/testing:simple_messages_proto",
197 "//test/core/end2end:ssl_test_data",
198 "//test/core/util:grpc_test_util",
203 name = "byte_buffer_test",
205 "byte_buffer_test.cc",
229 name = "string_ref_test",
231 "string_ref_test.cc",
238 "//test/core/util:grpc_test_util",
256 name = "cli_call_test",
266 "//src/proto/grpc/testing:echo_proto",
267 "//test/core/util:grpc_test_util",
272 name = "error_details_test",
274 "error_details_test.cc",
280 "//:grpc++_error_details",
281 "//src/proto/grpc/testing:echo_messages_proto",
282 "//test/core/util:grpc_test_util",
295 ":grpc++_proto_reflection_desc_db",
299 "//src/proto/grpc/reflection/v1alpha:reflection_proto",