• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:custom_exec_properties.bzl", "LARGE_MACHINE")
16load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package")
17
18licenses(["notice"])
19
20grpc_package(
21    name = "test/core/iomgr",
22    visibility = "public",
23)  # Useful for third party devs to test their io manager implementation.
24
25grpc_cc_library(
26    name = "endpoint_tests",
27    srcs = ["endpoint_tests.cc"],
28    hdrs = ["endpoint_tests.h"],
29    language = "C++",
30    visibility = [
31        "//test:__subpackages__",
32        "@grpc:endpoint_tests",
33    ],
34    deps = [
35        "//:gpr",
36        "//:grpc",
37        "//src/core:slice",
38        "//test/core/util:grpc_test_util",
39        "//test/core/util:grpc_test_util_base",
40    ],
41)
42
43grpc_cc_test(
44    name = "combiner_test",
45    srcs = ["combiner_test.cc"],
46    exec_properties = LARGE_MACHINE,
47    external_deps = ["gtest"],
48    flaky = True,
49    language = "C++",
50    tags = ["no_windows"],  # LARGE_MACHINE is not configured for windows RBE
51    deps = [
52        "//:gpr",
53        "//:grpc",
54        "//test/core/util:grpc_test_util",
55        "//test/core/util:grpc_test_util_base",
56    ],
57)
58
59grpc_cc_test(
60    name = "endpoint_pair_test",
61    srcs = ["endpoint_pair_test.cc"],
62    external_deps = ["gtest"],
63    language = "C++",
64    tags = [
65        "endpoint_test",
66        "event_engine_client_test",
67    ],
68    deps = [
69        ":endpoint_tests",
70        "//:gpr",
71        "//:grpc",
72        "//test/core/util:grpc_test_util",
73        "//test/core/util:grpc_test_util_base",
74    ],
75)
76
77grpc_cc_test(
78    name = "error_test",
79    srcs = ["error_test.cc"],
80    external_deps = [
81        "gtest",
82    ],
83    language = "C++",
84    uses_event_engine = False,
85    uses_polling = False,
86    deps = [
87        ":endpoint_tests",
88        "//:gpr",
89        "//:grpc",
90        "//test/core/util:grpc_test_util",
91        "//test/core/util:grpc_test_util_base",
92    ],
93)
94
95grpc_cc_test(
96    name = "fd_conservation_posix_test",
97    srcs = ["fd_conservation_posix_test.cc"],
98    language = "C++",
99    tags = ["no_windows"],
100    deps = [
101        "//:gpr",
102        "//:grpc",
103        "//test/core/util:grpc_test_util",
104        "//test/core/util:grpc_test_util_base",
105    ],
106)
107
108grpc_cc_test(
109    name = "fd_posix_test",
110    srcs = ["fd_posix_test.cc"],
111    external_deps = ["gtest"],
112    language = "C++",
113    tags = ["no_windows"],
114    deps = [
115        "//:gpr",
116        "//:grpc",
117        "//test/core/util:grpc_test_util",
118        "//test/core/util:grpc_test_util_base",
119    ],
120)
121
122grpc_cc_test(
123    name = "grpc_ipv6_loopback_available_test",
124    srcs = ["grpc_ipv6_loopback_available_test.cc"],
125    external_deps = ["gtest"],
126    language = "C++",
127    deps = [
128        "//:gpr",
129        "//:grpc",
130        "//test/core/util:grpc_test_util",
131        "//test/core/util:grpc_test_util_base",
132    ],
133)
134
135grpc_cc_test(
136    name = "resolve_address_using_ares_resolver_posix_test",
137    srcs = ["resolve_address_posix_test.cc"],
138    args = [
139        "--resolver=ares",
140    ],
141    external_deps = [
142        "absl/flags:flag",
143        "absl/flags:parse",
144        "absl/strings",
145        "gtest",
146    ],
147    language = "C++",
148    tags = ["no_windows"],
149    deps = [
150        "//:gpr",
151        "//:grpc",
152        "//test/core/util:grpc_test_util",
153        "//test/core/util:grpc_test_util_base",
154    ],
155)
156
157grpc_cc_test(
158    name = "resolve_address_using_native_resolver_posix_test",
159    srcs = ["resolve_address_posix_test.cc"],
160    args = [
161        "--resolver=native",
162    ],
163    external_deps = [
164        "absl/flags:flag",
165        "absl/flags:parse",
166        "absl/strings",
167        "gtest",
168    ],
169    language = "C++",
170    tags = ["no_windows"],
171    deps = [
172        "//:gpr",
173        "//:grpc",
174        "//test/core/util:grpc_test_util",
175        "//test/core/util:grpc_test_util_base",
176    ],
177)
178
179grpc_cc_test(
180    name = "resolve_address_using_ares_resolver_test",
181    srcs = ["resolve_address_test.cc"],
182    external_deps = [
183        "absl/strings",
184        "gtest",
185    ],
186    language = "C++",
187    deps = [
188        "//:gpr",
189        "//:grpc",
190        "//test/core/util:fake_udp_and_tcp_server",
191        "//test/core/util:grpc_test_util",
192        "//test/core/util:grpc_test_util_base",
193        "//test/cpp/util:test_config",
194    ],
195)
196
197grpc_cc_test(
198    name = "resolve_address_using_native_resolver_test",
199    srcs = ["resolve_address_test.cc"],
200    external_deps = [
201        "absl/strings",
202        "gtest",
203    ],
204    language = "C++",
205    deps = [
206        "//:gpr",
207        "//:grpc",
208        "//test/core/util:fake_udp_and_tcp_server",
209        "//test/core/util:grpc_test_util",
210        "//test/core/util:grpc_test_util_base",
211        "//test/cpp/util:test_config",
212    ],
213)
214
215grpc_cc_test(
216    name = "socket_utils_test",
217    srcs = ["socket_utils_test.cc"],
218    external_deps = ["gtest"],
219    language = "C++",
220    tags = ["no_windows"],
221    deps = [
222        "//:gpr",
223        "//:grpc",
224        "//test/core/util:grpc_test_util",
225        "//test/core/util:grpc_test_util_base",
226    ],
227)
228
229grpc_cc_test(
230    name = "tcp_client_posix_test",
231    srcs = ["tcp_client_posix_test.cc"],
232    external_deps = ["gtest"],
233    language = "C++",
234    tags = [
235        "endpoint_test",
236        "event_engine_client_test",
237        "no_windows",
238    ],
239    deps = [
240        "//:gpr",
241        "//:grpc",
242        "//src/core:channel_args",
243        "//test/core/util:grpc_test_util",
244        "//test/core/util:grpc_test_util_base",
245    ],
246)
247
248grpc_cc_test(
249    name = "tcp_posix_test",
250    srcs = ["tcp_posix_test.cc"],
251    external_deps = ["gtest"],
252    language = "C++",
253    tags = [
254        "endpoint_test",
255        "event_engine_listener_test",
256        "no_mac",  # TODO(jtattermusch): Reenable once https://github.com/grpc/grpc/issues/21282 is fixed.
257        "no_windows",
258    ],
259    deps = [
260        ":endpoint_tests",
261        "//:gpr",
262        "//:grpc",
263        "//src/core:channel_args",
264        "//src/core:slice",
265        "//test/core/util:grpc_test_util",
266        "//test/core/util:grpc_test_util_base",
267    ],
268)
269
270grpc_cc_test(
271    name = "buffer_list_test",
272    srcs = ["buffer_list_test.cc"],
273    external_deps = ["gtest"],
274    language = "C++",
275    deps = [
276        "//:gpr",
277        "//:grpc",
278        "//test/core/util:grpc_test_util",
279        "//test/core/util:grpc_test_util_base",
280    ],
281)
282
283grpc_cc_test(
284    name = "pollset_windows_starvation_test",
285    srcs = ["pollset_windows_starvation_test.cc"],
286    language = "C++",
287    tags = [
288        "no_linux",
289        "no_mac",
290    ],
291    deps = [
292        "//:gpr",
293        "//:grpc",
294        "//test/core/util:grpc_test_util",
295    ],
296)
297
298grpc_cc_test(
299    name = "tcp_server_posix_test",
300    srcs = ["tcp_server_posix_test.cc"],
301    external_deps = ["gtest"],
302    language = "C++",
303    tags = [
304        "event_engine_listener_test",
305        "no_windows",
306    ],
307    deps = [
308        "//:gpr",
309        "//:grpc",
310        "//test/core/util:grpc_test_util",
311        "//test/core/util:grpc_test_util_base",
312    ],
313)
314
315grpc_cc_test(
316    name = "timer_heap_test",
317    srcs = ["timer_heap_test.cc"],
318    external_deps = ["gtest"],
319    language = "C++",
320    uses_event_engine = False,
321    uses_polling = False,
322    deps = [
323        "//:gpr",
324        "//:grpc",
325        "//test/core/util:grpc_test_util",
326        "//test/core/util:grpc_test_util_base",
327    ],
328)
329
330grpc_cc_test(
331    name = "timer_list_test",
332    srcs = ["timer_list_test.cc"],
333    language = "C++",
334    uses_event_engine = False,
335    uses_polling = False,
336    deps = [
337        "//:gpr",
338        "//:grpc",
339        "//test/core/util:grpc_test_util",
340        "//test/core/util:grpc_test_util_base",
341    ],
342)
343