1# Copyright 2017 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_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package") 16 17licenses(["notice"]) # Apache v2 18 19grpc_package( 20 name = "test/core/tsi", 21 visibility = "public", 22) 23 24grpc_cc_library( 25 name = "transport_security_test_lib", 26 srcs = ["transport_security_test_lib.cc"], 27 hdrs = ["transport_security_test_lib.h"], 28 deps = [ 29 "//:grpc", 30 "//:tsi", 31 ], 32) 33 34grpc_cc_test( 35 name = "fake_transport_security_test", 36 srcs = ["fake_transport_security_test.cc"], 37 language = "C++", 38 deps = [ 39 ":transport_security_test_lib", 40 "//:gpr", 41 "//:grpc", 42 "//:tsi", 43 "//test/core/util:grpc_test_util", 44 ], 45) 46 47grpc_cc_test( 48 name = "ssl_session_cache_test", 49 srcs = ["ssl_session_cache_test.cc"], 50 external_deps = [ 51 "gtest", 52 ], 53 language = "C++", 54 deps = [ 55 "//:gpr", 56 "//:grpc", 57 "//:tsi", 58 "//test/core/util:grpc_test_util", 59 ], 60) 61 62grpc_cc_test( 63 name = "ssl_transport_security_test", 64 srcs = ["ssl_transport_security_test.cc"], 65 data = [ 66 "//src/core/tsi/test_creds:badclient.key", 67 "//src/core/tsi/test_creds:badclient.pem", 68 "//src/core/tsi/test_creds:badserver.key", 69 "//src/core/tsi/test_creds:badserver.pem", 70 "//src/core/tsi/test_creds:ca.pem", 71 "//src/core/tsi/test_creds:client.key", 72 "//src/core/tsi/test_creds:client.pem", 73 "//src/core/tsi/test_creds:multi-domain.key", 74 "//src/core/tsi/test_creds:multi-domain.pem", 75 "//src/core/tsi/test_creds:server0.key", 76 "//src/core/tsi/test_creds:server0.pem", 77 "//src/core/tsi/test_creds:server1.key", 78 "//src/core/tsi/test_creds:server1.pem", 79 ], 80 language = "C++", 81 tags = ["no_windows"], 82 deps = [ 83 ":transport_security_test_lib", 84 "//:gpr", 85 "//:grpc", 86 "//:tsi", 87 "//test/core/util:grpc_test_util", 88 ], 89) 90 91grpc_cc_test( 92 name = "transport_security_test", 93 srcs = ["transport_security_test.cc"], 94 language = "C++", 95 deps = [ 96 "//:gpr", 97 "//:grpc", 98 "//test/core/util:grpc_test_util", 99 ], 100) 101