Crate realmbuilder_mock_helpers

Source

Functionsยง

add_fidl_service_handler
Adds a handler for the FIDL service S which relays the ServerEnd of the service connection request to the provided sender. Note: This method does not process requests from the service connection. It only relays the stream to the `sender.
mock_component
A mock component that provides the generic service S. The request stream of the service is processed and any requests relayed to the provided sender.
mock_dev
Sets up a mock dev/ directory with the provided dev_directory topology.
process_request_stream
Process requests received in the stream and relay them to the provided sender. Logs incoming requests prefixed with the tag.
provide_bt_gap_uses
Exposes implementations of the the services used by bt-gap in the provided ServiceFs.
stateless_mock_responder
A mock component serving a protocol S on handles. Specifically, this services S by calling responder for every request of every client connection to S.