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