blob: c7c6dc3d2ac9d934f12a631c8d9019911c611e7b [file] [log] [blame]
// This is a CML shard, to be included by users of the fuchsia_component_test
// library
{
include: [ "syslog/client.shard.cml" ],
children: [
{
name: "fuchsia_component_test_framework_intermediary",
url: "fuchsia-pkg://fuchsia.com/fuchsia-component-test#meta/framework-intermediary.cm",
},
],
collections: [
{
name: "fuchsia_component_test_collection",
environment: "#realm_builder_env",
durability: "transient",
},
],
use: [
{
protocol: "fuchsia.sys2.Realm",
from: "framework",
},
],
offer: [
{
protocol: "fuchsia.logger.LogSink",
from: "parent",
to: [ "#fuchsia_component_test_framework_intermediary" ],
},
// [START collection_offers]
{
protocol: [
"fuchsia.diagnostics.ArchiveAccessor",
"fuchsia.logger.LogSink",
"fuchsia.sys2.EventSource",
],
from: "parent",
to: [ "#fuchsia_component_test_collection" ],
},
// [END collection_offers]
{
protocol: [
"fuchsia.sys.Environment",
"fuchsia.sys.Loader",
],
from: "parent",
to: [ "#fuchsia_component_test_framework_intermediary" ],
},
// These protocols are used by any nested component managers to
// proxy resolve and runner requests to realm builder
{
protocol: "fuchsia.component.runner.ComponentRunner",
from: "#fuchsia_component_test_framework_intermediary",
as: "fuchsia.component.runner.RealmBuilder",
to: [ "#fuchsia_component_test_collection" ],
},
{
protocol: "fuchsia.sys2.ComponentResolver",
from: "#fuchsia_component_test_framework_intermediary",
as: "fuchsia.component.resolver.RealmBuilder",
to: [ "#fuchsia_component_test_collection" ],
},
],
environments: [
{
name: "realm_builder_env",
extends: "realm",
runners: [
{
runner: "realm_builder",
from: "#fuchsia_component_test_framework_intermediary",
},
],
resolvers: [
{
resolver: "realm_builder_resolver",
from: "#fuchsia_component_test_framework_intermediary",
scheme: "realm-builder",
},
],
},
],
}