class UsbAdbTest

Defined at line 459 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

Public Members

optional hierarchy_
BackgroundDriverTest driver_test_
WireSyncClient client_
SyncClient iface_client_
bool driver_stopped_

Public Methods

void ReadInspect (const inspect::Inspector & inspector)

Defined at line 461 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

const inspect::Hierarchy & hierarchy ()

Defined at line 464 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

fidl::WireSyncClient<fadb::UsbAdbImpl> NormalStartAdb ()

Defined at line 468 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void SetUp ()

Defined at line 479 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void TearDown ()

Defined at line 499 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void EnsureIfaceBound ()

Defined at line 517 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void EnableUsb ()

Defined at line 519 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void WaitConfigured ()

Defined at line 541 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void SafeStopDriver ()

Defined at line 573 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void WaitForState (State target_state)

Defined at line 583 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void ExpectHandleOneEventSafe (fidl::WireSyncClient<fadb::UsbAdbImpl> & client, EventHandler & handler)

Defined at line 592 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void SendTestData (fidl::WireSyncClient<fadb::UsbAdbImpl> & usb_impl, size_t size)

Defined at line 606 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void ExpectReceiveData (size_t size)

Defined at line 639 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void CancelAllUsbRequestsOnDeconfigure ()

Safety net that drains any fake endpoint requests still outstanding at

deconfigure time. The driver now issues its own CancelAll() at the start of

teardown, which is what actually drains requests, and Deconfigure() only runs

once all requests have already been returned. This therefore matters only via

set_on_deconfigured()'s immediate-callback path, when a previous teardown has

already set deconfigured_.

Defined at line 655 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc

void StartHostSession (fidl::WireSyncClient<fadb::UsbAdbImpl> & usb_impl)

Simulates the host starting an adb session: the host's CNXN is passed to the client, and the

device replies. Defined below, after the adb header helpers.

Defined at line 822 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc