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