Imported Upstream version 1.36.0
[platform/upstream/grpc.git] / test / core / gprpp / 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 load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
17
18 licenses(["notice"])  # Apache v2
19
20 grpc_package(name = "test/core/gprpp")
21
22 grpc_cc_test(
23     name = "examine_stack_test",
24     srcs = ["examine_stack_test.cc"],
25     external_deps = [
26         "absl/debugging:stacktrace",
27         "absl/debugging:symbolize",
28         "gtest",
29     ],
30     language = "C++",
31     # TODO(https://github.com/grpc/grpc/issues/24627): Disable this on Windows
32     tags = ["no_windows"],
33     uses_polling = False,
34     deps = [
35         "//:gpr",
36         "//test/core/util:grpc_test_util",
37     ],
38 )
39
40 grpc_cc_test(
41     name = "fork_test",
42     srcs = ["fork_test.cc"],
43     language = "C++",
44     tags = ["no_windows"],
45     uses_polling = False,
46     deps = [
47         "//:gpr",
48         "//test/core/util:grpc_test_util",
49     ],
50 )
51
52 grpc_cc_test(
53     name = "global_config_test",
54     srcs = ["global_config_test.cc"],
55     external_deps = [
56         "gtest",
57     ],
58     language = "C++",
59     uses_polling = False,
60     deps = [
61         "//:gpr",
62         "//test/core/util:grpc_test_util",
63     ],
64 )
65
66 grpc_cc_test(
67     name = "global_config_env_test",
68     srcs = ["global_config_env_test.cc"],
69     external_deps = [
70         "gtest",
71     ],
72     language = "C++",
73     tags = ["no_windows"],  # TODO(jtattermusch): fix the failure on windows
74     uses_polling = False,
75     deps = [
76         "//:gpr",
77         "//test/core/util:grpc_test_util",
78     ],
79 )
80
81 grpc_cc_test(
82     name = "manual_constructor_test",
83     srcs = ["manual_constructor_test.cc"],
84     language = "C++",
85     uses_polling = False,
86     deps = [
87         "//:gpr",
88         "//test/core/util:grpc_test_util",
89     ],
90 )
91
92 grpc_cc_test(
93     name = "host_port_test",
94     srcs = ["host_port_test.cc"],
95     language = "C++",
96     uses_polling = False,
97     deps = [
98         "//:gpr",
99         "//test/core/util:grpc_test_util",
100     ],
101 )
102
103 grpc_cc_test(
104     name = "mpscq_test",
105     srcs = ["mpscq_test.cc"],
106     exec_properties = LARGE_MACHINE,
107     language = "C++",
108     tags = ["no_windows"],  # LARGE_MACHINE is not configured for windows RBE
109     uses_polling = False,
110     deps = [
111         "//:gpr",
112         "//test/core/util:grpc_test_util",
113     ],
114 )
115
116 grpc_cc_test(
117     name = "orphanable_test",
118     srcs = ["orphanable_test.cc"],
119     external_deps = [
120         "gtest",
121     ],
122     language = "C++",
123     deps = [
124         "//:orphanable",
125         "//test/core/util:grpc_test_util",
126     ],
127 )
128
129 grpc_cc_test(
130     name = "ref_counted_test",
131     srcs = ["ref_counted_test.cc"],
132     external_deps = [
133         "gtest",
134     ],
135     language = "C++",
136     deps = [
137         "//:ref_counted",
138         "//test/core/util:grpc_test_util",
139     ],
140 )
141
142 grpc_cc_test(
143     name = "dual_ref_counted_test",
144     srcs = ["dual_ref_counted_test.cc"],
145     external_deps = [
146         "gtest",
147     ],
148     language = "C++",
149     deps = [
150         "//:dual_ref_counted",
151         "//test/core/util:grpc_test_util",
152     ],
153 )
154
155 grpc_cc_test(
156     name = "ref_counted_ptr_test",
157     srcs = ["ref_counted_ptr_test.cc"],
158     external_deps = [
159         "gtest",
160     ],
161     language = "C++",
162     deps = [
163         "//:dual_ref_counted",
164         "//:ref_counted",
165         "//:ref_counted_ptr",
166         "//test/core/util:grpc_test_util",
167     ],
168 )
169
170 grpc_cc_test(
171     name = "thd_test",
172     srcs = ["thd_test.cc"],
173     language = "C++",
174     uses_polling = False,
175     deps = [
176         "//:gpr",
177         "//test/core/util:grpc_test_util",
178     ],
179 )
180
181 grpc_cc_test(
182     name = "stat_test",
183     srcs = ["stat_test.cc"],
184     external_deps = [
185         "gtest",
186     ],
187     language = "C++",
188     uses_polling = False,
189     deps = [
190         "//:gpr",
191         "//:grpc",
192         "//test/core/util:grpc_test_util",
193     ],
194 )
195
196 grpc_cc_test(
197     name = "time_util_test",
198     srcs = ["time_util_test.cc"],
199     external_deps = [
200         "gtest",
201     ],
202     language = "C++",
203     uses_polling = False,
204     deps = [
205         "//:gpr",
206         "//test/core/util:grpc_test_util",
207     ],
208 )