• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "//:grpc",
38        "//:tsi",
39        "//:tsi_interface",
40        "//test/core/util:grpc_test_util",
41    ],
42)
43
44grpc_cc_test(
45    name = "alts_tsi_handshaker_test",
46    srcs = ["alts_tsi_handshaker_test.cc"],
47    language = "C++",
48    deps = [
49        ":alts_handshaker_service_api_test_lib",
50        "//:gpr",
51        "//:gpr_base",
52        "//:grpc",
53        "//:tsi",
54        "//test/core/util:grpc_test_util",
55    ],
56)
57
58grpc_cc_test(
59    name = "alts_tsi_utils_test",
60    srcs = ["alts_tsi_utils_test.cc"],
61    language = "C++",
62    deps = [
63        ":alts_handshaker_service_api_test_lib",
64        "//:grpc",
65        "//:tsi",
66        "//test/core/util:grpc_test_util",
67    ],
68)
69
70grpc_cc_test(
71    name = "transport_security_common_api_test",
72    srcs = ["transport_security_common_api_test.cc"],
73    language = "C++",
74    deps = [
75        "//:alts_util",
76        "//:grpc",
77        "//test/core/util:grpc_test_util",
78    ],
79)
80
81grpc_cc_test(
82    name = "alts_concurrent_connectivity_test",
83    srcs = [
84        "alts_concurrent_connectivity_test.cc",
85    ],
86    external_deps = ["gtest"],
87    language = "C++",
88    # TODO(apolcyn): make the fake TCP server used in this
89    # test portable to Windows.
90    tags = ["no_windows"],
91    deps = [
92        "//:alts_util",
93        "//:grpc",
94        "//test/core/end2end:cq_verifier",
95        "//test/core/tsi/alts/fake_handshaker:fake_handshaker_lib",
96        "//test/core/util:grpc_test_util",
97    ],
98)
99