Go to the documentation of this file.
18 #include "absl/memory/memory.h"
27 #include "src/libfuzzer/libfuzzer_macro.h"
28 #include "test/core/transport/binder/end2end/fuzzers/binder_transport_fuzzer.pb.h"
34 static void*
tag(
intptr_t t) {
return reinterpret_cast<void*
>(t); }
49 absl::make_unique<grpc_binder::fuzzing::BinderForFuzzing>(
50 input.incoming_parcels()),
55 const_cast<char*
>(
"test-authority"));
111 int requested_calls = 1;
130 if (requested_calls) {
134 for (
int i = 0;
i < requested_calls;
i++) {
140 for (
int i = 0;
i < requested_calls;
i++) {
GPRAPI void grpc_slice_unref(grpc_slice s)
GRPCAPI grpc_call_error grpc_call_cancel(grpc_call *call, void *reserved)
grpc_metadata_array * trailing_metadata
grpc_status_code * status
return memset(p, 0, total)
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
DEFINE_PROTO_FUZZER(const binder_transport_fuzzer::Input &input)
@ GRPC_CLIENT_DIRECT_CHANNEL
static void * tag(intptr_t t)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
grpc_arg grpc_channel_arg_string_create(char *name, char *value)
static void SetThreadingAll(bool enable)
grpc_transport * grpc_create_binder_transport_client(std::unique_ptr< grpc_binder::Binder > endpoint_binder, std::shared_ptr< grpc::experimental::binder::SecurityPolicy > security_policy)
struct grpc_op::grpc_op_data::grpc_op_recv_message recv_message
union grpc_op::grpc_op_data data
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
struct grpc_byte_buffer ** recv_message
static grpc_metadata_array trailing_metadata_recv
#define GRPC_ARG_DEFAULT_AUTHORITY
wrapped_grpc_channel * channel
void grpc_test_only_set_slice_hash_seed(uint32_t seed)
@ GRPC_OP_RECV_INITIAL_METADATA
static const CoreConfiguration & Get()
GRPCAPI void grpc_call_unref(grpc_call *call)
struct grpc_call grpc_call
static grpc_byte_buffer * response_payload_recv
void grpc_channel_args_destroy(grpc_channel_args *a)
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
GPRAPI grpc_slice grpc_empty_slice(void)
static void dont_log(gpr_log_func_args *)
const ChannelArgsPreconditioning & channel_args_preconditioning() const
grpc_slice * status_details
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)
GPRAPI gpr_timespec gpr_inf_past(gpr_clock_type type)
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
@ GRPC_OP_SEND_INITIAL_METADATA
grpc_core::ExecCtx exec_ctx
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
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)
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
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_completion_type type
GPRAPI void gpr_set_log_function(gpr_log_func func)
GRPCAPI void grpc_init(void)
@ GRPC_OP_RECV_STATUS_ON_CLIENT
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)
GRPCAPI void grpc_shutdown(void)
ChannelArgs PreconditionChannelArgs(const grpc_channel_args *args) const
static absl::StatusOr< RefCountedPtr< Channel > > Create(const char *target, ChannelArgs args, grpc_channel_stack_type channel_stack_type, grpc_transport *optional_transport)
static grpc_completion_queue * cq
grpc_channel_args * grpc_channel_args_copy_and_add(const grpc_channel_args *src, const grpc_arg *to_add, size_t num_to_add)
@ 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:57:55