blob: 9f6c72ceca981669d0851e37c0465e674ab9068f [file] [log] [blame] [edit]
// 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: "#meta/framework-intermediary.cm",
},
],
collections: [
{
name: "fuchsia_component_test_collection",
environment: "#realm_builder_env",
durability: "transient",
},
],
use: [
{
protocol: "fuchsia.component.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",
},
],
},
],
}