Google is committed to advancing racial equity for Black communities. See how.

fuchsia.realm.builder

PROTOCOLS

FrameworkIntermediary

Defined in fuchsia.realm.builder/realm_builder.fidl

The protocol used to coordinate state between the realm builder library and the framework intermediary child component. This is necessary because the realm builder library is likely running in a component using a test runner, and thus the outgoing directory handle is unavailable and the library cannot expose the runner and resolver services itself. To work around this, a child component using the elf runner exposes these services and this protocol is used to interact with the child.

OnMockRunRequest

The component framework is requesting that a mock component start running

Response

NameType
mock_id string[1000]
start_info MockComponentStartInfo

OnMockStopRequest

The component framework is requesting that a mock component stop running

Response

NameType
mock_id string[1000]

RegisterDecl

Registers a new component declaration, and returns the URL at which the framework intermediary will make this declaration available to the framework.

Request

NameType
decl fuchsia.sys2/ComponentDecl

Response

NameType
result FrameworkIntermediary_RegisterDecl_Result

RegisterMock

Registers a new mock component. When a mock component with the returned ID in its program.mock_id field is run, OnMockRunRequest is called over the same channel that the mock was registered on.

Request

NameType

Response

NameType
mock_id string[1000]

STRUCTS

FrameworkIntermediary_RegisterDecl_Response

Defined in fuchsia.realm.builder/realm_builder.fidl

NameTypeDescriptionDefault
component_url string[4096] No default

TABLES

MockComponentStartInfo

Defined in fuchsia.realm.builder/realm_builder.fidl

The handles a mock component uses to consume capabilities from and provide capabilities to the framework.

OrdinalNameTypeDescription
1 ns vector<fuchsia.component.runner/ComponentNamespaceEntry>[32]
2 outgoing_dir request<fuchsia.io/Directory>

UNIONS

FrameworkIntermediary_RegisterDecl_Result

Defined in fuchsia.realm.builder/realm_builder.fidl

NameTypeDescription
response FrameworkIntermediary_RegisterDecl_Response
err zx/status

CONSTANTS

NameValueTypeDescription
MAX_MOCK_ID_LENGTH 1000 uint32