aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server_helper.cc
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-07-23 04:58:20 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-07-23 04:58:20 -0700
commit7c0d914cce379f14a1adfae9374641967c45d7b2 (patch)
tree5357b9b9b4d376ad6f165cbb47777823240bc59b /test/cpp/interop/server_helper.cc
parent607dd2eeb7edb055c3cda8c2206d5cfc99ef8190 (diff)
wip for accept-encoding into tests
Diffstat (limited to 'test/cpp/interop/server_helper.cc')
-rw-r--r--test/cpp/interop/server_helper.cc8
1 files changed, 6 insertions, 2 deletions
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<const AuthContext> InteropServerContextInspector::GetAuthContext()
- const {
+gpr_uint32 InteropServerContextInspector::GetEncodingsAcceptedByClient() const {
+ return grpc_call_get_encodings_accepted_by_peer(context_.call_);
+}
+
+std::shared_ptr<const AuthContext>
+InteropServerContextInspector::GetAuthContext() const {
return context_.auth_context();
}