|
|
|
@ -29,7 +29,6 @@ |
|
|
|
|
#include "src/core/lib/transport/static_metadata.h" |
|
|
|
|
#include "test/core/util/test_config.h" |
|
|
|
|
|
|
|
|
|
const uint32_t message_prefix_length = 8; |
|
|
|
|
const uint32_t stream_prefix_length = 7; |
|
|
|
|
static void test_algorithm_mesh(void) { |
|
|
|
|
int i; |
|
|
|
@ -56,7 +55,7 @@ static void test_algorithm_mesh(void) { |
|
|
|
|
mdelem = grpc_message_compression_encoding_mdelem( |
|
|
|
|
grpc_compression_algorithm_to_message_compression_algorithm(parsed)); |
|
|
|
|
grpc_slice value = GRPC_MDVALUE(mdelem); |
|
|
|
|
GPR_ASSERT(0 == memcmp(&name[message_prefix_length], |
|
|
|
|
GPR_ASSERT(0 == memcmp(name, |
|
|
|
|
GRPC_SLICE_START_PTR(value), |
|
|
|
|
GRPC_SLICE_LENGTH(value))); |
|
|
|
|
GPR_ASSERT(grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_GRPC_ENCODING)); |
|
|
|
|