diff options
author | Muxi Yan <mxyan@google.com> | 2017-10-06 16:55:52 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-10-06 17:25:40 -0700 |
commit | 63602748415fb836afd7a9685fbe5e85bf5ebfed (patch) | |
tree | f621272bdfb56a20782c9ed3a1a06f286c121941 /test/core/compression | |
parent | 906f69c1dfb09766708ca82217851cc20ebedd83 (diff) |
Make the names of compression algorithms backwards compatible at surface API
Diffstat (limited to 'test/core/compression')
-rw-r--r-- | test/core/compression/compression_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/core/compression/compression_test.c b/test/core/compression/compression_test.c index fb5876a57a..45a1cf4f75 100644 --- a/test/core/compression/compression_test.c +++ b/test/core/compression/compression_test.c @@ -28,8 +28,7 @@ static void test_compression_algorithm_parse(void) { size_t i; - const char *valid_names[] = {"identity", "message/gzip", "message/deflate", - "stream/gzip"}; + const char *valid_names[] = {"identity", "gzip", "deflate", "stream-gzip"}; const grpc_compression_algorithm valid_algorithms[] = { GRPC_COMPRESS_NONE, GRPC_COMPRESS_MESSAGE_GZIP, GRPC_COMPRESS_MESSAGE_DEFLATE, GRPC_COMPRESS_STREAM_GZIP}; @@ -61,8 +60,7 @@ static void test_compression_algorithm_name(void) { int success; const char *name; size_t i; - const char *valid_names[] = {"identity", "message/gzip", "message/deflate", - "stream/gzip"}; + const char *valid_names[] = {"identity", "gzip", "deflate", "stream-gzip"}; const grpc_compression_algorithm valid_algorithms[] = { GRPC_COMPRESS_NONE, GRPC_COMPRESS_MESSAGE_GZIP, GRPC_COMPRESS_MESSAGE_DEFLATE, GRPC_COMPRESS_STREAM_GZIP}; |