aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/compression/compression_test.c
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2017-01-20 13:39:08 -0800
committerGravatar GitHub <noreply@github.com>2017-01-20 13:39:08 -0800
commit28ec869b5a2567cd30a6e3bcc0efbee0ab0ae7f5 (patch)
treebe591d8c9033c3c4aa064b458acc8e7fe62d7598 /test/core/compression/compression_test.c
parentbd827887ffbb57a95990130f585913b13f44a5b7 (diff)
parent2b5cf1ff2681bb94fa1e3651f8ccfc14bdfa71b2 (diff)
Merge pull request #8842 from ctiller/metadata_filter
Metadata handling rewrite
Diffstat (limited to 'test/core/compression/compression_test.c')
-rw-r--r--test/core/compression/compression_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/compression/compression_test.c b/test/core/compression/compression_test.c
index 4c43746e33..7b2e56dc01 100644
--- a/test/core/compression/compression_test.c
+++ b/test/core/compression/compression_test.c
@@ -54,7 +54,7 @@ static void test_compression_algorithm_parse(void) {
const char *valid_name = valid_names[i];
grpc_compression_algorithm algorithm;
const int success = grpc_compression_algorithm_parse(
- valid_name, strlen(valid_name), &algorithm);
+ grpc_slice_from_static_string(valid_name), &algorithm);
GPR_ASSERT(success != 0);
GPR_ASSERT(algorithm == valid_algorithms[i]);
}
@@ -64,7 +64,7 @@ static void test_compression_algorithm_parse(void) {
grpc_compression_algorithm algorithm;
int success;
success = grpc_compression_algorithm_parse(
- invalid_name, strlen(invalid_name), &algorithm);
+ grpc_slice_from_static_string(invalid_name), &algorithm);
GPR_ASSERT(success == 0);
/* the value of "algorithm" is undefined upon failure */
}