Enumerations | Functions | Variables
filter_init_fails.cc File Reference
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <grpc/byte_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/channel/channel_stack.h"
#include "src/core/lib/channel/channel_stack_builder.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/surface/channel_init.h"
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/end2end_tests.h"
Include dependency graph for filter_init_fails.cc:

Go to the source code of this file.

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 destroy_call_elem (grpc_call_element *, const grpc_call_final_info *, grpc_closure *)
 
static void destroy_channel_elem (grpc_channel_element *)
 
static void drain_cq (grpc_completion_queue *cq)
 
static void end_test (grpc_end2end_test_fixture *f)
 
void filter_init_fails (grpc_end2end_test_config config)
 
static void filter_init_fails_internal (grpc_end2end_test_config config)
 
void filter_init_fails_pre_init (void)
 
static gpr_timespec five_seconds_from_now (void)
 
static grpc_error_handle init_call_elem (grpc_call_element *, const grpc_call_element_args *)
 
static grpc_error_handle init_channel_elem (grpc_channel_element *, grpc_channel_element_args *)
 
static gpr_timespec n_seconds_from_now (int n)
 
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_client_channel_filter (grpc_end2end_test_config config)
 
static void test_client_subchannel_filter (grpc_end2end_test_config config)
 
static void test_server_channel_filter (grpc_end2end_test_config config)
 

Variables

static bool g_channel_filter_init_failure = false
 
static bool g_enable_client_channel_filter = false
 
static bool g_enable_client_subchannel_filter = false
 
static bool g_enable_server_channel_filter = false
 
static const grpc_channel_filter test_filter
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TIMEOUT 

Definition at line 36 of file filter_init_fails.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 45 of file filter_init_fails.cc.

◆ destroy_call_elem()

static void destroy_call_elem ( grpc_call_element ,
const grpc_call_final_info ,
grpc_closure  
)
static

Definition at line 428 of file filter_init_fails.cc.

◆ destroy_channel_elem()

static void destroy_channel_elem ( grpc_channel_element )
static

Definition at line 442 of file filter_init_fails.cc.

◆ drain_cq()

static void drain_cq ( grpc_completion_queue cq)
static

Definition at line 65 of file filter_init_fails.cc.

◆ end_test()

static void end_test ( grpc_end2end_test_fixture f)
static

Definition at line 90 of file filter_init_fails.cc.

◆ filter_init_fails()

void filter_init_fails ( grpc_end2end_test_config  config)

Definition at line 482 of file filter_init_fails.cc.

◆ filter_init_fails_internal()

static void filter_init_fails_internal ( grpc_end2end_test_config  config)
static

Definition at line 457 of file filter_init_fails.cc.

◆ filter_init_fails_pre_init()

void filter_init_fails_pre_init ( void  )

Definition at line 512 of file filter_init_fails.cc.

◆ five_seconds_from_now()

static gpr_timespec five_seconds_from_now ( void  )
static

Definition at line 61 of file filter_init_fails.cc.

◆ init_call_elem()

static grpc_error_handle init_call_elem ( grpc_call_element ,
const grpc_call_element_args  
)
static

Definition at line 421 of file filter_init_fails.cc.

◆ init_channel_elem()

static grpc_error_handle init_channel_elem ( grpc_channel_element ,
grpc_channel_element_args  
)
static

Definition at line 432 of file filter_init_fails.cc.

◆ n_seconds_from_now()

static gpr_timespec n_seconds_from_now ( int  n)
static

Definition at line 57 of file filter_init_fails.cc.

◆ shutdown_client()

static void shutdown_client ( grpc_end2end_test_fixture f)
static

Definition at line 84 of file filter_init_fails.cc.

◆ shutdown_server()

static void shutdown_server ( grpc_end2end_test_fixture f)
static

Definition at line 72 of file filter_init_fails.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 43 of file filter_init_fails.cc.

◆ test_client_channel_filter()

static void test_client_channel_filter ( grpc_end2end_test_config  config)
static

Definition at line 205 of file filter_init_fails.cc.

◆ test_client_subchannel_filter()

static void test_client_subchannel_filter ( grpc_end2end_test_config  config)
static

Definition at line 298 of file filter_init_fails.cc.

◆ test_server_channel_filter()

static void test_server_channel_filter ( grpc_end2end_test_config  config)
static

Definition at line 101 of file filter_init_fails.cc.

Variable Documentation

◆ g_channel_filter_init_failure

bool g_channel_filter_init_failure = false
static

Definition at line 41 of file filter_init_fails.cc.

◆ g_enable_client_channel_filter

bool g_enable_client_channel_filter = false
static

Definition at line 39 of file filter_init_fails.cc.

◆ g_enable_client_subchannel_filter

bool g_enable_client_subchannel_filter = false
static

Definition at line 40 of file filter_init_fails.cc.

◆ g_enable_server_channel_filter

bool g_enable_server_channel_filter = false
static

Definition at line 38 of file filter_init_fails.cc.

◆ test_filter

const grpc_channel_filter test_filter
static
grpc_channel_next_op
void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)
Definition: channel_stack.cc:264
grpc_call_stack_ignore_set_pollset_or_pollset_set
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
Definition: channel_stack.cc:233
destroy_channel_elem
static void destroy_channel_elem(grpc_channel_element *)
Definition: filter_init_fails.cc:442
grpc_channel_stack_no_post_init
void grpc_channel_stack_no_post_init(grpc_channel_stack *, grpc_channel_element *)
Definition: channel_stack.cc:282
grpc_channel_next_get_info
void grpc_channel_next_get_info(grpc_channel_element *elem, const grpc_channel_info *channel_info)
Definition: channel_stack.cc:258
destroy_call_elem
static void destroy_call_elem(grpc_call_element *, const grpc_call_final_info *, grpc_closure *)
Definition: filter_init_fails.cc:428
grpc_call_next_op
void grpc_call_next_op(grpc_call_element *elem, grpc_transport_stream_op_batch *op)
Definition: channel_stack.cc:251
init_channel_elem
static grpc_error_handle init_channel_elem(grpc_channel_element *, grpc_channel_element_args *)
Definition: filter_init_fails.cc:432
init_call_elem
static grpc_error_handle init_call_elem(grpc_call_element *, const grpc_call_element_args *)
Definition: filter_init_fails.cc:421


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