aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server_helper.cc
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-07-20 23:43:53 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-07-20 23:43:53 -0700
commit9c512bdf98fe66b45532b6c2ead242e45ec07651 (patch)
tree1a732289c425958aa56055f238d280bbf4d9e2a8 /test/cpp/interop/server_helper.cc
parent588a86dc0a0ac556f87788696a03e8331d3a6983 (diff)
wip
Diffstat (limited to 'test/cpp/interop/server_helper.cc')
-rw-r--r--test/cpp/interop/server_helper.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/cpp/interop/server_helper.cc b/test/cpp/interop/server_helper.cc
index 0f8b89ced2..58017ba9b8 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,5 +64,9 @@ InteropContextInspector::InteropContextInspector(
const ::grpc::ServerContext& context)
: context_(context) {}
+grpc_compression_algorithm
+InteropContextInspector::GetCallCompressionAlgorithm() const {
+ return grpc_call_get_compression_algorithm(context_.call_);
+}
} // namespace testing
} // namespace grpc