#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h"
#include <stdio.h>
#include <stdlib.h>
#include "upb/upb.hpp"
#include <grpc/grpc.h>
#include <grpc/support/sync.h>
#include "src/core/lib/gprpp/thd.h"
#include "src/core/tsi/alts/handshaker/alts_handshaker_client.h"
#include "src/core/tsi/alts/handshaker/alts_shared_resource.h"
#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h"
#include "src/core/tsi/transport_security_grpc.h"
#include "src/proto/grpc/gcp/altscontext.upb.h"
#include "test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h"
#include "test/core/util/test_config.h"
Go to the source code of this file.
Classes | |
struct | notification |
Typedefs | |
typedef struct notification | notification |
Enumerations | |
enum | alts_handshaker_response_type { INVALID, FAILED, CLIENT_START, SERVER_START, CLIENT_NEXT, SERVER_NEXT } |
Variables | |
static notification | caller_to_tsi_notification |
static alts_handshaker_client * | cb_event = nullptr |
static bool | should_handshaker_client_api_succeed = true |
static notification | tsi_to_caller_notification |
static alts_handshaker_client_vtable | vtable |
#define ALTS_TSI_HANDSHAKER_TEST_APPLICATION_PROTOCOL "test application protocol" |
Definition at line 53 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_BUFFER_SIZE 100 |
Definition at line 46 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_CONSUMED_BYTES "Hello " |
Definition at line 40 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_KEY_DATA "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKL" |
Definition at line 44 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_LOCAL_IDENTITY "chapilocal@service.google.com" |
Definition at line 52 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_MAX_FRAME_SIZE (2 * 1024 * 1024) |
Definition at line 56 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_MAX_RPC_VERSION_MAJOR 3 |
Definition at line 48 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_MAX_RPC_VERSION_MINOR 2 |
Definition at line 49 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_MIN_RPC_VERSION_MAJOR 2 |
Definition at line 50 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_MIN_RPC_VERSION_MINOR 1 |
Definition at line 51 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_OUT_FRAME "Hello Google" |
Definition at line 39 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_PEER_ATTRIBUTES_KEY "peer" |
Definition at line 57 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_PEER_ATTRIBUTES_VALUE "attributes" |
Definition at line 58 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_PEER_IDENTITY "chapi@service.google.com" |
Definition at line 42 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_RECORD_PROTOCOL "test record protocol" |
Definition at line 55 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_RECV_BYTES "Hello World" |
Definition at line 38 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_REMAIN_BYTES "Google" |
Definition at line 41 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_SECURITY_LEVEL "TSI_PRIVACY_AND_INTEGRITY" |
Definition at line 43 of file alts_tsi_handshaker_test.cc.
#define ALTS_TSI_HANDSHAKER_TEST_SLEEP_TIME_IN_SECONDS 2 |
Definition at line 47 of file alts_tsi_handshaker_test.cc.
typedef struct notification notification |
Enumerator | |
---|---|
INVALID | |
FAILED | |
CLIENT_START | |
SERVER_START | |
CLIENT_NEXT | |
SERVER_NEXT |
Definition at line 83 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 996 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 799 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 835 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 952 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 881 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 728 of file alts_tsi_handshaker_test.cc.
|
static |
Create a handshaker at the client side, for which internal mock client is always going to fail.
Definition at line 767 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 914 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 666 of file alts_tsi_handshaker_test.cc.
void check_handshaker_next_fails_after_shutdown | ( | ) |
Definition at line 1030 of file alts_tsi_handshaker_test.cc.
|
static |
Create handshakers for which internal mock client is always going to fail.
Definition at line 671 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 586 of file alts_tsi_handshaker_test.cc.
|
static |
Create handshakers for which internal mock client is going to do correctness check.
Definition at line 610 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 648 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 601 of file alts_tsi_handshaker_test.cc.
void check_handshaker_success | ( | ) |
Definition at line 1046 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 239 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 566 of file alts_tsi_handshaker_test.cc.
|
static |
This method mocks ALTS handshaker service to generate handshaker response for a specific request.
Definition at line 127 of file alts_tsi_handshaker_test.cc.
Definition at line 1061 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 488 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 560 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 528 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 509 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 507 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 102 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 96 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 300 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 246 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 717 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 941 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 706 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 870 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 393 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 273 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 985 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 580 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 107 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 114 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 93 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 92 of file alts_tsi_handshaker_test.cc.
Definition at line 73 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 94 of file alts_tsi_handshaker_test.cc.
|
static |
Definition at line 562 of file alts_tsi_handshaker_test.cc.