Go to the documentation of this file.
35 const char* valid_names[] = {
"identity",
"gzip",
"deflate"};
41 const char* invalid_names[] = {
"gzip2",
"foo",
"",
"2gzip"};
46 const char* valid_name = valid_names[
i];
55 const char* invalid_name = invalid_names[
i];
69 const char* valid_names[] = {
"identity",
"gzip",
"deflate"};
100 accepted_encodings));
104 accepted_encodings));
108 accepted_encodings));
112 accepted_encodings));
123 accepted_encodings));
127 accepted_encodings));
131 accepted_encodings));
135 accepted_encodings));
146 accepted_encodings));
150 accepted_encodings));
154 accepted_encodings));
158 accepted_encodings));
170 accepted_encodings));
174 accepted_encodings));
178 accepted_encodings));
182 accepted_encodings));
194 accepted_encodings));
198 accepted_encodings));
202 accepted_encodings));
206 accepted_encodings));
220 static_cast<int>(algorithm) + 1)) {
229 static_cast<int>(algorithm) + 1)) {
238 static_cast<int>(algorithm) + 1)) {
280 GPR_ASSERT(ch_args_wo_gzip == ch_args_wo_gzip_deflate);
283 ch_args_wo_gzip_deflate);
295 GPR_ASSERT(ch_args_wo_gzip == ch_args_wo_gzip_deflate);
309 int main(
int argc,
char** argv) {
@ GRPC_COMPRESS_LEVEL_MED
const grpc_channel_args * grpc_channel_args_compression_algorithm_set_state(const grpc_channel_args **a, grpc_compression_algorithm algorithm, int state)
grpc_compression_algorithm
static void test_channel_args_set_compression_algorithm(void)
GRPCAPI void grpc_compression_options_enable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
GRPCAPI int grpc_compression_algorithm_name(grpc_compression_algorithm algorithm, const char **name)
bool IsSet(grpc_compression_algorithm algorithm) const
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
@ GRPC_COMPRESS_LEVEL_NONE
void grpc_channel_args_destroy(grpc_channel_args *a)
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
const grpc_channel_args * grpc_channel_args_set_channel_default_compression_algorithm(const grpc_channel_args *a, grpc_compression_algorithm algorithm)
static void test_compression_algorithm_for_level(void)
@ GRPC_COMPRESS_LEVEL_HIGH
GRPCAPI int grpc_compression_algorithm_parse(grpc_slice name, grpc_compression_algorithm *algorithm)
GRPCAPI void grpc_compression_options_disable_algorithm(grpc_compression_options *opts, grpc_compression_algorithm algorithm)
static CompressionAlgorithmSet FromChannelArgs(const grpc_channel_args *args)
#define GPR_ARRAY_SIZE(array)
GRPCAPI int grpc_compression_options_is_algorithm_enabled(const grpc_compression_options *opts, grpc_compression_algorithm algorithm)
@ GRPC_COMPRESS_LEVEL_LOW
grpc_core::ExecCtx exec_ctx
static void test_compression_algorithm_name(void)
GRPCAPI void grpc_compression_options_init(grpc_compression_options *opts)
static void test_channel_args_compression_algorithm_states(void)
int main(int argc, char **argv)
@ GRPC_COMPRESS_ALGORITHMS_COUNT
GRPCAPI grpc_compression_algorithm grpc_compression_algorithm_for_level(grpc_compression_level level, uint32_t accepted_encodings)
static void test_compression_algorithm_parse(void)
GRPCAPI void grpc_init(void)
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM
GRPCAPI void grpc_shutdown(void)
static void test_compression_enable_disable_algorithm(void)
grpc_channel_args * grpc_channel_args_copy_and_add(const grpc_channel_args *src, const grpc_arg *to_add, size_t num_to_add)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:52