Go to the documentation of this file.
35 static void*
tag(
intptr_t t) {
return reinterpret_cast<void*
>(t); }
505 static_cast<size_t>(INT_MAX) + 1;
639 int main(
int argc,
char** argv) {
grpc_metadata_array trailing_metadata_recv
GPRAPI void grpc_slice_unref(grpc_slice s)
static void test_non_null_reserved_on_start_batch()
struct grpc_byte_buffer * send_message
static void test_send_server_status_twice()
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_metadata_array server_initial_metadata_recv
grpc_status_code * status
static void test_recv_status_on_client_twice()
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
@ GRPC_CALL_ERROR_TOO_MANY_OPERATIONS
return memset(p, 0, total)
@ GRPC_CALL_ERROR_INVALID_MESSAGE
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
static void test_recv_close_on_server_twice()
@ GRPC_CALL_ERROR_NOT_ON_CLIENT
static void test_recv_close_on_server_from_client()
static void test_send_close_from_client_on_server()
GRPCAPI grpc_server * grpc_server_create(const grpc_channel_args *args, void *reserved)
GRPCAPI void grpc_server_register_completion_queue(grpc_server *server, grpc_completion_queue *cq, void *reserved)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
static void test_send_server_status_from_client()
static void test_receive_initial_metadata_twice_at_client()
@ GRPC_CALL_ERROR_INVALID_METADATA
static void * tag(intptr_t t)
@ GRPC_CALL_ERROR_NOT_ON_SERVER
static void cleanup_test()
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
union grpc_op::grpc_op_data data
GRPCAPI grpc_server_credentials * grpc_insecure_server_credentials_create()
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
struct grpc_byte_buffer ** recv_message
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 void test_recv_close_on_server_with_invalid_flags()
grpc_metadata_array initial_metadata_recv
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY
@ GRPC_OP_RECV_INITIAL_METADATA
@ GRPC_OP_SEND_STATUS_FROM_SERVER
@ GRPC_CALL_ERROR_INVALID_FLAGS
GRPCAPI void grpc_server_credentials_release(grpc_server_credentials *creds)
GRPCAPI int grpc_server_add_http2_port(grpc_server *server, const char *addr, grpc_server_credentials *creds)
GRPCAPI void grpc_call_unref(grpc_call *call)
static void test_too_many_trailing_metadata()
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
void cq_verifier_destroy(cq_verifier *v)
static void test_receive_message_with_invalid_flags()
struct grpc_call grpc_call
std::string JoinHostPort(absl::string_view host, int port)
GRPCAPI grpc_channel_credentials * grpc_insecure_credentials_create()
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
static void test_invalid_initial_metadata_reserved_key()
static void test_send_messages_at_the_same_time()
GPRAPI grpc_slice grpc_empty_slice(void)
struct grpc_server grpc_server
int main(int argc, char **argv)
GRPCAPI void grpc_server_destroy(grpc_server *server)
#define CQ_EXPECT_COMPLETION(v, tag, success)
int grpc_pick_unused_port_or_die(void)
grpc_slice * status_details
GRPCAPI void grpc_channel_credentials_release(grpc_channel_credentials *creds)
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
GRPCAPI grpc_channel * grpc_channel_create(const char *target, grpc_channel_credentials *creds, const grpc_channel_args *args)
static void test_recv_status_on_client_from_server()
#define GRPC_PROPAGATE_DEFAULTS
struct grpc_op::grpc_op_data::grpc_op_send_status_from_server send_status_from_server
grpc_completion_queue * cq
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
@ GRPC_OP_SEND_INITIAL_METADATA
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
static void test_receive_two_messages_at_the_same_time()
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
size_t trailing_metadata_count
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)
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
static void test_send_initial_metadata_more_than_once()
struct grpc_channel grpc_channel
static void prepare_test(int is_client)
static struct test_state g_state
@ GRPC_OP_RECV_CLOSE_ON_SERVER
@ GRPC_STATUS_UNIMPLEMENTED
static void test_multiple_ops_in_a_single_batch()
GRPCAPI grpc_completion_queue * grpc_completion_queue_create_for_next(void *reserved)
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_slice * status_details
static void test_too_many_metadata()
grpc_completion_type type
GRPCAPI void grpc_init(void)
GRPCAPI void grpc_server_start(grpc_server *server)
@ GRPC_OP_RECV_STATUS_ON_CLIENT
grpc_call_details call_details
static void test_non_null_reserved_on_op()
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
GRPCAPI void grpc_shutdown(void)
static void test_send_status_from_server_with_invalid_flags()
static void test_send_null_message()
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:07