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_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package") 16 17grpc_package(name = "test/core/slice") 18 19licenses(["notice"]) # Apache v2 20 21load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") 22 23grpc_fuzzer( 24 name = "b64_encode_fuzzer", 25 srcs = ["b64_encode_fuzzer.cc"], 26 corpus = "b64_encode_corpus", 27 language = "C++", 28 tags = ["no_windows"], 29 deps = [ 30 "//:grpc", 31 ], 32) 33 34grpc_fuzzer( 35 name = "b64_decode_fuzzer", 36 srcs = ["b64_decode_fuzzer.cc"], 37 corpus = "b64_decode_corpus", 38 language = "C++", 39 tags = ["no_windows"], 40 deps = [ 41 "//:grpc", 42 ], 43) 44 45grpc_fuzzer( 46 name = "percent_encode_fuzzer", 47 srcs = ["percent_encode_fuzzer.cc"], 48 corpus = "percent_encode_corpus", 49 language = "C++", 50 tags = ["no_windows"], 51 deps = [ 52 "//:gpr", 53 "//:grpc", 54 "//test/core/util:grpc_test_util", 55 ], 56) 57 58grpc_fuzzer( 59 name = "percent_decode_fuzzer", 60 srcs = ["percent_decode_fuzzer.cc"], 61 corpus = "percent_decode_corpus", 62 language = "C++", 63 tags = ["no_windows"], 64 deps = [ 65 "//:gpr", 66 "//:grpc", 67 "//test/core/util:grpc_test_util", 68 ], 69) 70 71grpc_cc_test( 72 name = "percent_encoding_test", 73 srcs = ["percent_encoding_test.cc"], 74 language = "C++", 75 uses_polling = False, 76 deps = [ 77 "//:gpr", 78 "//:grpc", 79 "//test/core/util:grpc_test_util", 80 ], 81) 82 83grpc_cc_test( 84 name = "slice_test", 85 srcs = ["slice_test.cc"], 86 language = "C++", 87 uses_polling = False, 88 deps = [ 89 "//:gpr", 90 "//:grpc", 91 "//test/core/util:grpc_test_util", 92 ], 93) 94 95grpc_cc_test( 96 name = "slice_string_helpers_test", 97 srcs = ["slice_string_helpers_test.cc"], 98 language = "C++", 99 uses_polling = False, 100 deps = [ 101 "//:gpr", 102 "//:grpc", 103 "//test/core/util:grpc_test_util", 104 ], 105) 106 107grpc_cc_test( 108 name = "slice_buffer_test", 109 srcs = ["slice_buffer_test.cc"], 110 language = "C++", 111 uses_polling = False, 112 deps = [ 113 "//:gpr", 114 "//:grpc", 115 "//test/core/util:grpc_test_util", 116 ], 117) 118 119grpc_cc_test( 120 name = "slice_hash_table_test", 121 srcs = ["slice_hash_table_test.cc"], 122 external_deps = [ 123 "gtest", 124 ], 125 language = "C++", 126 uses_polling = False, 127 deps = [ 128 "//:gpr", 129 "//:grpc", 130 "//test/core/util:grpc_test_util", 131 ], 132) 133 134grpc_cc_test( 135 name = "slice_weak_hash_table_test", 136 srcs = ["slice_weak_hash_table_test.cc"], 137 external_deps = [ 138 "gtest", 139 ], 140 language = "C++", 141 uses_polling = False, 142 deps = [ 143 "//:gpr", 144 "//:grpc", 145 "//test/core/util:grpc_test_util", 146 ], 147) 148 149grpc_cc_test( 150 name = "b64_test", 151 srcs = ["b64_test.cc"], 152 language = "C++", 153 uses_polling = False, 154 deps = [ 155 "//:gpr", 156 "//:grpc", 157 "//test/core/util:grpc_test_util", 158 ], 159) 160