diff options
author | David Garcia Quintas <dgq@google.com> | 2015-07-15 21:37:02 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-07-15 21:37:02 -0700 |
commit | e091af881af2e33d8b1351c8315d2d292405cedd (patch) | |
tree | fb9a8c7fd70c9f4119a355ca28fa97c6b40771c2 /test/core/end2end | |
parent | 541d5823d2d0a5a1748c4488177e6f55eb5aff44 (diff) |
Implementation of the accepted encodings propagation mechanism.
Diffstat (limited to 'test/core/end2end')
-rw-r--r-- | test/core/end2end/tests/request_with_compressed_payload.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/core/end2end/tests/request_with_compressed_payload.c b/test/core/end2end/tests/request_with_compressed_payload.c index 0c1b065bd8..784a6cdef4 100644 --- a/test/core/end2end/tests/request_with_compressed_payload.c +++ b/test/core/end2end/tests/request_with_compressed_payload.c @@ -46,6 +46,7 @@ #include "test/core/end2end/cq_verifier.h" #include "src/core/channel/channel_args.h" #include "src/core/channel/compress_filter.h" +#include "src/core/surface/call.h" enum { TIMEOUT = 200000 }; @@ -187,6 +188,14 @@ static void request_with_payload_template( cq_expect_completion(cqv, tag(101), 1); cq_verify(cqv); + GPR_ASSERT(GPR_BITCOUNT(grpc_call_get_encodings_accepted_by_peer(s)) == 3); + GPR_ASSERT(GPR_BITGET(grpc_call_get_encodings_accepted_by_peer(s), + GRPC_COMPRESS_NONE) != 0); + GPR_ASSERT(GPR_BITGET(grpc_call_get_encodings_accepted_by_peer(s), + GRPC_COMPRESS_DEFLATE) != 0); + GPR_ASSERT(GPR_BITGET(grpc_call_get_encodings_accepted_by_peer(s), + GRPC_COMPRESS_GZIP) != 0); + op = ops; op->op = GRPC_OP_SEND_INITIAL_METADATA; op->data.send_initial_metadata.count = 0; |