Records
Functions
-
void SetParent (zx_device_t * parent)Should be called by the driver run test hook before running the tests.
Defined at line 17 of file ../../zircon/system/ulib/driver-unit-test/utils.cc
-
zx_device_t * GetParent ()Retrieves the device set by |SetParent|.
Defined at line 19 of file ../../zircon/system/ulib/driver-unit-test/utils.cc
-
bool RunZxTests (const char * namezx_device_t * parentzx_handle_t channel)Helper function for setting up and running driver unit tests. This should be called
from the driver's run_unit_test hook.
This sets the parent pointer and test logger.
- |name| is an identifier for the test group.
- |parent| is the parent device of the driver.
- |channel| is where test logger output will be sent to.
This function takes ownership of |channel|.
Defined at line 21 of file ../../zircon/system/ulib/driver-unit-test/utils.cc