aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/surface
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-05-06 16:59:03 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-05-09 14:30:41 -0700
commita301eaade83854cf172d39899232835f21e57690 (patch)
tree2915d1d66fd9b594e8a68963586dac8a5970b2d7 /test/core/surface
parentc916c1ce17fe273dff881e1c87e17ad991c2078a (diff)
Allow servers to select compression level via initial MD.
Setting the newly added compression_level field of grpc_op::send_initial_metadata by a server now has the effect of applying that compression level for the subsequent call messages leaving the server. The ultimate meaning of the level depends on the client's supported compression algorithms.
Diffstat (limited to 'test/core/surface')
-rw-r--r--test/core/surface/lame_client_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/surface/lame_client_test.c b/test/core/surface/lame_client_test.c
index 12fa9de6cf..285d8ea24d 100644
--- a/test/core/surface/lame_client_test.c
+++ b/test/core/surface/lame_client_test.c
@@ -115,6 +115,7 @@ int main(int argc, char **argv) {
GPR_ASSERT(call);
cqv = cq_verifier_create(cq);
+ memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
@@ -133,6 +134,7 @@ int main(int argc, char **argv) {
cq_expect_completion(cqv, tag(1), 0);
cq_verify(cqv);
+ memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_RECV_STATUS_ON_CLIENT;
op->data.recv_status_on_client.trailing_metadata = &trailing_metadata_recv;