Classes | Functions
iomgr/timer_heap_test.cc File Reference
#include "src/core/lib/iomgr/timer_heap.h"
#include <stdlib.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/iomgr/port.h"
#include "test/core/util/test_config.h"
Include dependency graph for iomgr/timer_heap_test.cc:

Go to the source code of this file.

Classes

struct  elem_struct
 

Functions

static void check_valid (grpc_timer_heap *pq)
 
static int contains (grpc_timer_heap *pq, grpc_timer *el)
 
static grpc_timercreate_test_elements (size_t num_elements)
 
int main (int argc, char **argv)
 
static gpr_atm random_deadline (void)
 
static elem_structsearch_elems (elem_struct *elems, size_t count, bool inserted)
 
static void shrink_test (void)
 
static void test1 (void)
 
static void test2 (void)
 

Function Documentation

◆ check_valid()

static void check_valid ( grpc_timer_heap pq)
static

Definition at line 51 of file iomgr/timer_heap_test.cc.

◆ contains()

static int contains ( grpc_timer_heap pq,
grpc_timer el 
)
static

Definition at line 43 of file iomgr/timer_heap_test.cc.

◆ create_test_elements()

static grpc_timer* create_test_elements ( size_t  num_elements)
static

Definition at line 33 of file iomgr/timer_heap_test.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 285 of file iomgr/timer_heap_test.cc.

◆ random_deadline()

static gpr_atm random_deadline ( void  )
static

Definition at line 31 of file iomgr/timer_heap_test.cc.

◆ search_elems()

static elem_struct* search_elems ( elem_struct elems,
size_t  count,
bool  inserted 
)
static

Definition at line 133 of file iomgr/timer_heap_test.cc.

◆ shrink_test()

static void shrink_test ( void  )
static

Definition at line 226 of file iomgr/timer_heap_test.cc.

◆ test1()

static void test1 ( void  )
static

Definition at line 69 of file iomgr/timer_heap_test.cc.

◆ test2()

static void test2 ( void  )
static

Definition at line 155 of file iomgr/timer_heap_test.cc.



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