class DriverUnderTestBase
Defined at line 24 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.h
The |DriverUnderTest| is a templated class so we pull out the non-template specifics into this
base class so the implementation does not have to live in the header.
Public Methods
void DriverUnderTestBase (DriverRegistration driver_registration_symbol)
Defined at line 9 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
void ~DriverUnderTestBase ()
Defined at line 19 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
void on_fidl_error (fidl::UnbindInfo error)
fdf::WireAsyncEventHandler
<fuchsia
_driver_framework::Driver>
Defined at line 25 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
void handle_unknown_event (fidl::UnknownEventMetadata<fuchsia_driver_framework::Driver> metadata)
fdf::WireAsyncEventHandler
<fuchsia
_driver_framework::Driver>
Defined at line 34 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
DriverRuntime::AsyncTask<zx::result<>> Start (fdf::DriverStartArgs start_args)
Start the driver. This is an asynchronous operation.
Use |DriverRuntime::RunToCompletion| to await the completion of the async task.
The resulting zx::result is the result of the start operation.
Defined at line 37 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
DriverRuntime::AsyncTask<zx::result<>> PrepareStop ()
PrepareStop the driver. This is an asynchronous operation.
Use |DriverRuntime::RunToCompletion| to await the completion of the async task.
The resulting zx::result is the result of the prepare stop operation.
Defined at line 61 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
zx::result<> Stop ()
Stop the driver. The PrepareStop operation must have been completed before Stop is called.
Returns the result of the stop operation.
Defined at line 71 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.cc
Protected Methods
template <typename Driver>
Driver * GetDriver ()
Defined at line 57 of file ../../sdk/lib/driver/testing/cpp/internal/driver_lifecycle.h