aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/client_helper.h
diff options
context:
space:
mode:
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..28fca3266c 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;
+ gpr_uint32 GetMessageFlags() const;
+
+ private:
+ const ::grpc::ClientContext& context_;
+};
+
} // namespace testing
} // namespace grpc