Functions | Variables
alts_frame_protector_test.cc File Reference
#include "src/core/tsi/alts/frame_protector/alts_frame_protector.h"
#include <stdbool.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/tsi/alts/crypt/gsec.h"
#include "src/core/tsi/transport_security_interface.h"
#include "test/core/tsi/alts/crypt/gsec_test_util.h"
#include "test/core/tsi/transport_security_test_lib.h"
Include dependency graph for alts_frame_protector_test.cc:

Go to the source code of this file.

Functions

static void alts_test_do_round_trip (tsi_test_frame_protector_fixture *fixture, bool rekey)
 
static void alts_test_do_round_trip_all (bool rekey)
 
static void alts_test_do_round_trip_check_frames (tsi_test_frame_protector_fixture *fixture, const uint8_t *key, const size_t key_size, bool rekey, const uint8_t *client_message, const size_t client_message_size, const uint8_t *client_expected_frames, const size_t client_frame_size, const uint8_t *server_message, const size_t server_message_size, const uint8_t *server_expected_frames, const size_t server_frame_size)
 
static void alts_test_do_round_trip_vector_tests ()
 
int main (int, char **)
 

Variables

const size_t kChannelSize = 32768
 

Function Documentation

◆ alts_test_do_round_trip()

static void alts_test_do_round_trip ( tsi_test_frame_protector_fixture fixture,
bool  rekey 
)
static

Definition at line 331 of file alts_frame_protector_test.cc.

◆ alts_test_do_round_trip_all()

static void alts_test_do_round_trip_all ( bool  rekey)
static

Definition at line 367 of file alts_frame_protector_test.cc.

◆ alts_test_do_round_trip_check_frames()

static void alts_test_do_round_trip_check_frames ( tsi_test_frame_protector_fixture fixture,
const uint8_t key,
const size_t  key_size,
bool  rekey,
const uint8_t client_message,
const size_t  client_message_size,
const uint8_t client_expected_frames,
const size_t  client_frame_size,
const uint8_t server_message,
const size_t  server_message_size,
const uint8_t server_expected_frames,
const size_t  server_frame_size 
)
static

Definition at line 33 of file alts_frame_protector_test.cc.

◆ alts_test_do_round_trip_vector_tests()

static void alts_test_do_round_trip_vector_tests ( )
static

Test large client message, small server message, and small message_buffer_allocated_size.

Test large client message, small server message, and small protected_buffer_size.

Test large client message, small server message, and small read_buffer_allocated_size.

Test large client message, small server message, and small client_max_output_protected_frame_size.

Test small client message, large server message, and small server_max_output_protected_frame_size.

Definition at line 114 of file alts_frame_protector_test.cc.

◆ main()

int main ( int  ,
char **   
)

Definition at line 390 of file alts_frame_protector_test.cc.

Variable Documentation

◆ kChannelSize

const size_t kChannelSize = 32768

Definition at line 31 of file alts_frame_protector_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02