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