PROTOCOLS
FrameworkIntermediary
Defined in fuchsia.topology.builder/topology_builder.fidl
The protocol used to coordinate state between the topology builder library and the framework intermediary child component. This is necessary because the topology 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
Name | Type |
---|---|
mock_id |
string[1000]
|
start_info |
MockComponentStartInfo
|
OnMockStopRequest
The component framework is requesting that a mock component stop running
Response
Name | Type |
---|---|
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
Name | Type |
---|---|
decl |
fuchsia.sys2/ComponentDecl
|
Response
Name | Type |
---|---|
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
Name | Type |
---|
Response
Name | Type |
---|---|
mock_id |
string[1000]
|
STRUCTS
FrameworkIntermediary_RegisterDecl_Response
Defined in fuchsia.topology.builder/topology_builder.fidl
Name | Type | Description | Default |
---|---|---|---|
component_url |
string[4096]
|
No default |
TABLES
MockComponentStartInfo
Defined in fuchsia.topology.builder/topology_builder.fidl
The handles a mock component uses to consume capabilities from and provide capabilities to the framework.
Ordinal | Name | Type | Description |
---|---|---|---|
1 | ns |
vector<fuchsia.component.runner/ComponentNamespaceEntry>[32]
|
|
2 | outgoing_dir |
request<fuchsia.io/Directory>
|
UNIONS
FrameworkIntermediary_RegisterDecl_Result
Defined in fuchsia.topology.builder/topology_builder.fidl
Name | Type | Description |
---|---|---|
response |
FrameworkIntermediary_RegisterDecl_Response
|
|
err |
zx/status
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
MAX_MOCK_ID_LENGTH |
1000
|
uint32 |