b3d7aa8a5cf013e636e97df8a0c75da8a730cdcd
[platform/upstream/grpc.git] / test / core / transport / chttp2 / BUILD
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_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
16
17 licenses(["notice"])  # Apache v2
18
19 grpc_package(name = "test/core/transport/chttp2")
20
21 load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
22 load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
23
24 grpc_fuzzer(
25     name = "hpack_parser_fuzzer",
26     srcs = ["hpack_parser_fuzzer_test.cc"],
27     corpus = "hpack_parser_corpus",
28     tags = ["no_windows"],
29     deps = [
30         "//:grpc",
31         "//test/core/util:grpc_test_util",
32     ],
33 )
34
35 grpc_cc_test(
36     name = "alpn_test",
37     srcs = ["alpn_test.cc"],
38     language = "C++",
39     deps = [
40         "//:gpr",
41         "//:grpc",
42         "//test/core/util:grpc_test_util",
43     ],
44 )
45
46 grpc_cc_test(
47     name = "bin_decoder_test",
48     srcs = ["bin_decoder_test.cc"],
49     language = "C++",
50     uses_polling = False,
51     deps = [
52         "//:gpr",
53         "//:grpc",
54         "//test/core/util:grpc_test_util",
55     ],
56 )
57
58 grpc_cc_test(
59     name = "bin_encoder_test",
60     srcs = ["bin_encoder_test.cc"],
61     language = "C++",
62     uses_polling = False,
63     deps = [
64         "//:gpr",
65         "//:grpc",
66         "//test/core/util:grpc_test_util",
67     ],
68 )
69
70 grpc_cc_test(
71     name = "context_list_test",
72     srcs = ["context_list_test.cc"],
73     external_deps = [
74         "gtest",
75     ],
76     language = "C++",
77     uses_polling = False,
78     deps = [
79         "//:gpr",
80         "//:grpc",
81         "//test/core/util:grpc_test_util",
82     ],
83 )
84
85 grpc_cc_test(
86     name = "hpack_encoder_test",
87     srcs = ["hpack_encoder_test.cc"],
88     language = "C++",
89     uses_polling = False,
90     deps = [
91         "//:gpr",
92         "//:grpc",
93         "//test/core/util:grpc_test_util",
94     ],
95 )
96
97 grpc_cc_test(
98     name = "hpack_parser_test",
99     srcs = ["hpack_parser_test.cc"],
100     language = "C++",
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 = "hpack_table_test",
111     srcs = ["hpack_table_test.cc"],
112     language = "C++",
113     uses_polling = False,
114     deps = [
115         "//:gpr",
116         "//:grpc",
117         "//test/core/util:grpc_test_util",
118     ],
119 )
120
121 grpc_cc_test(
122     name = "stream_map_test",
123     srcs = ["stream_map_test.cc"],
124     language = "C++",
125     deps = [
126         "//:gpr",
127         "//:grpc",
128         "//test/core/util:grpc_test_util",
129     ],
130 )
131
132 grpc_cc_test(
133     name = "settings_timeout_test",
134     srcs = ["settings_timeout_test.cc"],
135     external_deps = [
136         "gtest",
137     ],
138     flaky = True,  # TODO(b/148399919)
139     language = "C++",
140     deps = [
141         "//:gpr",
142         "//:grpc",
143         "//test/core/util:grpc_test_util",
144     ],
145 )
146
147 grpc_cc_test(
148     "too_many_pings_test",
149     timeout = "long",  # Required for internal test infrastructure (cl/325757166)
150     srcs = ["too_many_pings_test.cc"],
151     external_deps = ["gtest"],
152     deps = [
153         "//:gpr",
154         "//:grpc",
155         "//:grpc++",
156         "//test/core/end2end:cq_verifier",
157         "//test/core/util:grpc_test_util",
158         "//test/cpp/util:test_config",
159         "//test/cpp/util:test_util",
160     ],
161 )
162
163 grpc_cc_test(
164     name = "varint_test",
165     srcs = ["varint_test.cc"],
166     language = "C++",
167     uses_polling = False,
168     deps = [
169         "//:gpr",
170         "//:grpc",
171         "//test/core/util:grpc_test_util",
172     ],
173 )
174
175 grpc_cc_test(
176     name = "remove_stream_from_stalled_lists_test",
177     srcs = ["remove_stream_from_stalled_lists_test.cc"],
178     # use LARGE_MACHINE because this test needs a certaim amount
179     # of parallelism in order to reproduce the original crash that it's meant
180     # to regression test for (a crash which is fixed by
181     # https://github.com/grpc/grpc/pull/23984). Experiments show that if this
182     # test doesn't use LARGE_MACHINE, then it will almost never reproduce the
183     # intended crash (as it's meant to before the fix is applied). But with
184     # LARGE_MACHINE, it can reproduce at a high rate.
185     exec_properties = LARGE_MACHINE,
186     external_deps = [
187         "gtest",
188     ],
189     language = "C++",
190     tags = ["no_windows"],  # LARGE_MACHINE is not configured for windows RBE
191     deps = [
192         "//:gpr",
193         "//:grpc",
194         "//test/core/util:grpc_test_util",
195     ],
196 )