Debian Codegraph @

test/core/tsi/alts/fake_handshaker/BUILD

raw
1 # Copyright 2018 gRPC authors.
2 #
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
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_package", "grpc_proto_library")
16
17 licenses(["notice"])
18
19 grpc_package(
20 name = "test/core/tsi/alts/fake_handshaker",
21 visibility = "public",
22 )
23
24 grpc_proto_library(
25 name = "transport_security_common_proto",
26 srcs = ["transport_security_common.proto"],
27 has_services = False,
28 )
29
30 grpc_proto_library(
31 name = "handshaker_proto",
32 srcs = ["handshaker.proto"],
33 has_services = True,
34 deps = [
35 "transport_security_common_proto",
36 ],
37 )
38
39 grpc_cc_library(
40 name = "fake_handshaker_lib",
41 testonly = True,
42 srcs = ["fake_handshaker_server.cc"],
43 hdrs = ["fake_handshaker_server.h"],
44 language = "C++",
45 deps = [
46 "handshaker_proto",
47 "transport_security_common_proto",
48 "//:grpc++",
49 ],
50 )
51
52 grpc_cc_binary(
53 name = "fake_handshaker_server",
54 testonly = True,
55 srcs = ["fake_handshaker_server_main.cc"],
56 external_deps = [
57 "absl/flags:flag",
58 ],
59 language = "C++",
60 deps = [
61 "fake_handshaker_lib",
62 "//test/core/util:grpc_test_util",
63 "//test/cpp/util:test_config",
64 ],
65 )