From 7c0d914cce379f14a1adfae9374641967c45d7b2 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Thu, 23 Jul 2015 04:58:20 -0700 Subject: wip for accept-encoding into tests --- test/cpp/interop/server_helper.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/cpp/interop/server_helper.cc') diff --git a/test/cpp/interop/server_helper.cc b/test/cpp/interop/server_helper.cc index 8cfed2acb5..3721d79635 100644 --- a/test/cpp/interop/server_helper.cc +++ b/test/cpp/interop/server_helper.cc @@ -69,8 +69,12 @@ InteropServerContextInspector::GetCallCompressionAlgorithm() const { return grpc_call_get_compression_algorithm(context_.call_); } -std::shared_ptr InteropServerContextInspector::GetAuthContext() - const { +gpr_uint32 InteropServerContextInspector::GetEncodingsAcceptedByClient() const { + return grpc_call_get_encodings_accepted_by_peer(context_.call_); +} + +std::shared_ptr +InteropServerContextInspector::GetAuthContext() const { return context_.auth_context(); } -- cgit v1.2.3