Records

Functions

  • std::shared_ptr<fdf_testing::DriverRuntime> GetDriverRuntime ()

    The driver runtime for all mock devices is shared.

    This is because there can only be one DriverRuntime,

    but users can create multiple root MockDevices.

    Defined at line 22 of file ../../src/devices/testing/mock-ddk/mock-device.cc

  • zx_status_t ReleaseFlaggedDevices (zx_device * device, async_dispatcher_t * dispatcher)

    Helper function:

    Performs the unbind and release of any device below the input device that

    has had device_async_remove called on it.

    returns an error if there was a problem waiting for UnbindReply to be called.

    This function will call unbind devices that are to be removed, and block

    until device_unbind_reply is called.

    Defined at line 342 of file ../../src/devices/testing/mock-ddk/mock-device.cc

  • void SetMinLogSeverity (fx_log_severity_t severity)

    Sets the global minimum severity for mock-ddk logging.

    Defined at line 29 of file ../../src/devices/testing/mock-ddk/libdriver-api.cc