Debian Codegraph @

test/cpp/common/BUILD

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