Go to the documentation of this file.
19 #ifndef GRPC_TEST_CPP_INTEROP_INTEROP_CLIENT_H
20 #define GRPC_TEST_CPP_INTEROP_INTEROP_CLIENT_H
27 #include "src/proto/grpc/testing/messages.pb.h"
28 #include "src/proto/grpc/testing/test.grpc.pb.h"
34 typedef std::function<void(
const InteropClientContextInspector&,
47 bool new_stub_every_test_case,
48 bool do_not_abort_on_transient_failures);
82 int64_t max_acceptable_per_iteration_latency_ms,
83 int32_t soak_min_time_ms_between_rpcs,
84 int32_t overall_timeout_seconds);
86 int64_t max_acceptable_per_iteration_latency_ms,
87 int32_t soak_min_time_ms_between_rpcs,
88 int32_t overall_timeout_seconds);
111 bool new_stub_every_call);
113 TestService::Stub*
Get();
121 std::unique_ptr<TestService::Stub>
stub_;
139 std::tuple<bool, int32_t, std::string, std::string>
141 const bool reset_channel,
142 const int32_t max_acceptable_per_iteration_latency_ms);
147 const int32_t max_acceptable_per_iteration_latency_ms,
148 const int32_t min_time_ms_between_rpcs,
149 const int32_t overall_timeout_seconds);
159 #endif // GRPC_TEST_CPP_INTEROP_INTEROP_CLIENT_H
void Reset(const std::shared_ptr< Channel > &channel)
bool DoOauth2AuthToken(const std::string &username, const std::string &oauth_scope)
bool DoCancelAfterFirstResponse()
bool DoServerCompressedUnary()
bool DoResponseStreamingWithSlowConsumer()
bool DoLongLivedChannelTest(int32_t soak_iterations, int32_t iteration_interval)
bool DoUnimplementedMethod()
std::unique_ptr< TestService::Stub > stub_
InteropClient(ChannelCreationFunc channel_creation_func, bool new_stub_every_test_case, bool do_not_abort_on_transient_failures)
bool DoUnimplementedService()
bool new_stub_every_call_
bool DoClientCompressedUnary()
bool do_not_abort_on_transient_failures_
If true, abort() is not called for transient failures.
TestService::Stub * Get()
std::shared_ptr< Channel > channel_
bool DoRpcSoakTest(int32_t soak_iterations, int32_t max_failures, int64_t max_acceptable_per_iteration_latency_ms, int32_t soak_min_time_ms_between_rpcs, int32_t overall_timeout_seconds)
bool DoGoogleDefaultCredentials(const std::string &default_service_account)
bool TransientFailureOrAbort()
wrapped_grpc_channel * channel
ServiceStub(ChannelCreationFunc channel_creation_func, bool new_stub_every_call)
bool AssertStatusCode(const Status &s, StatusCode expected_code, const std::string &optional_debug_string)
bool DoResponseStreaming()
bool DoPerRpcCreds(const std::string &json_key)
ChannelCreationFunc channel_creation_func_
bool DoCancelAfterBegin()
std::unique_ptr< UnimplementedService::Stub > unimplemented_service_stub_
bool PerformLargeUnary(SimpleRequest *request, SimpleResponse *response)
bool DoSpecialStatusMessage()
std::function< std::shared_ptr< Channel >void)> ChannelCreationFunc
bool DoServerCompressedStreaming()
bool AssertStatusOk(const Status &s, const std::string &optional_debug_string)
bool DoRequestStreaming()
void PerformSoakTest(const bool reset_channel_per_iteration, const int32_t soak_iterations, const int32_t max_failures, const int32_t max_acceptable_per_iteration_latency_ms, const int32_t min_time_ms_between_rpcs, const int32_t overall_timeout_seconds)
bool DoJwtTokenCreds(const std::string &username)
bool DoStatusWithMessage()
bool DoComputeEngineCreds(const std::string &default_service_account, const std::string &oauth_scope)
bool DoTimeoutOnSleepingServer()
bool DoChannelSoakTest(int32_t soak_iterations, int32_t max_failures, int64_t max_acceptable_per_iteration_latency_ms, int32_t soak_min_time_ms_between_rpcs, int32_t overall_timeout_seconds)
std::tuple< bool, int32_t, std::string, std::string > PerformOneSoakTestIteration(const bool reset_channel, const int32_t max_acceptable_per_iteration_latency_ms)
UnimplementedService::Stub * GetUnimplementedServiceStub()
std::function< void(const InteropClientContextInspector &, const SimpleRequest *, const SimpleResponse *)> CheckerFn
bool DoClientCompressedStreaming()
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:21