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/test_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 = [ 30 "absl/log:log", 31 "gtest", 32 ], 33 language = "C++", 34 uses_event_engine = False, 35 uses_polling = False, 36 deps = [ 37 "//:gpr", 38 "//:grpc", 39 "//src/core:channel_args", 40 "//test/core/test_util:grpc_test_util", 41 ], 42) 43 44grpc_fuzzer( 45 name = "message_compress_fuzzer", 46 srcs = ["message_compress_fuzzer.cc"], 47 corpus = "message_compress_corpus", 48 tags = ["no_windows"], 49 uses_event_engine = False, 50 uses_polling = False, 51 deps = [ 52 "//:grpc", 53 "//test/core/test_util:grpc_test_util", 54 ], 55) 56 57grpc_fuzzer( 58 name = "message_decompress_fuzzer", 59 srcs = ["message_decompress_fuzzer.cc"], 60 corpus = "message_decompress_corpus", 61 tags = ["no_windows"], 62 uses_event_engine = False, 63 uses_polling = False, 64 deps = [ 65 "//:grpc", 66 "//test/core/test_util:grpc_test_util", 67 ], 68) 69 70grpc_cc_test( 71 name = "message_compress_test", 72 srcs = ["message_compress_test.cc"], 73 external_deps = [ 74 "absl/log:log", 75 "gtest", 76 ], 77 language = "C++", 78 uses_event_engine = False, 79 uses_polling = False, 80 deps = [ 81 "//:gpr", 82 "//:grpc", 83 "//test/core/test_util:grpc_test_util", 84 "//test/core/test_util:grpc_test_util_base", 85 ], 86) 87