aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp/interop/server_helper.cc')
-rw-r--r--test/cpp/interop/server_helper.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/cpp/interop/server_helper.cc b/test/cpp/interop/server_helper.cc
index 30a78ffddf..0f8e5ff4f6 100644
--- a/test/cpp/interop/server_helper.cc
+++ b/test/cpp/interop/server_helper.cc
@@ -36,10 +36,12 @@
#include <memory>
#include <gflags/gflags.h>
-#include "test/core/end2end/data/ssl_test_data.h"
#include <grpc++/config.h>
#include <grpc++/server_credentials.h>
+#include "src/core/surface/call.h"
+#include "test/core/end2end/data/ssl_test_data.h"
+
DECLARE_bool(enable_ssl);
namespace grpc {
@@ -62,6 +64,11 @@ InteropContextInspector::InteropContextInspector(
const ::grpc::ServerContext& context)
: context_(context) {}
+grpc_compression_algorithm
+InteropContextInspector::GetCallCompressionAlgorithm() const {
+ return grpc_call_get_compression_algorithm(context_.call_);
+}
+
std::shared_ptr<const AuthContext> InteropContextInspector::GetAuthContext()
const {
return context_.auth_context();