class FakeEndpoint
Defined at line 27 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
FakeEndpoint generally should not be used unless accessed from FakeUsbFidlProvider, but may be
overridden for specific use-cases.
Public Methods
void ~FakeEndpoint ()
Defined at line 29 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void Connect (async_dispatcher_t * dispatcher, fidl::ServerEnd<fuchsia_hardware_usb_endpoint::Endpoint> server)
Defined at line 35 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void RequestComplete (zx_status_t status, size_t actual)
RequestComplete: responds to the next request. If there are any requests in the request queue,
respond to that. If not, save this response and respond with the next incoming request.
Defined at line 42 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void GetInfo (GetInfoCompleter::Sync & completer)
GetInfo: responds according to previous calls of ExpectGetInfo() and returns
* error status: if previous call of ExpectedGetInfo() indicated that the status to return is
not ZX_OK
* info: if previous call of ExpectedGetInfo() indicated that the status to return is ZX_OK,
returns the info from ExpectedGetInfo()
Defined at line 58 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void QueueRequests (QueueRequestsRequest & request, QueueRequestsCompleter::Sync & completer)
QueueRequests: adds requests to a queue, which will be replied to when RequestComplete() is
called or if there is already a completion saved from before.
Defined at line 71 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void CancelAll (CancelAllCompleter::Sync & completer)
Defined at line 96 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void RegisterVmos (RegisterVmosRequest & request, RegisterVmosCompleter::Sync & completer)
RegisterVmos: succeeds without checking anything.
Defined at line 112 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void UnregisterVmos (UnregisterVmosRequest & request, UnregisterVmosCompleter::Sync & completer)
UnregisterVmos: succeeds without checking anything.
Defined at line 126 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void ExpectGetInfo (zx_status_t status, fuchsia_hardware_usb_endpoint::EndpointInfo info)
ExpectGetInfo
* status: status to return on GetInfo()
* info: if status is ZX_OK, return this info.
Defined at line 134 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
size_t pending_request_count ()
Defined at line 138 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h