Debian Codegraph @

test/core/transport/chttp2/BUILD

raw
1 # Copyright 2016 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 load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer", "grpc_proto_fuzzer")
17 load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
18
19 licenses(["notice"])
20
21 grpc_package(name = "test/core/transport/chttp2")
22
23 grpc_proto_fuzzer(
24 name = "hpack_parser_fuzzer",
25 srcs = ["hpack_parser_fuzzer_test.cc"],
26 corpus = "hpack_parser_corpus",
27 proto = "hpack_parser_fuzzer.proto",
28 tags = ["no_windows"],
29 deps = [
30 "//:grpc",
31 "//test/core/util:grpc_test_util",
32 ],
33 )
34
35 grpc_proto_fuzzer(
36 name = "flow_control_fuzzer",
37 srcs = ["flow_control_fuzzer.cc"],
38 corpus = "flow_control_fuzzer_corpus",
39 language = "C++",
40 proto = "flow_control_fuzzer.proto",
41 tags = ["no_windows"],
42 uses_event_engine = False,
43 uses_polling = False,
44 deps = [
45 "//:gpr",
46 "//src/core:chttp2_flow_control",
47 ],
48 )
49
50 grpc_fuzzer(
51 name = "decode_huff_fuzzer",
52 srcs = ["decode_huff_fuzzer.cc"],
53 corpus = "decode_huff_corpus",
54 external_deps = [
55 "absl/types:optional",
56 "absl/strings",
57 ],
58 language = "C++",
59 tags = ["no_windows"],
60 deps = [
61 "//src/core:decode_huff",
62 "//src/core:huffsyms",
63 ],
64 )
65
66 grpc_fuzzer(
67 name = "encode_decode_huff_fuzzer",
68 srcs = ["encode_decode_huff_fuzzer.cc"],
69 corpus = "encode_decode_huff_corpus",
70 external_deps = [
71 "absl/types:optional",
72 "absl/strings",
73 ],
74 language = "C++",
75 tags = ["no_windows"],
76 deps = [
77 "//:grpc",
78 "//src/core:decode_huff",
79 "//src/core:huffsyms",
80 ],
81 )
82
83 grpc_cc_test(
84 name = "alpn_test",
85 srcs = ["alpn_test.cc"],
86 external_deps = ["gtest"],
87 language = "C++",
88 deps = [
89 "//:gpr",
90 "//:grpc",
91 "//test/core/util:grpc_test_util",
92 ],
93 )
94
95 grpc_cc_test(
96 name = "bin_decoder_test",
97 srcs = ["bin_decoder_test.cc"],
98 external_deps = ["gtest"],
99 language = "C++",
100 uses_event_engine = False,
101 uses_polling = False,
102 deps = [
103 "//:gpr",
104 "//:grpc",
105 "//test/core/util:grpc_test_util",
106 ],
107 )
108
109 grpc_cc_test(
110 name = "bin_encoder_test",
111 srcs = ["bin_encoder_test.cc"],
112 external_deps = ["gtest"],
113 language = "C++",
114 uses_event_engine = False,
115 uses_polling = False,
116 deps = [
117 "//:gpr",
118 "//:grpc",
119 "//test/core/util:grpc_test_util",
120 ],
121 )
122
123 grpc_cc_test(
124 name = "context_list_test",
125 srcs = ["context_list_test.cc"],
126 external_deps = [
127 "gtest",
128 ],
129 language = "C++",
130 uses_event_engine = False,
131 uses_polling = False,
132 deps = [
133 "//:gpr",
134 "//:grpc",
135 "//test/core/util:grpc_test_util",
136 "//test/core/util:grpc_test_util_base",
137 ],
138 )
139
140 grpc_cc_test(
141 name = "flow_control_test",
142 srcs = ["flow_control_test.cc"],
143 external_deps = [
144 "gtest",
145 ],
146 language = "C++",
147 tags = ["flow_control_test"],
148 uses_event_engine = False,
149 uses_polling = False,
150 deps = [
151 "//src/core:chttp2_flow_control",
152 "//src/core:resource_quota",
153 ],
154 )
155
156 grpc_cc_test(
157 name = "graceful_shutdown_test",
158 srcs = ["graceful_shutdown_test.cc"],
159 external_deps = ["gtest"],
160 language = "C++",
161 deps = [
162 "//:gpr",
163 "//:grpc",
164 "//test/core/end2end:cq_verifier",
165 "//test/core/util:grpc_test_util",
166 ],
167 )
168
169 grpc_cc_test(
170 name = "hpack_encoder_test",
171 srcs = ["hpack_encoder_test.cc"],
172 external_deps = ["gtest"],
173 language = "C++",
174 tags = ["hpack_test"],
175 uses_event_engine = False,
176 uses_polling = False,
177 deps = [
178 "//:gpr",
179 "//:grpc",
180 "//test/core/util:grpc_test_util",
181 "//test/core/util:grpc_test_util_base",
182 ],
183 )
184
185 grpc_cc_test(
186 name = "hpack_parser_test",
187 srcs = ["hpack_parser_test.cc"],
188 external_deps = ["gtest"],
189 language = "C++",
190 tags = ["hpack_test"],
191 uses_event_engine = False,
192 uses_polling = False,
193 deps = [
194 "//:gpr",
195 "//:grpc",
196 "//test/core/util:grpc_test_util",
197 "//test/core/util:grpc_test_util_base",
198 ],
199 )
200
201 grpc_cc_test(
202 name = "hpack_parser_table_test",
203 srcs = ["hpack_parser_table_test.cc"],
204 external_deps = ["gtest"],
205 language = "C++",
206 tags = ["hpack_test"],
207 uses_event_engine = False,
208 uses_polling = False,
209 deps = [
210 "//:gpr",
211 "//:grpc",
212 "//test/core/util:grpc_test_util",
213 "//test/core/util:grpc_test_util_base",
214 ],
215 )
216
217 grpc_cc_test(
218 name = "stream_map_test",
219 srcs = ["stream_map_test.cc"],
220 external_deps = ["gtest"],
221 language = "C++",
222 deps = [
223 "//:gpr",
224 "//:grpc",
225 "//test/core/util:grpc_test_util",
226 "//test/core/util:grpc_test_util_base",
227 ],
228 )
229
230 grpc_cc_test(
231 name = "streams_not_seen_test",
232 srcs = ["streams_not_seen_test.cc"],
233 external_deps = ["gtest"],
234 language = "C++",
235 deps = [
236 "//:gpr",
237 "//:grpc",
238 "//test/core/end2end:cq_verifier",
239 "//test/core/util:grpc_test_util",
240 "//test/core/util:grpc_test_util_base",
241 ],
242 )
243
244 grpc_cc_test(
245 name = "settings_timeout_test",
246 srcs = ["settings_timeout_test.cc"],
247 external_deps = [
248 "gtest",
249 ],
250 language = "C++",
251 deps = [
252 "//:gpr",
253 "//:grpc",
254 "//test/core/util:grpc_test_util",
255 "//test/core/util:grpc_test_util_base",
256 ],
257 )
258
259 grpc_cc_test(
260 name = "too_many_pings_test",
261 timeout = "long", # Required for internal test infrastructure (cl/325757166)
262 srcs = ["too_many_pings_test.cc"],
263 external_deps = ["gtest"],
264 flaky = True,
265 shard_count = 7,
266 deps = [
267 "//:gpr",
268 "//:grpc",
269 "//:grpc++",
270 "//test/core/end2end:cq_verifier",
271 "//test/core/util:grpc_test_util",
272 "//test/cpp/util:test_config",
273 "//test/cpp/util:test_util",
274 ],
275 )
276
277 grpc_cc_test(
278 name = "varint_test",
279 srcs = ["varint_test.cc"],
280 external_deps = ["gtest"],
281 language = "C++",
282 uses_event_engine = False,
283 uses_polling = False,
284 deps = [
285 "//:gpr",
286 "//:grpc",
287 "//test/core/util:grpc_test_util",
288 ],
289 )
290
291 grpc_cc_test(
292 name = "remove_stream_from_stalled_lists_test",
293 srcs = ["remove_stream_from_stalled_lists_test.cc"],
294 # use LARGE_MACHINE because this test needs a certaim amount
295 # of parallelism in order to reproduce the original crash that it's meant
296 # to regression test for (a crash which is fixed by
297 # https://github.com/grpc/grpc/pull/23984). Experiments show that if this
298 # test doesn't use LARGE_MACHINE, then it will almost never reproduce the
299 # intended crash (as it's meant to before the fix is applied). But with
300 # LARGE_MACHINE, it can reproduce at a high rate.
301 exec_properties = LARGE_MACHINE,
302 external_deps = [
303 "gtest",
304 ],
305 language = "C++",
306 tags = [
307 "flow_control_test",
308 "no_windows",
309 ], # LARGE_MACHINE is not configured for windows RBE
310 deps = [
311 "//:gpr",
312 "//:grpc",
313 "//test/core/util:grpc_test_util",
314 ],
315 )
316
317 grpc_cc_test(
318 name = "stream_leak_with_queued_flow_control_update_test",
319 srcs = ["stream_leak_with_queued_flow_control_update_test.cc"],
320 external_deps = [
321 "gtest",
322 ],
323 language = "C++",
324 deps = [
325 "//:gpr",
326 "//:grpc",
327 "//test/core/util:grpc_test_util",
328 ],
329 )