Go to the documentation of this file.
15 #ifndef GRPC_TEST_CORE_EVENT_ENGINE_FUZZING_EVENT_ENGINE_H
16 #define GRPC_TEST_CORE_EVENT_ENGINE_FUZZING_EVENT_ENGINE_H
26 #include "test/core/event_engine/fuzzing_event_engine/fuzzing_event_engine.pb.h"
29 namespace experimental {
40 const fuzzing_event_engine::Actions& actions);
50 std::unique_ptr<MemoryAllocatorFactory> memory_allocator_factory)
64 const DNSResolver::ResolverOptions&
options)
override;
72 using Time = std::chrono::time_point<FuzzingEventEngine, Duration>;
99 std::multimap<Time, std::shared_ptr<Task>> tasks_by_time_
std::chrono::duration< std::int_fast64_t > seconds
bool CancelConnect(ConnectionHandle handle) override
bool Cancel(TaskHandle handle) override
std::function< void(std::unique_ptr< Endpoint >, MemoryAllocator memory_allocator)> AcceptCallback
Called when the listener has accepted a new client connection.
static gpr_timespec GlobalNowImpl(gpr_clock_type clock_type) ABSL_LOCKS_EXCLUDED(mu_)
std::function< void()> closure
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
#define ABSL_EXCLUSIVE_LOCKS_REQUIRED(...)
std::chrono::time_point< FuzzingEventEngine, Duration > Time
Duration final_tick_length
absl::StatusOr< std::unique_ptr< Listener > > CreateListener(Listener::AcceptCallback on_accept, std::function< void(absl::Status)> on_shutdown, const EndpointConfig &config, std::unique_ptr< MemoryAllocatorFactory > memory_allocator_factory) override
~FuzzingEventEngine() override
void on_connect(uv_connect_t *req, int status)
std::function< void(absl::StatusOr< std::unique_ptr< Endpoint > >)> OnConnectCallback
Task(intptr_t id, std::function< void()> closure)
const Duration final_tick_length_
intptr_t next_task_id_ ABSL_GUARDED_BY(mu_)
#define ABSL_LOCKS_EXCLUDED(...)
bool IsWorkerThread() override
gpr_timespec NowAsTimespec(gpr_clock_type clock_type) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
static void on_accept(void *arg, grpc_endpoint *endpoint, grpc_pollset *, grpc_tcp_server_acceptor *acceptor)
std::unique_ptr< DNSResolver > GetDNSResolver(const DNSResolver::ResolverOptions &options) override
ConnectionHandle Connect(OnConnectCallback on_connect, const ResolvedAddress &addr, const EndpointConfig &args, MemoryAllocator memory_allocator, Duration timeout) override
void Run(Closure *closure) override
Time Now() ABSL_LOCKS_EXCLUDED(mu_)
FuzzingEventEngine(Options options, const fuzzing_event_engine::Actions &actions)
TaskHandle RunAfter(Duration when, Closure *closure) override
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:23