aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/client_helper.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-07-21 16:07:36 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-07-21 16:07:36 -0700
commit80f3995e47ae1ccd30a48c00ef8770cf18e51280 (patch)
tree8a628a88e43173658d368ebd22a0d5a27ddf3988 /test/cpp/interop/client_helper.h
parentcead5e83e28b64bcbf91870e36e42c495baae13e (diff)
wip
Diffstat (limited to 'test/cpp/interop/client_helper.h')
-rw-r--r--test/cpp/interop/client_helper.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/cpp/interop/client_helper.h b/test/cpp/interop/client_helper.h
index c4361bb9de..fb8a6644e4 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 "test/proto/messages.grpc.pb.h"
+
namespace grpc {
namespace testing {
@@ -49,6 +51,22 @@ grpc::string GetOauth2AccessToken();
std::shared_ptr<ChannelInterface> CreateChannelForTestCase(
const grpc::string& test_case);
+grpc::testing::CompressionType
+GetInteropCompressionTypeFromCompressionAlgorithm(
+ grpc_compression_algorithm algorithm);
+
+class InteropClientContextInspector {
+ public:
+ InteropClientContextInspector(const ::grpc::ClientContext& context);
+
+ // Inspector methods, able to peek inside ClientContext, follow.
+ grpc_compression_algorithm GetCallCompressionAlgorithm() const;
+
+ private:
+ const ::grpc::ClientContext& context_;
+};
+
+
} // namespace testing
} // namespace grpc