# Copyright 2018 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package") licenses(["notice"]) # Apache v2 grpc_package(name = "test/core/tsi/alts/handshaker") grpc_cc_library( name = "alts_handshaker_service_api_test_lib", srcs = ["alts_handshaker_service_api_test_lib.cc"], hdrs = ["alts_handshaker_service_api_test_lib.h"], deps = [ "//:alts_util", "//:grpc", ], ) grpc_cc_test( name = "alts_handshaker_client_test", srcs = ["alts_handshaker_client_test.cc"], language = "C++", deps = [ ":alts_handshaker_service_api_test_lib", "//:grpc", "//:tsi", "//:tsi_interface", "//test/core/util:grpc_test_util", ], ) grpc_cc_test( name = "alts_tsi_handshaker_test", srcs = ["alts_tsi_handshaker_test.cc"], language = "C++", deps = [ ":alts_handshaker_service_api_test_lib", "//:gpr", "//:gpr_base", "//:grpc", "//:tsi", "//test/core/util:grpc_test_util", ], ) grpc_cc_test( name = "alts_tsi_utils_test", srcs = ["alts_tsi_utils_test.cc"], language = "C++", deps = [ ":alts_handshaker_service_api_test_lib", "//:grpc", "//:tsi", "//test/core/util:grpc_test_util", ], ) grpc_cc_test( name = "transport_security_common_api_test", srcs = ["transport_security_common_api_test.cc"], language = "C++", deps = [ "//:alts_util", "//:grpc", "//test/core/util:grpc_test_util", ], ) grpc_cc_test( name = "alts_concurrent_connectivity_test", srcs = [ "alts_concurrent_connectivity_test.cc", ], external_deps = ["gtest"], language = "C++", # TODO(apolcyn): make the fake TCP server used in this # test portable to Windows. tags = ["no_windows"], deps = [ "//:alts_util", "//:grpc", "//test/core/end2end:cq_verifier", "//test/core/tsi/alts/fake_handshaker:fake_handshaker_lib", "//test/core/util:grpc_test_util", ], )