Go to the documentation of this file.
24 #include <grpc/byte_buffer.h>
42 static void*
tag(
intptr_t t) {
return reinterpret_cast<void*
>(t); }
45 const char* test_name,
50 f =
config.create_fixture(client_args, server_args);
51 config.init_server(&
f, server_args);
52 config.init_client(&
f, client_args);
72 if (!
f->server)
return;
84 if (!
f->client)
return;
285 "client_filter_latency"};
294 "server_filter_latency"};
306 builder->channel_init()->RegisterStage(
313 auto it =
builder->mutable_stack()->end();
315 builder->mutable_stack()->insert(
it, filter);
GPRAPI void grpc_slice_unref(grpc_slice s)
struct grpc_byte_buffer * send_message
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
GRPCAPI void grpc_call_details_destroy(grpc_call_details *details)
GRPCAPI void grpc_call_details_init(grpc_call_details *details)
grpc_metadata_array * trailing_metadata
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
grpc_status_code * status
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
return memset(p, 0, total)
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)
void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)
@ GRPC_CLIENT_DIRECT_CHANNEL
static void drain_cq(grpc_completion_queue *cq)
static const grpc_channel_filter test_client_filter
static const grpc_channel_filter test_server_filter
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
static int64_t start_time
union grpc_op::grpc_op_data data
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
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)
GRPCAPI grpc_call_error grpc_server_request_call(grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new)
static grpc_metadata_array trailing_metadata_recv
static grpc_error_handle init_call_elem(grpc_call_element *, const grpc_call_element_args *)
@ GRPC_OP_RECV_INITIAL_METADATA
@ GRPC_OP_SEND_STATUS_FROM_SERVER
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
void filter_latency(grpc_end2end_test_config config)
static void end_test(grpc_end2end_test_fixture *f)
void grpc_channel_stack_no_post_init(grpc_channel_stack *, grpc_channel_element *)
GRPCAPI void grpc_call_unref(grpc_call *call)
GPRAPI gpr_timespec gpr_time_sub(gpr_timespec a, gpr_timespec b)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI void gpr_mu_init(gpr_mu *mu)
void cq_verifier_destroy(cq_verifier *v)
struct grpc_call grpc_call
void grpc_channel_next_get_info(grpc_channel_element *elem, const grpc_channel_info *channel_info)
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
static gpr_timespec five_seconds_from_now(void)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
static grpc_metadata_array request_metadata_recv
void grpc_call_next_op(grpc_call_element *elem, grpc_transport_stream_op_batch *op)
GRPCAPI void grpc_server_destroy(grpc_server *server)
#define CQ_EXPECT_COMPLETION(v, tag, success)
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
static grpc_error_handle init_channel_elem(grpc_channel_element *, grpc_channel_element_args *)
grpc_slice * status_details
static void shutdown_client(grpc_end2end_test_fixture *f)
static grpc_slice details
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
struct grpc_op::grpc_op_data::grpc_op_recv_close_on_server recv_close_on_server
static void test_request(grpc_end2end_test_config config)
#define GRPC_PROPAGATE_DEFAULTS
struct grpc_op::grpc_op_data::grpc_op_send_status_from_server send_status_from_server
void filter_latency_pre_init(void)
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
static void server_destroy_call_elem(grpc_call_element *, const grpc_call_final_info *final_info, grpc_closure *)
@ GRPC_OP_SEND_INITIAL_METADATA
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
void BuildCoreConfiguration(CoreConfiguration::Builder *builder)
static void client_destroy_call_elem(grpc_call_element *, const grpc_call_final_info *final_info, grpc_closure *)
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
size_t trailing_metadata_count
static void shutdown_server(grpc_end2end_test_fixture *f)
GRPCAPI void grpc_server_shutdown_and_notify(grpc_server *server, grpc_completion_queue *cq, void *tag)
GRPCAPI void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
void cq_verify(cq_verifier *v, int timeout_sec)
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
static gpr_timespec g_server_latency
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
static void RunWithSpecialConfiguration(BuildFunc build_configuration, RunFunc code_to_run)
static gpr_timespec g_client_latency
static gpr_timespec n_seconds_from_now(int n)
@ GRPC_OP_RECV_CLOSE_ON_SERVER
@ GRPC_STATUS_UNIMPLEMENTED
static void * tag(intptr_t t)
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_slice * status_details
grpc_completion_type type
@ GRPC_OP_RECV_STATUS_ON_CLIENT
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
static grpc_metadata_array initial_metadata_recv
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
static void destroy_channel_elem(grpc_channel_element *)
static grpc_completion_queue * cq
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
static grpc_call_details call_details
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:23