diff options
author | David Garcia Quintas <dgq@google.com> | 2015-06-25 18:11:07 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-06-25 18:11:07 -0700 |
commit | fc0fa3381c7b7088936ce6f41a8f8c41ef3c38ac (patch) | |
tree | 3862e1000e7fbe9112b95ad840756e4dddfdaa66 /test/core/compression | |
parent | 331d2da2a7832d4066a0ce1d6d979059fc78ec8d (diff) |
Moar tests, fixed wrongly named vbles, minor bugs.
Diffstat (limited to 'test/core/compression')
-rw-r--r-- | test/core/compression/message_compress_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/compression/message_compress_test.c b/test/core/compression/message_compress_test.c index 4033c18131..f5f21cff25 100644 --- a/test/core/compression/message_compress_test.c +++ b/test/core/compression/message_compress_test.c @@ -61,13 +61,15 @@ static void assert_passthrough(gpr_slice value, gpr_slice_buffer output; gpr_slice final; int was_compressed; + char *algorithm_name; + GPR_ASSERT(grpc_compression_algorithm_name(algorithm, &algorithm_name) != 0); gpr_log(GPR_INFO, "assert_passthrough: value_length=%d value_hash=0x%08x " "algorithm='%s' uncompressed_split='%s' compressed_split='%s'", GPR_SLICE_LENGTH(value), gpr_murmur_hash3(GPR_SLICE_START_PTR(value), GPR_SLICE_LENGTH(value), 0), - grpc_compression_algorithm_name(algorithm), + algorithm_name, grpc_slice_split_mode_name(uncompressed_split_mode), grpc_slice_split_mode_name(compressed_split_mode)); |