Classes | Functions | Variables
endpoint_tests.cc File Reference
#include "test/core/iomgr/endpoint_tests.h"
#include <limits.h>
#include <stdbool.h>
#include <sys/types.h>
#include <grpc/slice.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/slice/slice_internal.h"
#include "test/core/util/test_config.h"
Include dependency graph for endpoint_tests.cc:

Go to the source code of this file.

Classes

struct  read_and_write_test_state
 

Functions

static grpc_sliceallocate_blocks (size_t num_bytes, size_t slice_size, size_t *num_blocks, uint8_t *current_data)
 
static grpc_endpoint_test_fixture begin_test (grpc_endpoint_test_config config, const char *test_name, size_t slice_size)
 
size_t count_slices (grpc_slice *slices, size_t nslices, int *current_data)
 
static void end_test (grpc_endpoint_test_config config)
 
void grpc_endpoint_tests (grpc_endpoint_test_config config, grpc_pollset *pollset, gpr_mu *mu)
 
static void inc_on_failure (void *arg, grpc_error_handle error)
 
static void multiple_shutdown_test (grpc_endpoint_test_config config)
 
static void read_and_write_test (grpc_endpoint_test_config config, size_t num_bytes, size_t write_size, size_t slice_size, int max_write_frame_size, bool shutdown)
 
static void read_and_write_test_read_handler (void *data, grpc_error_handle error)
 
static void read_and_write_test_write_handler (void *data, grpc_error_handle error)
 
static void read_scheduler (void *data, grpc_error_handle)
 
static void wait_for_fail_count (int *fail_count, int want_fail_count)
 
static void write_scheduler (void *data, grpc_error_handle)
 

Variables

static gpr_mug_mu
 
static grpc_pollsetg_pollset
 

Function Documentation

◆ allocate_blocks()

static grpc_slice* allocate_blocks ( size_t  num_bytes,
size_t  slice_size,
size_t *  num_blocks,
uint8_t current_data 
)
static

Definition at line 79 of file endpoint_tests.cc.

◆ begin_test()

static grpc_endpoint_test_fixture begin_test ( grpc_endpoint_test_config  config,
const char *  test_name,
size_t  slice_size 
)
static

Definition at line 70 of file endpoint_tests.cc.

◆ count_slices()

size_t count_slices ( grpc_slice slices,
size_t  nslices,
int current_data 
)

Definition at line 54 of file endpoint_tests.cc.

◆ end_test()

static void end_test ( grpc_endpoint_test_config  config)
static

Definition at line 77 of file endpoint_tests.cc.

◆ grpc_endpoint_tests()

void grpc_endpoint_tests ( grpc_endpoint_test_config  config,
grpc_pollset pollset,
gpr_mu mu 
)

Definition at line 345 of file endpoint_tests.cc.

◆ inc_on_failure()

static void inc_on_failure ( void *  arg,
grpc_error_handle  error 
)
static

Definition at line 282 of file endpoint_tests.cc.

◆ multiple_shutdown_test()

static void multiple_shutdown_test ( grpc_endpoint_test_config  config)
static

Definition at line 307 of file endpoint_tests.cc.

◆ read_and_write_test()

static void read_and_write_test ( grpc_endpoint_test_config  config,
size_t  num_bytes,
size_t  write_size,
size_t  slice_size,
int  max_write_frame_size,
bool  shutdown 
)
static

Definition at line 199 of file endpoint_tests.cc.

◆ read_and_write_test_read_handler()

static void read_and_write_test_read_handler ( void *  data,
grpc_error_handle  error 
)
static

Definition at line 131 of file endpoint_tests.cc.

◆ read_and_write_test_write_handler()

static void read_and_write_test_write_handler ( void *  data,
grpc_error_handle  error 
)
static

Definition at line 160 of file endpoint_tests.cc.

◆ read_scheduler()

static void read_scheduler ( void *  data,
grpc_error_handle   
)
static

Definition at line 124 of file endpoint_tests.cc.

◆ wait_for_fail_count()

static void wait_for_fail_count ( int fail_count,
int  want_fail_count 
)
static

Definition at line 289 of file endpoint_tests.cc.

◆ write_scheduler()

static void write_scheduler ( void *  data,
grpc_error_handle   
)
static

Definition at line 153 of file endpoint_tests.cc.

Variable Documentation

◆ g_mu

gpr_mu* g_mu
static

Definition at line 51 of file endpoint_tests.cc.

◆ g_pollset

grpc_pollset* g_pollset
static

Definition at line 52 of file endpoint_tests.cc.



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