Classes | Enumerations | Functions | Variables
load_reporting_hook.cc File Reference
#include <string.h>
#include <grpc/byte_buffer.h>
#include <grpc/load_reporting.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/time.h>
#include "src/core/ext/filters/load_reporting/server_load_reporting_filter.h"
#include "src/core/ext/filters/load_reporting/server_load_reporting_plugin.h"
#include "src/core/lib/channel/channel_args.h"
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/end2end_tests.h"
Include dependency graph for load_reporting_hook.cc:

Go to the source code of this file.

Classes

struct  load_reporting_data
 

Enumerations

enum  { TIMEOUT = 200000 }
 

Functions

static grpc_end2end_test_fixture begin_test (grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args)
 
static void drain_cq (grpc_completion_queue *cq)
 
static void end_test (grpc_end2end_test_fixture *f)
 
static gpr_timespec five_seconds_from_now (void)
 
void load_reporting_hook (grpc_end2end_test_config config)
 
void load_reporting_hook_pre_init (void)
 
static gpr_timespec n_seconds_from_now (int n)
 
static void request_response_with_payload (grpc_end2end_test_config config, grpc_end2end_test_fixture f, const char *method_name, const char *request_msg, const char *response_msg, grpc_metadata *initial_lr_metadata, grpc_metadata *trailing_lr_metadata)
 
static void shutdown_client (grpc_end2end_test_fixture *f)
 
static void shutdown_server (grpc_end2end_test_fixture *f)
 
static void * tag (intptr_t t)
 
static void test_load_reporting_hook (grpc_end2end_test_config config)
 

Variables

void(* g_load_reporting_fn )(const grpc_load_reporting_call_data *call_data)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIMEOUT 

Definition at line 34 of file load_reporting_hook.cc.

Function Documentation

◆ begin_test()

static grpc_end2end_test_fixture begin_test ( grpc_end2end_test_config  config,
const char *  test_name,
grpc_channel_args client_args,
grpc_channel_args server_args 
)
static

Definition at line 55 of file load_reporting_hook.cc.

◆ drain_cq()

static void drain_cq ( grpc_completion_queue cq)
static

Definition at line 77 of file load_reporting_hook.cc.

◆ end_test()

static void end_test ( grpc_end2end_test_fixture f)
static

Definition at line 102 of file load_reporting_hook.cc.

◆ five_seconds_from_now()

static gpr_timespec five_seconds_from_now ( void  )
static

Definition at line 73 of file load_reporting_hook.cc.

◆ load_reporting_hook()

void load_reporting_hook ( grpc_end2end_test_config  config)

Definition at line 307 of file load_reporting_hook.cc.

◆ load_reporting_hook_pre_init()

void load_reporting_hook_pre_init ( void  )

Definition at line 311 of file load_reporting_hook.cc.

◆ n_seconds_from_now()

static gpr_timespec n_seconds_from_now ( int  n)
static

Definition at line 69 of file load_reporting_hook.cc.

◆ request_response_with_payload()

static void request_response_with_payload ( grpc_end2end_test_config  config,
grpc_end2end_test_fixture  f,
const char *  method_name,
const char *  request_msg,
const char *  response_msg,
grpc_metadata initial_lr_metadata,
grpc_metadata trailing_lr_metadata 
)
static

Definition at line 111 of file load_reporting_hook.cc.

◆ shutdown_client()

static void shutdown_client ( grpc_end2end_test_fixture f)
static

Definition at line 96 of file load_reporting_hook.cc.

◆ shutdown_server()

static void shutdown_server ( grpc_end2end_test_fixture f)
static

Definition at line 84 of file load_reporting_hook.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 36 of file load_reporting_hook.cc.

◆ test_load_reporting_hook()

static void test_load_reporting_hook ( grpc_end2end_test_config  config)
static

Definition at line 267 of file load_reporting_hook.cc.

Variable Documentation

◆ g_load_reporting_fn

void(* g_load_reporting_fn) (const grpc_load_reporting_call_data *call_data)


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