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