class UsbAdbEnvironment
Defined at line 122 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc
Public Members
DeviceServer device_server_
MockUsbFunction mock_usb_
FakeUsbFidlProvider fake_dev_
ServerBindingGroup usb_function_bindings_
Public Methods
zx::result<> Serve (fdf::OutgoingDirectory & to_driver_vfs)
Defined at line 124 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc
void EnableUsb ()
Call set_configured of usb adb to bring the interface online.
Defined at line 139 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc
void CancelAllUsbRxRequests ()
Defined at line 145 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc
void ExpectSetInterfaceAndCancelAllRxRequests ()
Expect that the driver will call SetInterface, and when it does so, call
CancelAllUsbRxRequests.
We call CancelAllUsbRxRequests only _after_ the driver calls SetInterface
in order to avoid a race condition where we cancel a request, only to have
the driver process the cancellation and send it back out again before
`StopAdb()` gets processed.
Defined at line 158 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc