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 15licenses(["notice"]) # Apache v2 16 17load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package") 18 19grpc_package(name = "test/cpp/common") 20 21grpc_cc_test( 22 name = "alarm_test", 23 srcs = ["alarm_test.cc"], 24 external_deps = [ 25 "gtest", 26 ], 27 tags = ["no_windows"], # TODO(jtattermusch): fix test on windows RBE 28 deps = [ 29 "//:grpc++_unsecure", 30 "//test/core/util:grpc_test_util_unsecure", 31 ], 32) 33 34grpc_cc_test( 35 name = "timer_test", 36 srcs = ["timer_test.cc"], 37 external_deps = [ 38 "gtest", 39 ], 40 deps = [ 41 "//:grpc++", 42 "//test/core/util:grpc_test_util", 43 ], 44) 45 46grpc_cc_test( 47 name = "time_jump_test", 48 srcs = ["time_jump_test.cc"], 49 external_deps = [ 50 "gtest", 51 ], 52 tags = [ 53 "manual", 54 "no_windows", 55 ], 56 deps = [ 57 "//:grpc++", 58 "//test/core/util:grpc_test_util", 59 ], 60) 61 62grpc_cc_test( 63 name = "auth_property_iterator_test", 64 srcs = ["auth_property_iterator_test.cc"], 65 external_deps = [ 66 "gtest", 67 ], 68 uses_polling = False, 69 deps = [ 70 "//:grpc++", 71 "//test/core/util:grpc_test_util", 72 "//test/cpp/util:test_util", 73 ], 74) 75 76grpc_cc_test( 77 name = "channel_arguments_test", 78 srcs = ["channel_arguments_test.cc"], 79 external_deps = [ 80 "gtest", 81 ], 82 uses_polling = False, 83 deps = [ 84 "//:grpc++", 85 "//test/core/util:grpc_test_util", 86 ], 87) 88 89grpc_cc_test( 90 name = "channel_filter_test", 91 srcs = ["channel_filter_test.cc"], 92 external_deps = [ 93 "gtest", 94 ], 95 uses_polling = False, 96 deps = [ 97 "//:grpc++", 98 "//test/core/util:grpc_test_util", 99 ], 100) 101 102grpc_cc_test( 103 name = "secure_auth_context_test", 104 srcs = ["secure_auth_context_test.cc"], 105 external_deps = [ 106 "gtest", 107 ], 108 deps = [ 109 "//:grpc++", 110 "//test/core/util:grpc_test_util", 111 "//test/cpp/util:test_util", 112 ], 113) 114 115grpc_cc_test( 116 name = "alts_util_test", 117 srcs = ["alts_util_test.cc"], 118 external_deps = [ 119 "gtest", 120 ], 121 deps = [ 122 "//:grpc++_alts", 123 "//test/core/util:grpc_test_util", 124 "//test/cpp/util:test_util", 125 ], 126) 127