class FakeI2cHid
Defined at line 51 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc
Public Methods
void SetReportDescriptor (std::vector<uint8_t> report_desc)
Sets the report descriptor. Must be called before binding the driver because
the driver reads |hiddesc_| on bind.
Defined at line 55 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc
void SetHidDescriptorFailure (zx_status_t status)
Calling this function will make the FakeI2cHid driver return an error when the I2cHidbus
tries to read the HidDescriptor. This so we can test that the I2cHidbus driver shuts
down correctly when it fails to read the HidDescriptor.
Defined at line 64 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc
void SendReport (std::vector<uint8_t> report)
Defined at line 66 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc
void SendReportWithLength (std::vector<uint8_t> report, size_t len)
This lets us send a report with an incorrect length.
Defined at line 71 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc
void WaitUntilReset ()
Defined at line 84 of file ../../src/ui/input/drivers/i2c-hid/i2c-hid-test.cc