Project: /_project.yaml Book: /_book.yaml

fuchsia.device.mock

PROTOCOLS

MockDevice {:#MockDevice}

Defined in fuchsia.device.mock/mock-device.fidl

Interface for controlling a mock device. The test suite will implement this interface. Any method that returns a list of actions is interpreted as requesting the corresponding hook to perform that list of actions in order.

Bind {:#Bind}

record.device_id corresponds to the parent here.

Request

Response

Release {:#Release}

Request

GetProtocol {:#GetProtocol}

Request

Response

Open {:#Open}

Request

Response

Close {:#Close}

Request

Response

Unbind {:#Unbind}

Request

Response

Read {:#Read}

Request

Response

Write {:#Write}

Request

Response

GetSize {:#GetSize}

Request

Response

Suspend {:#Suspend}

Request

Response

Resume {:#Resume}

Request

Response

Message {:#Message}

Request

Response

Rxrpc {:#Rxrpc}

Request

Response

AddDeviceDone {:#AddDeviceDone}

Notification that the requested action was done

Request

RemoveDeviceDone {:#RemoveDeviceDone}

Request

MockDeviceThread {:#MockDeviceThread}

Defined in fuchsia.device.mock/mock-device.fidl

Interface for requesting a mock device thread do something. The mock device implements this interface. Closing the interface causes the thread to exit.

PerformActions {:#PerformActions}

Perform the actions in the given list. Threads may not create other threads.

Request

AddDeviceDone {:#AddDeviceDone}

Notification that the requested action was done

Response

RemoveDeviceDone {:#RemoveDeviceDone}

Response

STRUCTS

HookInvocation {:#HookInvocation}

Defined in fuchsia.device.mock/mock-device.fidl

A record of the invocation of a hook

RemoveDeviceAction {:#RemoveDeviceAction}

Defined in fuchsia.device.mock/mock-device.fidl

Marker struct for remove action

AddDeviceAction {:#AddDeviceAction}

Defined in fuchsia.device.mock/mock-device.fidl

Request to add a new child device

UNIONS

Action {:#Action}

Defined in fuchsia.device.mock/mock-device.fidl

What a hook should do.

CONSTANTS