Classes | Typedefs | Functions | Variables
frame_handler_test.cc File Reference
#include "src/core/tsi/alts/frame_protector/frame_handler.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/useful.h"
#include "test/core/tsi/alts/crypt/gsec_test_util.h"
Include dependency graph for frame_handler_test.cc:

Go to the source code of this file.

Classes

struct  frame_handler
 

Typedefs

typedef struct frame_handler frame_handler
 

Functions

static frame_handlercreate_frame_handler ()
 
static size_t deframe (frame_handler *handler, unsigned char *bytes, size_t read_length)
 
static void destroy_frame_handler (frame_handler *handler)
 
static void frame (frame_handler *handler, unsigned char *payload, size_t payload_length, size_t write_length)
 
static void frame_handler_test_bad_frame_length ()
 
static void frame_handler_test_bad_input_length ()
 
static void frame_handler_test_frame_deframe ()
 
static void frame_handler_test_null_input_stream ()
 
static void frame_handler_test_null_output_stream ()
 
static void frame_handler_test_null_reader_byte_length ()
 
static void frame_handler_test_null_reader_bytes ()
 
static void frame_handler_test_null_writer_byte_length ()
 
static void frame_handler_test_null_writer_bytes ()
 
static void frame_handler_test_small_buffer ()
 
static void frame_handler_test_unsupported_message_type ()
 
static size_t frame_length (size_t payload_length)
 
static void frame_n_deframe (frame_handler *handler, unsigned char *payload, size_t payload_length, size_t write_length, size_t read_length)
 
int main (int, char **)
 

Variables

const size_t kFrameHandlerTestBufferSize = 1024
 

Typedef Documentation

◆ frame_handler

typedef struct frame_handler frame_handler

Function Documentation

◆ create_frame_handler()

static frame_handler* create_frame_handler ( )
static

Definition at line 46 of file frame_handler_test.cc.

◆ deframe()

static size_t deframe ( frame_handler handler,
unsigned char *  bytes,
size_t  read_length 
)
static

Definition at line 84 of file frame_handler_test.cc.

◆ destroy_frame_handler()

static void destroy_frame_handler ( frame_handler handler)
static

Definition at line 56 of file frame_handler_test.cc.

◆ frame()

static void frame ( frame_handler handler,
unsigned char *  payload,
size_t  payload_length,
size_t  write_length 
)
static

Definition at line 65 of file frame_handler_test.cc.

◆ frame_handler_test_bad_frame_length()

static void frame_handler_test_bad_frame_length ( )
static

Definition at line 162 of file frame_handler_test.cc.

◆ frame_handler_test_bad_input_length()

static void frame_handler_test_bad_input_length ( )
static

Definition at line 135 of file frame_handler_test.cc.

◆ frame_handler_test_frame_deframe()

static void frame_handler_test_frame_deframe ( )
static

Definition at line 112 of file frame_handler_test.cc.

◆ frame_handler_test_null_input_stream()

static void frame_handler_test_null_input_stream ( )
static

Definition at line 129 of file frame_handler_test.cc.

◆ frame_handler_test_null_output_stream()

static void frame_handler_test_null_output_stream ( )
static

Definition at line 199 of file frame_handler_test.cc.

◆ frame_handler_test_null_reader_byte_length()

static void frame_handler_test_null_reader_byte_length ( )
static

Definition at line 208 of file frame_handler_test.cc.

◆ frame_handler_test_null_reader_bytes()

static void frame_handler_test_null_reader_bytes ( )
static

Definition at line 221 of file frame_handler_test.cc.

◆ frame_handler_test_null_writer_byte_length()

static void frame_handler_test_null_writer_byte_length ( )
static

Definition at line 142 of file frame_handler_test.cc.

◆ frame_handler_test_null_writer_bytes()

static void frame_handler_test_null_writer_bytes ( )
static

Definition at line 152 of file frame_handler_test.cc.

◆ frame_handler_test_small_buffer()

static void frame_handler_test_small_buffer ( )
static

Definition at line 121 of file frame_handler_test.cc.

◆ frame_handler_test_unsupported_message_type()

static void frame_handler_test_unsupported_message_type ( )
static

Definition at line 180 of file frame_handler_test.cc.

◆ frame_length()

static size_t frame_length ( size_t  payload_length)
static

Definition at line 42 of file frame_handler_test.cc.

◆ frame_n_deframe()

static void frame_n_deframe ( frame_handler handler,
unsigned char *  payload,
size_t  payload_length,
size_t  write_length,
size_t  read_length 
)
static

Definition at line 100 of file frame_handler_test.cc.

◆ main()

int main ( int  ,
char **   
)

Definition at line 235 of file frame_handler_test.cc.

Variable Documentation

◆ kFrameHandlerTestBufferSize

const size_t kFrameHandlerTestBufferSize = 1024

Definition at line 33 of file frame_handler_test.cc.



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