class TestDevice
Defined at line 65 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
Public Methods
void TestDevice (zx_device_t * parent)
Defined at line 67 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<TestDevice *> Bind (zx_device_t * parent)
Bind call from which would come from the driver:
Defined at line 75 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<mock_ddk::Protocol> GetProtocol (uint32_t proto_id)
Defined at line 87 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<std::vector<uint8_t>> GetMetadata (uint32_t type, size_t max_size)
Defined at line 96 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<zx::vmo> GetConfigVmo ()
Defined at line 107 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<std::vector<uint8_t>> LoadFirmware (std::string_view path)
Defined at line 116 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
zx::result<TestDevice *> AddChild ()
Add a child device with this device as the parent:
Defined at line 133 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void RemoveChild ()
Removes a child, if one exists:
Defined at line 142 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void DdkInit (ddk::InitTxn txn)
Methods required by the ddk mixins
Defined at line 150 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void DdkUnbind (::ddk::UnbindTxn txn)
Defined at line 151 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void DdkSuspend (ddk::SuspendTxn txn)
Defined at line 152 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void DdkRelease ()
Defined at line 153 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc
void DdkChildPreRelease (void * )
Defined at line 157 of file ../../src/devices/testing/mock-ddk/mock-ddk-test.cc