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_test", "grpc_package") 16 17licenses(["notice"]) 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/test_util:grpc_test_util_base", 31 "//test/core/test_util:grpc_test_util_unsecure", 32 ], 33) 34 35grpc_cc_test( 36 name = "timer_test", 37 srcs = ["timer_test.cc"], 38 external_deps = [ 39 "absl/log:check", 40 "gtest", 41 ], 42 flaky = True, 43 deps = [ 44 "//:grpc++", 45 "//src/core:closure", 46 "//test/core/test_util:grpc_test_util", 47 ], 48) 49 50grpc_cc_test( 51 name = "time_jump_test", 52 srcs = ["time_jump_test.cc"], 53 external_deps = [ 54 "absl/log:check", 55 "gtest", 56 ], 57 tags = [ 58 # Test manipulates system time and requires root while running so it is only 59 # run on demand ("manual") and when no other tests are running ("exclusive"). 60 # It also means that the test won't work with setups like bazel RBE. 61 "manual", 62 "exclusive", 63 "no_windows", 64 ], 65 deps = [ 66 "//:grpc++", 67 "//src/core:closure", 68 "//test/core/test_util:grpc_test_util", 69 ], 70) 71 72grpc_cc_test( 73 name = "auth_property_iterator_test", 74 srcs = ["auth_property_iterator_test.cc"], 75 external_deps = [ 76 "gtest", 77 ], 78 uses_event_engine = False, 79 uses_polling = False, 80 deps = [ 81 "//:grpc++", 82 "//test/core/test_util:grpc_test_util", 83 "//test/cpp/util:test_util", 84 ], 85) 86 87grpc_cc_test( 88 name = "channel_arguments_test", 89 srcs = ["channel_arguments_test.cc"], 90 external_deps = [ 91 "gtest", 92 ], 93 uses_event_engine = False, 94 uses_polling = False, 95 deps = [ 96 "//:grpc++", 97 "//test/core/test_util:grpc_test_util", 98 ], 99) 100 101grpc_cc_test( 102 name = "secure_auth_context_test", 103 srcs = ["secure_auth_context_test.cc"], 104 external_deps = [ 105 "gtest", 106 ], 107 deps = [ 108 "//:grpc++", 109 "//test/core/test_util:grpc_test_util", 110 "//test/cpp/util:test_util", 111 ], 112) 113 114grpc_cc_test( 115 name = "alts_util_test", 116 srcs = ["alts_util_test.cc"], 117 external_deps = [ 118 "gtest", 119 ], 120 deps = [ 121 "//:grpc++_alts", 122 "//test/core/test_util:grpc_test_util", 123 "//test/cpp/util:test_util", 124 ], 125) 126