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
15load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package")
16
17licenses(["notice"])  # Apache v2
18
19grpc_package(name = "test/core/tsi/alts/handshaker")
20
21grpc_cc_library(
22    name = "alts_handshaker_service_api_test_lib",
23    srcs = ["alts_handshaker_service_api_test_lib.cc"],
24    hdrs = ["alts_handshaker_service_api_test_lib.h"],
25    deps = [
26        "//:alts_util",
27        "//:grpc",
28    ],
29)
30
31grpc_cc_test(
32    name = "alts_handshaker_client_test",
33    srcs = ["alts_handshaker_client_test.cc"],
34    language = "C++",
35    deps = [
36        ":alts_handshaker_service_api_test_lib",
37        "//:tsi",
38        "//:tsi_interface",
39        "//:grpc",
40        "//test/core/util:gpr_test_util",
41    ],
42)
43
44grpc_cc_test(
45    name = "alts_handshaker_service_api_test",
46    srcs = ["alts_handshaker_service_api_test.cc"],
47    language = "C++",
48    deps = [
49        ":alts_handshaker_service_api_test_lib",
50        "//:grpc",
51        "//test/core/util:gpr_test_util",
52    ],
53)
54
55grpc_cc_test(
56    name = "alts_tsi_handshaker_test",
57    srcs = ["alts_tsi_handshaker_test.cc"],
58    language = "C++",
59    deps = [
60        ":alts_handshaker_service_api_test_lib",
61        "//:gpr",
62        "//:gpr_base",
63        "//:grpc",
64        "//:tsi",
65        "//test/core/util:gpr_test_util",
66    ],
67)
68
69grpc_cc_test(
70    name = "alts_tsi_utils_test",
71    srcs = ["alts_tsi_utils_test.cc"],
72    language = "C++",
73    deps = [
74        ":alts_handshaker_service_api_test_lib",
75        "//:grpc",
76        "//:tsi",
77        "//test/core/util:gpr_test_util",
78    ],
79)
80
81grpc_cc_test(
82    name = "transport_security_common_api_test",
83    srcs = ["transport_security_common_api_test.cc"],
84    language = "C++",
85    deps = [
86        "//:alts_util",
87        "//:grpc",
88        "//test/core/util:gpr_test_util",
89    ],
90)
91
92