Go to the documentation of this file.
19 #ifndef GRPC_TEST_CORE_TSI_TRANSPORT_SECURITY_TEST_LIB_H_
20 #define GRPC_TEST_CORE_TSI_TRANSPORT_SECURITY_TEST_LIB_H_
26 #define TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE 32
27 #define TSI_TEST_SMALL_HANDSHAKE_BUFFER_SIZE 128
28 #define TSI_TEST_SMALL_READ_BUFFER_ALLOCATED_SIZE 41
29 #define TSI_TEST_SMALL_PROTECTED_BUFFER_SIZE 37
30 #define TSI_TEST_SMALL_MESSAGE_BUFFER_ALLOCATED_SIZE 42
31 #define TSI_TEST_SMALL_CLIENT_MAX_OUTPUT_PROTECTED_FRAME_SIZE 39
32 #define TSI_TEST_SMALL_SERVER_MAX_OUTPUT_PROTECTED_FRAME_SIZE 43
33 #define TSI_TEST_DEFAULT_BUFFER_SIZE 4096
34 #define TSI_TEST_DEFAULT_PROTECTED_BUFFER_SIZE 16384
35 #define TSI_TEST_DEFAULT_CHANNEL_SIZE 32768
36 #define TSI_TEST_BIG_MESSAGE_SIZE 17000
37 #define TSI_TEST_SMALL_MESSAGE_SIZE 10
38 #define TSI_TEST_NUM_OF_ARGUMENTS 7
39 #define TSI_TEST_NUM_OF_COMBINATIONS 128
40 #define TSI_TEST_UNUSED_BYTES "HELLO GOOGLE"
158 bool use_default_read_buffer_allocated_size,
159 bool use_default_message_buffer_allocated_size,
160 bool use_default_protected_buffer_size,
bool use_default_client_message,
161 bool use_default_server_message,
162 bool use_default_client_max_output_protected_frame_size,
163 bool use_default_server_max_output_protected_frame_size);
169 size_t message_buffer_allocated_size,
size_t protected_buffer_size,
170 size_t client_max_output_protected_frame_size,
171 size_t server_max_output_protected_frame_size);
231 #endif // GRPC_TEST_CORE_TSI_TRANSPORT_SECURITY_TEST_LIB_H_
void tsi_test_do_handshake(tsi_test_fixture *fixture)
tsi_handshaker * server_handshaker
tsi_handshaker_result * client_result
size_t bytes_read_from_client_channel
size_t protected_buffer_size
static int bytes_received
void tsi_test_do_round_trip(tsi_test_fixture *fixture)
size_t handshake_buffer_size
tsi_test_channel * channel
void tsi_test_fixture_init(tsi_test_fixture *fixture)
size_t server_message_size
wrapped_grpc_channel * channel
tsi_frame_protector * server_frame_protector
static const char fixture[]
void tsi_test_frame_protector_send_message_to_peer(tsi_test_frame_protector_config *config, tsi_test_channel *channel, tsi_frame_protector *protector, bool is_client)
void(* check_handshaker_peers)(tsi_test_fixture *fixture)
void tsi_test_frame_protector_receive_message_from_peer(tsi_test_frame_protector_config *config, tsi_test_channel *channel, tsi_frame_protector *protector, unsigned char *message, size_t *bytes_received, bool is_client)
tsi_test_frame_protector_config * config
size_t read_buffer_allocated_size
void tsi_test_frame_protector_config_set_buffer_size(tsi_test_frame_protector_config *config, size_t read_buffer_allocated_size, size_t message_buffer_allocated_size, size_t protected_buffer_size, size_t client_max_output_protected_frame_size, size_t server_max_output_protected_frame_size)
struct tsi_test_fixture_vtable tsi_test_fixture_vtable
const tsi_test_fixture_vtable * vtable
void(* destruct)(tsi_test_fixture *fixture)
void(* setup_handshakers)(tsi_test_fixture *fixture)
tsi_test_frame_protector_fixture * tsi_test_frame_protector_fixture_create()
size_t bytes_written_to_server_channel
size_t client_max_output_protected_frame_size
tsi_test_frame_protector_config * tsi_test_frame_protector_config_create(bool use_default_read_buffer_allocated_size, bool use_default_message_buffer_allocated_size, bool use_default_protected_buffer_size, bool use_default_client_message, bool use_default_server_message, bool use_default_client_max_output_protected_frame_size, bool use_default_server_max_output_protected_frame_size)
size_t bytes_written_to_client_channel
size_t client_message_size
size_t bytes_read_from_server_channel
void tsi_test_frame_protector_fixture_destroy(tsi_test_frame_protector_fixture *fixture)
bool has_client_finished_first
size_t server_max_output_protected_frame_size
size_t message_buffer_allocated_size
tsi_frame_protector * client_frame_protector
tsi_handshaker_result * server_result
tsi_handshaker * client_handshaker
tsi_test_frame_protector_config * config
void tsi_test_frame_protector_do_round_trip_no_handshake(tsi_test_frame_protector_fixture *fixture)
void tsi_test_frame_protector_fixture_init(tsi_test_frame_protector_fixture *fixture, tsi_frame_protector *client_frame_protector, tsi_frame_protector *server_frame_protector)
void tsi_test_frame_protector_config_destroy(tsi_test_frame_protector_config *config)
void tsi_test_fixture_destroy(tsi_test_fixture *fixture)
tsi_test_channel * channel
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:40