Go to the source code of this file.
|
static grpc_call_error | check_client_start_success (grpc_call *, const grpc_op *op, size_t nops, grpc_closure *closure) |
|
static grpc_call_error | check_grpc_call_failure (grpc_call *, const grpc_op *op, size_t nops, grpc_closure *) |
|
static grpc_call_error | check_must_not_be_called (grpc_call *, const grpc_op *, size_t, grpc_closure *) |
|
static grpc_call_error | check_next_success (grpc_call *, const grpc_op *op, size_t nops, grpc_closure *closure) |
|
static grpc_call_error | check_server_start_success (grpc_call *, const grpc_op *op, size_t nops, grpc_closure *closure) |
|
static alts_handshaker_client_test_config * | create_config () |
|
static grpc_alts_credentials_options * | create_credentials_options (bool is_client) |
|
static grpc_gcp_HandshakerReq * | deserialize_handshaker_req (grpc_byte_buffer *buffer, upb_Arena *arena) |
|
static void | destroy_config (alts_handshaker_client_test_config *config) |
|
static bool | is_recv_status_op (const grpc_op *op, size_t nops) |
|
int | main (int argc, char **argv) |
|
static void | schedule_request_grpc_call_failure_test () |
|
static void | schedule_request_invalid_arg_test () |
|
static void | schedule_request_success_test () |
|
static void | tsi_cb_assert_tsi_internal_error (tsi_result status, void *, const unsigned char *, size_t, tsi_handshaker_result *) |
|
static bool | validate_op (alts_handshaker_client *c, const grpc_op *op, size_t nops, bool is_start) |
|
static void | validate_rpc_protocol_versions (const grpc_gcp_RpcProtocolVersions *versions) |
|
static void | validate_target_identities (const grpc_gcp_Identity *const *target_identities, size_t target_identities_count) |
|
◆ ALTS_HANDSHAKER_CLIENT_TEST_MAX_FRAME_SIZE
#define ALTS_HANDSHAKER_CLIENT_TEST_MAX_FRAME_SIZE (64 * 1024) |
◆ ALTS_HANDSHAKER_CLIENT_TEST_OUT_FRAME
#define ALTS_HANDSHAKER_CLIENT_TEST_OUT_FRAME "Hello Google" |
◆ ALTS_HANDSHAKER_CLIENT_TEST_TARGET_NAME
#define ALTS_HANDSHAKER_CLIENT_TEST_TARGET_NAME "bigtable.google.api.com" |
◆ ALTS_HANDSHAKER_CLIENT_TEST_TARGET_SERVICE_ACCOUNT1
#define ALTS_HANDSHAKER_CLIENT_TEST_TARGET_SERVICE_ACCOUNT1 "A@google.com" |
◆ ALTS_HANDSHAKER_CLIENT_TEST_TARGET_SERVICE_ACCOUNT2
#define ALTS_HANDSHAKER_CLIENT_TEST_TARGET_SERVICE_ACCOUNT2 "B@google.com" |
◆ alts_handshaker_client_test_config
◆ check_client_start_success()
A mock grpc_caller used to check correct execution of client_start operation. It checks if the client_start handshaker request is populated with correct handshake_security_protocol, application_protocol, record_protocol and max_frame_size, and op is correctly populated.
Definition at line 165 of file alts_handshaker_client_test.cc.
◆ check_grpc_call_failure()
A mock grpc_caller used to check if client_start, server_start, and next operations correctly handle the situation when the grpc call made to the handshaker service fails.
Definition at line 283 of file alts_handshaker_client_test.cc.
◆ check_must_not_be_called()
A mock grpc_caller used to check if client_start, server_start, and next operations correctly handle invalid arguments. It should not be called.
Definition at line 152 of file alts_handshaker_client_test.cc.
◆ check_next_success()
A mock grpc_caller used to check correct execution of next operation. It checks if the next handshaker request is populated with correct information, and op is correctly populated.
Definition at line 260 of file alts_handshaker_client_test.cc.
◆ check_server_start_success()
A mock grpc_caller used to check correct execution of server_start operation. It checks if the server_start handshaker request is populated with correct handshake_security_protocol, application_protocol, record_protocol and max_frame_size, and op is correctly populated.
Definition at line 216 of file alts_handshaker_client_test.cc.
◆ create_config()
◆ create_credentials_options()
◆ deserialize_handshaker_req()
◆ destroy_config()
◆ is_recv_status_op()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ schedule_request_grpc_call_failure_test()
static void schedule_request_grpc_call_failure_test |
( |
| ) |
|
|
static |
◆ schedule_request_invalid_arg_test()
static void schedule_request_invalid_arg_test |
( |
| ) |
|
|
static |
◆ schedule_request_success_test()
static void schedule_request_success_test |
( |
| ) |
|
|
static |
◆ tsi_cb_assert_tsi_internal_error()
◆ validate_op()
◆ validate_rpc_protocol_versions()
◆ validate_target_identities()
◆ kHandshakerClientOpNum
const size_t kHandshakerClientOpNum = 4 |
◆ kMaxRpcVersionMajor
const size_t kMaxRpcVersionMajor = 3 |
◆ kMaxRpcVersionMinor
const size_t kMaxRpcVersionMinor = 2 |
◆ kMinRpcVersionMajor
const size_t kMinRpcVersionMajor = 2 |
◆ kMinRpcVersionMinor
const size_t kMinRpcVersionMinor = 1 |