class DispatcherShutdownObserver

Defined at line 51 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

Example usage:

DispatcherShutdownObserver observer;

driver_runtime::Dispatcher* dispatcher;

zx_status_t status =

driver_runtime::Dispatcher::Create(..., observer.fdf_observer(),

&dispatcher

);

...

dispatcher->Destroy();

ASSERT_OK(observer.WaitUntilShutdown());

Public Methods

void DispatcherShutdownObserver (bool require_callback)

|require_callback| specifies whether the destructor will check that the callback was called.

This can be set to false for tests that expect construction of the dispatcher to fail,

but want to pass in a valid observer.

Defined at line 56 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

void ~DispatcherShutdownObserver ()

Defined at line 61 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

void DispatcherShutdownObserver (const DispatcherShutdownObserver & )

Defined at line 67 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

DispatcherShutdownObserver & operator= (const DispatcherShutdownObserver & )

Defined at line 68 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

DispatcherShutdownObserver & operator= (DispatcherShutdownObserver && )

Defined at line 69 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

void DispatcherShutdownObserver (DispatcherShutdownObserver && )

Defined at line 70 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

zx_status_t WaitUntilShutdown ()

Defined at line 72 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

fdf_dispatcher_shutdown_observer_t * fdf_observer ()

Returns the observer that can be passed to |driver_runtime::Dispatcher::Create|.

Defined at line 75 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h

fdf_dispatcher_t * shutdown_dispatcher ()

Returns the dispatcher that was shutdown, nullptr if no shutdown event has occurred.

Defined at line 78 of file ../../src/devices/bin/driver_runtime/runtime_test_case.h