#include <interop_client.h>
|
bool | DoCancelAfterBegin () |
|
bool | DoCancelAfterFirstResponse () |
|
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) |
|
bool | DoClientCompressedStreaming () |
|
bool | DoClientCompressedUnary () |
|
bool | DoComputeEngineCreds (const std::string &default_service_account, const std::string &oauth_scope) |
|
bool | DoCustomMetadata () |
|
bool | DoEmpty () |
|
bool | DoEmptyStream () |
|
bool | DoGoogleDefaultCredentials (const std::string &default_service_account) |
|
bool | DoHalfDuplex () |
|
bool | DoJwtTokenCreds (const std::string &username) |
|
bool | DoLargeUnary () |
|
bool | DoLongLivedChannelTest (int32_t soak_iterations, int32_t iteration_interval) |
|
bool | DoOauth2AuthToken (const std::string &username, const std::string &oauth_scope) |
|
bool | DoPerRpcCreds (const std::string &json_key) |
|
bool | DoPickFirstUnary () |
|
bool | DoPingPong () |
|
bool | DoRequestStreaming () |
|
bool | DoResponseStreaming () |
|
bool | DoResponseStreamingWithSlowConsumer () |
|
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 | DoServerCompressedStreaming () |
|
bool | DoServerCompressedUnary () |
|
bool | DoSpecialStatusMessage () |
|
bool | DoStatusWithMessage () |
|
bool | DoTimeoutOnSleepingServer () |
|
bool | DoUnimplementedMethod () |
|
bool | DoUnimplementedService () |
|
| InteropClient (ChannelCreationFunc channel_creation_func, bool new_stub_every_test_case, bool do_not_abort_on_transient_failures) |
|
void | Reset (const std::shared_ptr< Channel > &channel) |
|
| ~InteropClient () |
|
|
bool | AssertStatusCode (const Status &s, StatusCode expected_code, const std::string &optional_debug_string) |
|
bool | AssertStatusOk (const Status &s, const std::string &optional_debug_string) |
|
bool | PerformLargeUnary (SimpleRequest *request, SimpleResponse *response) |
|
bool | PerformLargeUnary (SimpleRequest *request, SimpleResponse *response, const CheckerFn &custom_checks_fn) |
| Run custom_check_fn as an additional check. More...
|
|
std::tuple< bool, int32_t, std::string, std::string > | PerformOneSoakTestIteration (const bool reset_channel, const int32_t max_acceptable_per_iteration_latency_ms) |
|
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 | TransientFailureOrAbort () |
|
Definition at line 40 of file interop_client.h.
◆ InteropClient()
grpc::testing::InteropClient::InteropClient |
( |
ChannelCreationFunc |
channel_creation_func, |
|
|
bool |
new_stub_every_test_case, |
|
|
bool |
do_not_abort_on_transient_failures |
|
) |
| |
|
explicit |
If new_stub_every_test_case is true, a new TestService::Stub object is created for every test case If do_not_abort_on_transient_failures is true, abort() is not called in case of transient failures (like connection failures)
Definition at line 119 of file interop_client.cc.
◆ ~InteropClient()
grpc::testing::InteropClient::~InteropClient |
( |
| ) |
|
|
inline |
◆ AssertStatusCode()
◆ AssertStatusOk()
bool grpc::testing::InteropClient::AssertStatusOk |
( |
const Status & |
s, |
|
|
const std::string & |
optional_debug_string |
|
) |
| |
|
private |
◆ DoCancelAfterBegin()
bool grpc::testing::InteropClient::DoCancelAfterBegin |
( |
| ) |
|
◆ DoCancelAfterFirstResponse()
bool grpc::testing::InteropClient::DoCancelAfterFirstResponse |
( |
| ) |
|
◆ DoChannelSoakTest()
bool grpc::testing::InteropClient::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 |
|
) |
| |
◆ DoClientCompressedStreaming()
bool grpc::testing::InteropClient::DoClientCompressedStreaming |
( |
| ) |
|
◆ DoClientCompressedUnary()
bool grpc::testing::InteropClient::DoClientCompressedUnary |
( |
| ) |
|
◆ DoComputeEngineCreds()
bool grpc::testing::InteropClient::DoComputeEngineCreds |
( |
const std::string & |
default_service_account, |
|
|
const std::string & |
oauth_scope |
|
) |
| |
◆ DoCustomMetadata()
bool grpc::testing::InteropClient::DoCustomMetadata |
( |
| ) |
|
◆ DoEmpty()
bool grpc::testing::InteropClient::DoEmpty |
( |
| ) |
|
◆ DoEmptyStream()
bool grpc::testing::InteropClient::DoEmptyStream |
( |
| ) |
|
◆ DoGoogleDefaultCredentials()
bool grpc::testing::InteropClient::DoGoogleDefaultCredentials |
( |
const std::string & |
default_service_account | ) |
|
◆ DoHalfDuplex()
bool grpc::testing::InteropClient::DoHalfDuplex |
( |
| ) |
|
◆ DoJwtTokenCreds()
bool grpc::testing::InteropClient::DoJwtTokenCreds |
( |
const std::string & |
username | ) |
|
◆ DoLargeUnary()
bool grpc::testing::InteropClient::DoLargeUnary |
( |
| ) |
|
◆ DoLongLivedChannelTest()
bool grpc::testing::InteropClient::DoLongLivedChannelTest |
( |
int32_t |
soak_iterations, |
|
|
int32_t |
iteration_interval |
|
) |
| |
◆ DoOauth2AuthToken()
bool grpc::testing::InteropClient::DoOauth2AuthToken |
( |
const std::string & |
username, |
|
|
const std::string & |
oauth_scope |
|
) |
| |
◆ DoPerRpcCreds()
bool grpc::testing::InteropClient::DoPerRpcCreds |
( |
const std::string & |
json_key | ) |
|
◆ DoPickFirstUnary()
bool grpc::testing::InteropClient::DoPickFirstUnary |
( |
| ) |
|
◆ DoPingPong()
bool grpc::testing::InteropClient::DoPingPong |
( |
| ) |
|
◆ DoRequestStreaming()
bool grpc::testing::InteropClient::DoRequestStreaming |
( |
| ) |
|
◆ DoResponseStreaming()
bool grpc::testing::InteropClient::DoResponseStreaming |
( |
| ) |
|
◆ DoResponseStreamingWithSlowConsumer()
bool grpc::testing::InteropClient::DoResponseStreamingWithSlowConsumer |
( |
| ) |
|
◆ DoRpcSoakTest()
bool grpc::testing::InteropClient::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 |
|
) |
| |
◆ DoServerCompressedStreaming()
bool grpc::testing::InteropClient::DoServerCompressedStreaming |
( |
| ) |
|
◆ DoServerCompressedUnary()
bool grpc::testing::InteropClient::DoServerCompressedUnary |
( |
| ) |
|
◆ DoSpecialStatusMessage()
bool grpc::testing::InteropClient::DoSpecialStatusMessage |
( |
| ) |
|
◆ DoStatusWithMessage()
bool grpc::testing::InteropClient::DoStatusWithMessage |
( |
| ) |
|
◆ DoTimeoutOnSleepingServer()
bool grpc::testing::InteropClient::DoTimeoutOnSleepingServer |
( |
| ) |
|
◆ DoUnimplementedMethod()
bool grpc::testing::InteropClient::DoUnimplementedMethod |
( |
| ) |
|
◆ DoUnimplementedService()
bool grpc::testing::InteropClient::DoUnimplementedService |
( |
| ) |
|
◆ PerformLargeUnary() [1/2]
bool grpc::testing::InteropClient::PerformLargeUnary |
( |
SimpleRequest * |
request, |
|
|
SimpleResponse * |
response |
|
) |
| |
|
private |
◆ PerformLargeUnary() [2/2]
bool grpc::testing::InteropClient::PerformLargeUnary |
( |
SimpleRequest * |
request, |
|
|
SimpleResponse * |
response, |
|
|
const CheckerFn & |
custom_checks_fn |
|
) |
| |
|
private |
◆ PerformOneSoakTestIteration()
std::tuple< bool, int32_t, std::string, std::string > grpc::testing::InteropClient::PerformOneSoakTestIteration |
( |
const bool |
reset_channel, |
|
|
const int32_t |
max_acceptable_per_iteration_latency_ms |
|
) |
| |
|
private |
◆ PerformSoakTest()
◆ Reset()
void grpc::testing::InteropClient::Reset |
( |
const std::shared_ptr< Channel > & |
channel | ) |
|
◆ TransientFailureOrAbort()
bool grpc::testing::InteropClient::TransientFailureOrAbort |
( |
| ) |
|
|
private |
◆ do_not_abort_on_transient_failures_
bool grpc::testing::InteropClient::do_not_abort_on_transient_failures_ |
|
private |
If true, abort() is not called for transient failures.
Definition at line 153 of file interop_client.h.
◆ serviceStub_
The documentation for this class was generated from the following files: