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 15load( 16 "//bazel:grpc_build_system.bzl", 17 "grpc_cc_test", 18 "grpc_package", 19) 20load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") 21 22grpc_package(name = "test/core/compression") 23 24licenses(["notice"]) 25 26grpc_cc_test( 27 name = "compression_test", 28 srcs = ["compression_test.cc"], 29 external_deps = ["gtest"], 30 language = "C++", 31 uses_event_engine = False, 32 uses_polling = False, 33 deps = [ 34 "//:gpr", 35 "//:grpc", 36 "//src/core:channel_args", 37 "//test/core/util:grpc_test_util", 38 ], 39) 40 41grpc_fuzzer( 42 name = "message_compress_fuzzer", 43 srcs = ["message_compress_fuzzer.cc"], 44 corpus = "message_compress_corpus", 45 tags = ["no_windows"], 46 uses_event_engine = False, 47 uses_polling = False, 48 deps = [ 49 "//:grpc", 50 "//test/core/util:grpc_test_util", 51 ], 52) 53 54grpc_fuzzer( 55 name = "message_decompress_fuzzer", 56 srcs = ["message_decompress_fuzzer.cc"], 57 corpus = "message_decompress_corpus", 58 tags = ["no_windows"], 59 uses_event_engine = False, 60 uses_polling = False, 61 deps = [ 62 "//:grpc", 63 "//test/core/util:grpc_test_util", 64 ], 65) 66 67grpc_cc_test( 68 name = "message_compress_test", 69 srcs = ["message_compress_test.cc"], 70 external_deps = ["gtest"], 71 language = "C++", 72 uses_event_engine = False, 73 uses_polling = False, 74 deps = [ 75 "//:gpr", 76 "//:grpc", 77 "//test/core/util:grpc_test_util", 78 "//test/core/util:grpc_test_util_base", 79 ], 80) 81