• 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"])
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        "//:grpc",
27    ],
28)
29
30grpc_cc_test(
31    name = "alts_handshaker_client_test",
32    srcs = ["alts_handshaker_client_test.cc"],
33    external_deps = ["gtest"],
34    language = "C++",
35    deps = [
36        ":alts_handshaker_service_api_test_lib",
37        "//:grpc",
38        "//src/core:env",
39        "//test/core/util:grpc_test_util",
40    ],
41)
42
43grpc_cc_test(
44    name = "alts_tsi_handshaker_test",
45    srcs = ["alts_tsi_handshaker_test.cc"],
46    external_deps = ["gtest"],
47    language = "C++",
48    deps = [
49        ":alts_handshaker_service_api_test_lib",
50        "//:gpr",
51        "//:grpc",
52        "//test/core/util:grpc_test_util",
53    ],
54)
55
56grpc_cc_test(
57    name = "alts_tsi_utils_test",
58    srcs = ["alts_tsi_utils_test.cc"],
59    external_deps = ["gtest"],
60    language = "C++",
61    deps = [
62        ":alts_handshaker_service_api_test_lib",
63        "//:grpc",
64        "//test/core/util:grpc_test_util",
65    ],
66)
67
68grpc_cc_test(
69    name = "transport_security_common_api_test",
70    srcs = ["transport_security_common_api_test.cc"],
71    external_deps = ["gtest"],
72    language = "C++",
73    deps = [
74        "//:grpc",
75        "//test/core/util:grpc_test_util",
76    ],
77)
78
79grpc_cc_test(
80    name = "alts_concurrent_connectivity_test",
81    srcs = [
82        "alts_concurrent_connectivity_test.cc",
83    ],
84    external_deps = ["gtest"],
85    flaky = True,
86    language = "C++",
87    # TODO(apolcyn): make the fake TCP server used in this
88    # test portable to Windows.
89    tags = [
90        "no_mac",  # TODO(https://github.com/grpc/grpc/issues/24747): Disable temporarily
91        "no_windows",
92    ],
93    deps = [
94        "//:grpc",
95        "//src/core:slice",
96        "//test/core/end2end:cq_verifier",
97        "//test/core/tsi/alts/fake_handshaker:fake_handshaker_lib",
98        "//test/core/util:fake_udp_and_tcp_server",
99        "//test/core/util:grpc_test_util",
100    ],
101)
102