xref: /aosp_15_r20/external/grpc-grpc/test/core/slice/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")
16load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
17
18grpc_package(name = "test/core/slice")
19
20licenses(["notice"])
21
22grpc_fuzzer(
23    name = "percent_encode_fuzzer",
24    srcs = ["percent_encode_fuzzer.cc"],
25    corpus = "percent_encode_corpus",
26    language = "C++",
27    tags = ["no_windows"],
28    deps = [
29        "//:gpr",
30        "//:grpc",
31        "//test/core/util:grpc_test_util",
32    ],
33)
34
35grpc_fuzzer(
36    name = "percent_decode_fuzzer",
37    srcs = ["percent_decode_fuzzer.cc"],
38    corpus = "percent_decode_corpus",
39    language = "C++",
40    tags = ["no_windows"],
41    deps = [
42        "//:gpr",
43        "//:grpc",
44        "//test/core/util:grpc_test_util",
45    ],
46)
47
48grpc_cc_test(
49    name = "percent_encoding_test",
50    srcs = ["percent_encoding_test.cc"],
51    external_deps = ["gtest"],
52    language = "C++",
53    uses_event_engine = False,
54    uses_polling = False,
55    deps = [
56        "//:gpr",
57        "//:grpc",
58        "//src/core:slice",
59        "//test/core/util:grpc_test_util",
60    ],
61)
62
63grpc_cc_test(
64    name = "slice_test",
65    srcs = ["slice_test.cc"],
66    external_deps = [
67        "gtest",
68    ],
69    language = "C++",
70    uses_event_engine = False,
71    uses_polling = False,
72    deps = [
73        "//:gpr",
74        "//:grpc",
75        "//src/core:slice",
76        "//test/core/util:build",
77    ],
78)
79
80grpc_cc_test(
81    name = "slice_string_helpers_test",
82    srcs = ["slice_string_helpers_test.cc"],
83    external_deps = ["gtest"],
84    language = "C++",
85    uses_event_engine = False,
86    uses_polling = False,
87    deps = [
88        "//:gpr",
89        "//src/core:slice",
90    ],
91)
92
93grpc_cc_test(
94    name = "slice_buffer_test",
95    srcs = ["slice_buffer_test.cc"],
96    external_deps = ["gtest"],
97    uses_event_engine = False,
98    uses_polling = False,
99    deps = [
100        "//:grpc",
101        "//test/core/util:grpc_test_util",
102    ],
103)
104
105grpc_cc_test(
106    name = "c_slice_buffer_test",
107    srcs = ["c_slice_buffer_test.cc"],
108    external_deps = ["gtest"],
109    language = "C++",
110    uses_event_engine = False,
111    uses_polling = False,
112    deps = [
113        "//:gpr",
114        "//:grpc",
115        "//src/core:slice",
116        "//test/core/util:grpc_test_util",
117    ],
118)
119