aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/client_helper.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-08-19 15:59:38 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-08-19 15:59:38 -0700
commit5fd685556f485103aa7cbae2e6d8305d18f1a659 (patch)
treed6e538adafa9a8dc0503c06b6dc4dce1a17b47f8 /test/cpp/interop/client_helper.h
parent690e010ef37775a0d754224e3cc47860ff41032a (diff)
Moved methods' impl to header for simplicity
Diffstat (limited to 'test/cpp/interop/client_helper.h')
-rw-r--r--test/cpp/interop/client_helper.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/cpp/interop/client_helper.h b/test/cpp/interop/client_helper.h
index 000374ae8e..edc69e90ac 100644
--- a/test/cpp/interop/client_helper.h
+++ b/test/cpp/interop/client_helper.h
@@ -39,6 +39,8 @@
#include <grpc++/config.h>
#include <grpc++/channel_interface.h>
+#include "src/core/surface/call.h"
+
namespace grpc {
namespace testing {
@@ -51,11 +53,17 @@ std::shared_ptr<ChannelInterface> CreateChannelForTestCase(
class InteropClientContextInspector {
public:
- InteropClientContextInspector(const ::grpc::ClientContext& context);
+ InteropClientContextInspector(const ::grpc::ClientContext& context)
+ : context_(context) {}
// Inspector methods, able to peek inside ClientContext, follow.
- grpc_compression_algorithm GetCallCompressionAlgorithm() const;
- gpr_uint32 GetMessageFlags() const;
+ grpc_compression_algorithm GetCallCompressionAlgorithm() const {
+ return grpc_call_get_compression_algorithm(context_.call_);
+ }
+
+ gpr_uint32 GetMessageFlags() const {
+ return grpc_call_get_message_flags(context_.call_);
+ }
private:
const ::grpc::ClientContext& context_;