class FakeEndpoint
Defined at line 22 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 24 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 30 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 37 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 53 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 66 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
void CancelAll (CancelAllCompleter::Sync & completer)
CancelAll: succeeds without checking anything.
Defined at line 91 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 93 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 107 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 115 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h
size_t pending_request_count ()
Defined at line 119 of file ../../src/devices/usb/lib/usb-endpoint/testing/fake-usb-endpoint-server.h