class DispatcherTest
Defined at line 40 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
Public Members
DriverRuntimeEnv runtime_env
fdf_handle_t local_ch_
fdf_handle_t remote_ch_
fdf_handle_t local_ch2_
fdf_handle_t remote_ch2_
vector dispatchers_
vector observers_
Public Methods
void StartAdditionalManagedThread ()
Starts a new thread on the default thread pool.
For tests which want to test running with a specific number of threads.
Defined at line 54 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void RegisterAsyncReadSignal (fdf_handle_t read_channel, fdf_dispatcher_t * dispatcher, fbl::Mutex * lock, sync_completion_t * completion)
Registers an async read, which on callback will acquire |lock|, read from |read_channel| and
signal |completion|.
Defined at line 69 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void WaitUntilIdle (fdf_dispatcher_t * dispatcher)
Defined at line 80 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void SetUp ()
Defined at line 102 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void TearDown ()
Defined at line 121 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void CreateDispatcher (uint32_t options, std::string_view name, std::string_view scheduler_role, const void * owner, fdf_dispatcher_t ** out_dispatcher)
Creates a dispatcher and returns it in |out_dispatcher|.
The dispatcher will automatically be destroyed in |TearDown|.
Defined at line 147 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void CreateUnmanagedDispatcher (uint32_t options, std::string_view name, const void * owner, fdf_dispatcher_t ** out_dispatcher)
Defined at line 164 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void RegisterAsyncReadReply (fdf_handle_t read_channel, fdf_dispatcher_t * dispatcher, fbl::Mutex * lock, fdf_handle_t reply_channel, sync_completion_t * completion)
Registers an async read, which on callback will acquire |lock| and read from |read_channel|.
If |reply_channel| is not null, it will write an empty message.
If |completion| is not null, it will signal before returning from the callback.
Defined at line 181 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc
void RegisterAsyncReadBlock (fdf_handle_t ch, fdf_dispatcher_t * dispatcher, libsync::Completion * entered_callback, libsync::Completion * complete_blocking_read)
Registers an async read, which on callback will signal |entered_callback| and block
until |complete_blocking_read| is signaled.
Defined at line 207 of file ../../src/devices/bin/driver_runtime/dispatcher_test.cc