class EndpointHarness

Defined at line 49 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

Public Members

sync_completion doorbell_
queue expected_cancel_all_
queue expected_ring_doorbell_
queue expected_disable_endpoint_

Protected Members

unique_ptr ep_
SyncClient client_

Public Methods

void SetUp ()

Defined at line 51 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

void Init (uint8_t ep_addr, std::optional<fuchsia_hardware_usb_descriptor::EndpointType> ep_type)

Defined at line 62 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

void TearDown ()

Defined at line 77 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

void ExpectOneCompletion (zx_status_t expected)

The deadline is generous because these tests also run on emulators without KVM and on

sanitizer builds. Without it, a request the driver never completes would hang here rather

than fail.

Defined at line 97 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

FakeTRB * CreateTRB ()

Defined at line 106 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

FakeTRB * CreateTRBs (size_t count)

Defined at line 114 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

fdf_testing::ForegroundDriverTest<EmptyTestConfig> & driver_test ()

Defined at line 123 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc

const std::list<std::unique_ptr<FakeTRB>> & trbs ()

Defined at line 124 of file ../../src/devices/usb/drivers/xhci/tests/xhci-endpoint-test.cc