The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.1 KiB

# Copyright 2016 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Move compression related metadata to the new system (#28223) * Eliminate most of grpc_message metadata handling * Eliminate most of host metadata handling * Remove more callouts without fixing code * fiiixes * typo * Automated change: Fix sanity tests * try-shrink * Automated change: Fix sanity tests * size tweaks * less tricks * deunique * commonize * commonize * Automated change: Fix sanity tests * size tuning, fixes * Automated change: Fix sanity tests * fix * size tuning, fixes * remove constexpr * fix * reuse code * fix * tweak code * more tweaks * tell no lies * fixes * fixes * Automated change: Fix sanity tests * fix * fix * fix * fix * fix? * fix binder * fix * fix * fixes * Automated change: Fix sanity tests * fix * initial refactoring * optimize status encoding * Automated change: Fix sanity tests * Automated change: Fix sanity tests * content-type * Automated change: Fix sanity tests * clang-format * fix * Move colon prefixed metadata * Automated change: Fix sanity tests * Automated change: Fix sanity tests * try to fix windows failure * try and scale sizes better * ambiguity fix? * wip metadatavalueasslice * Fix status code for resource exhaustion * Revert "Revert "Move a bunch of slice typed metadata to new system (#28107)" (#28208)" This reverts commit 771758706396560d6eb91ef6058cdf0e1e65341e. * fix test * Automated change: Fix sanity tests * Automated change: Fix sanity tests * slice helper * x * noinline * try and scale sizes better * Automated change: Fix sanity tests * fixes * fix * fix * fixes * fix build * fix overflow * progress * Automated change: Fix sanity tests * fix * initial work * progress * fix * fix * Automated change: Fix sanity tests * progress * fix * fix * fix * Automated change: Fix sanity tests * fix * compressor for path/authority * Automated change: Fix sanity tests * Automated change: Fix sanity tests * legalize * legalize * status-enc * fmt * fix * fix * fix * fix * fix/opt * fix * fix * fix * fix * Automated change: Fix sanity tests * fix * comment * fmt * remove arg * Automated change: Fix sanity tests * remove name * Automated change: Fix sanity tests * add specialized encoders for compression metadata * review feedback * fix * missoing files * Small improvement in memory usage and performance * Automated change: Fix sanity tests * Automated change: Fix sanity tests * Fix caching * Automated change: Fix sanity tests * fix crash in alts * default everything * Automated change: Fix sanity tests * review feedback * fixes * fixes * fixes * Automated change: Fix sanity tests * speedup * fix * fix * fixes * fixes * fixes * Automated change: Fix sanity tests * fix * remove debug code Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
load(
"//bazel:grpc_build_system.bzl",
"grpc_cc_library",
"grpc_cc_test",
"grpc_package",
)
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
grpc_package(name = "test/core/compression")
licenses(["notice"])
Move compression related metadata to the new system (#28223) * Eliminate most of grpc_message metadata handling * Eliminate most of host metadata handling * Remove more callouts without fixing code * fiiixes * typo * Automated change: Fix sanity tests * try-shrink * Automated change: Fix sanity tests * size tweaks * less tricks * deunique * commonize * commonize * Automated change: Fix sanity tests * size tuning, fixes * Automated change: Fix sanity tests * fix * size tuning, fixes * remove constexpr * fix * reuse code * fix * tweak code * more tweaks * tell no lies * fixes * fixes * Automated change: Fix sanity tests * fix * fix * fix * fix * fix? * fix binder * fix * fix * fixes * Automated change: Fix sanity tests * fix * initial refactoring * optimize status encoding * Automated change: Fix sanity tests * Automated change: Fix sanity tests * content-type * Automated change: Fix sanity tests * clang-format * fix * Move colon prefixed metadata * Automated change: Fix sanity tests * Automated change: Fix sanity tests * try to fix windows failure * try and scale sizes better * ambiguity fix? * wip metadatavalueasslice * Fix status code for resource exhaustion * Revert "Revert "Move a bunch of slice typed metadata to new system (#28107)" (#28208)" This reverts commit 771758706396560d6eb91ef6058cdf0e1e65341e. * fix test * Automated change: Fix sanity tests * Automated change: Fix sanity tests * slice helper * x * noinline * try and scale sizes better * Automated change: Fix sanity tests * fixes * fix * fix * fixes * fix build * fix overflow * progress * Automated change: Fix sanity tests * fix * initial work * progress * fix * fix * Automated change: Fix sanity tests * progress * fix * fix * fix * Automated change: Fix sanity tests * fix * compressor for path/authority * Automated change: Fix sanity tests * Automated change: Fix sanity tests * legalize * legalize * status-enc * fmt * fix * fix * fix * fix * fix/opt * fix * fix * fix * fix * Automated change: Fix sanity tests * fix * comment * fmt * remove arg * Automated change: Fix sanity tests * remove name * Automated change: Fix sanity tests * add specialized encoders for compression metadata * review feedback * fix * missoing files * Small improvement in memory usage and performance * Automated change: Fix sanity tests * Automated change: Fix sanity tests * Fix caching * Automated change: Fix sanity tests * fix crash in alts * default everything * Automated change: Fix sanity tests * review feedback * fixes * fixes * fixes * Automated change: Fix sanity tests * speedup * fix * fix * fixes * fixes * fixes * Automated change: Fix sanity tests * fix * remove debug code Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
grpc_cc_library(
name = "args_utils",
testonly = 1,
srcs = ["args_utils.cc"],
hdrs = ["args_utils.h"],
visibility = ["//visibility:public"],
deps = ["//:grpc"],
)
grpc_cc_test(
name = "compression_test",
srcs = ["compression_test.cc"],
language = "C++",
uses_event_engine = False,
uses_polling = False,
deps = [
Move compression related metadata to the new system (#28223) * Eliminate most of grpc_message metadata handling * Eliminate most of host metadata handling * Remove more callouts without fixing code * fiiixes * typo * Automated change: Fix sanity tests * try-shrink * Automated change: Fix sanity tests * size tweaks * less tricks * deunique * commonize * commonize * Automated change: Fix sanity tests * size tuning, fixes * Automated change: Fix sanity tests * fix * size tuning, fixes * remove constexpr * fix * reuse code * fix * tweak code * more tweaks * tell no lies * fixes * fixes * Automated change: Fix sanity tests * fix * fix * fix * fix * fix? * fix binder * fix * fix * fixes * Automated change: Fix sanity tests * fix * initial refactoring * optimize status encoding * Automated change: Fix sanity tests * Automated change: Fix sanity tests * content-type * Automated change: Fix sanity tests * clang-format * fix * Move colon prefixed metadata * Automated change: Fix sanity tests * Automated change: Fix sanity tests * try to fix windows failure * try and scale sizes better * ambiguity fix? * wip metadatavalueasslice * Fix status code for resource exhaustion * Revert "Revert "Move a bunch of slice typed metadata to new system (#28107)" (#28208)" This reverts commit 771758706396560d6eb91ef6058cdf0e1e65341e. * fix test * Automated change: Fix sanity tests * Automated change: Fix sanity tests * slice helper * x * noinline * try and scale sizes better * Automated change: Fix sanity tests * fixes * fix * fix * fixes * fix build * fix overflow * progress * Automated change: Fix sanity tests * fix * initial work * progress * fix * fix * Automated change: Fix sanity tests * progress * fix * fix * fix * Automated change: Fix sanity tests * fix * compressor for path/authority * Automated change: Fix sanity tests * Automated change: Fix sanity tests * legalize * legalize * status-enc * fmt * fix * fix * fix * fix * fix/opt * fix * fix * fix * fix * Automated change: Fix sanity tests * fix * comment * fmt * remove arg * Automated change: Fix sanity tests * remove name * Automated change: Fix sanity tests * add specialized encoders for compression metadata * review feedback * fix * missoing files * Small improvement in memory usage and performance * Automated change: Fix sanity tests * Automated change: Fix sanity tests * Fix caching * Automated change: Fix sanity tests * fix crash in alts * default everything * Automated change: Fix sanity tests * review feedback * fixes * fixes * fixes * Automated change: Fix sanity tests * speedup * fix * fix * fixes * fixes * fixes * Automated change: Fix sanity tests * fix * remove debug code Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
":args_utils",
"//:gpr",
"//:grpc",
"//test/core/util:grpc_test_util",
],
)
grpc_fuzzer(
name = "message_compress_fuzzer",
srcs = ["message_compress_fuzzer.cc"],
corpus = "message_compress_corpus",
tags = ["no_windows"],
uses_event_engine = False,
uses_polling = False,
deps = [
"//:grpc",
"//test/core/util:grpc_test_util",
],
)
grpc_fuzzer(
name = "message_decompress_fuzzer",
srcs = ["message_decompress_fuzzer.cc"],
corpus = "message_decompress_corpus",
tags = ["no_windows"],
uses_event_engine = False,
uses_polling = False,
deps = [
"//:grpc",
"//test/core/util:grpc_test_util",
],
)
grpc_cc_test(
name = "message_compress_test",
srcs = ["message_compress_test.cc"],
language = "C++",
uses_event_engine = False,
uses_polling = False,
deps = [
"//:gpr",
"//:grpc",
"//test/core/util:grpc_test_util",
],
)