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("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package") 16load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") 17 18grpc_package(name = "test/core/compression") 19 20licenses(["notice"]) # Apache v2 21 22grpc_cc_test( 23 name = "algorithm_test", 24 srcs = ["algorithm_test.cc"], 25 language = "C++", 26 uses_polling = False, 27 deps = [ 28 "//:gpr", 29 "//:grpc", 30 "//test/core/util:grpc_test_util", 31 ], 32) 33 34grpc_cc_test( 35 name = "compression_test", 36 srcs = ["compression_test.cc"], 37 language = "C++", 38 uses_polling = False, 39 deps = [ 40 "//:gpr", 41 "//:grpc", 42 "//test/core/util:grpc_test_util", 43 ], 44) 45 46grpc_fuzzer( 47 name = "message_compress_fuzzer", 48 srcs = ["message_compress_fuzzer.cc"], 49 corpus = "message_compress_corpus", 50 tags = ["no_windows"], 51 deps = [ 52 "//:grpc", 53 "//test/core/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 deps = [ 63 "//:grpc", 64 "//test/core/util:grpc_test_util", 65 ], 66) 67 68grpc_cc_test( 69 name = "message_compress_test", 70 srcs = ["message_compress_test.cc"], 71 language = "C++", 72 uses_polling = False, 73 deps = [ 74 "//:gpr", 75 "//:grpc", 76 "//test/core/util:grpc_test_util", 77 ], 78) 79 80grpc_fuzzer( 81 name = "stream_compression_fuzzer", 82 srcs = ["stream_compression_fuzzer.cc"], 83 corpus = "stream_compression_corpus", 84 tags = ["no_windows"], 85 deps = [ 86 "//:grpc", 87 "//test/core/util:grpc_test_util", 88 ], 89) 90 91grpc_fuzzer( 92 name = "stream_decompression_fuzzer", 93 srcs = ["stream_decompression_fuzzer.cc"], 94 corpus = "stream_decompression_corpus", 95 tags = ["no_windows"], 96 deps = [ 97 "//:grpc", 98 "//test/core/util:grpc_test_util", 99 ], 100) 101 102grpc_cc_test( 103 name = "stream_compression_test", 104 srcs = ["stream_compression_test.cc"], 105 language = "C++", 106 uses_polling = False, 107 deps = [ 108 "//:gpr", 109 "//:grpc", 110 "//test/core/util:grpc_test_util", 111 ], 112) 113