#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"
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) |
anonymous enum |
Enumerator | |
---|---|
TIMEOUT |
Definition at line 34 of file load_reporting_hook.cc.
|
static |
Definition at line 55 of file load_reporting_hook.cc.
|
static |
Definition at line 77 of file load_reporting_hook.cc.
|
static |
Definition at line 102 of file load_reporting_hook.cc.
|
static |
Definition at line 73 of file load_reporting_hook.cc.
void load_reporting_hook | ( | grpc_end2end_test_config | config | ) |
Definition at line 307 of file load_reporting_hook.cc.
void load_reporting_hook_pre_init | ( | void | ) |
Definition at line 311 of file load_reporting_hook.cc.
|
static |
Definition at line 69 of file load_reporting_hook.cc.
|
static |
Definition at line 111 of file load_reporting_hook.cc.
|
static |
Definition at line 96 of file load_reporting_hook.cc.
|
static |
Definition at line 84 of file load_reporting_hook.cc.
|
static |
Definition at line 36 of file load_reporting_hook.cc.
|
static |
Definition at line 267 of file load_reporting_hook.cc.