blob: dcb91660a70513439c13649a76c8ff26ae0c42db [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
include: [
"inspect/offer.shard.cml",
"syslog/offer.shard.cml",
],
children: [
// This child tries to use the fidl.test.component.Trigger capability,
// which the parent (this component) does not offer.
{
name: "child",
url: "#meta/use-unoffered.cm",
startup: "eager",
},
// This child tries to use the fidl.test.component.Trigger capability,
// which the parent (this component) does not offer.
{
name: "child-with-optional-use",
url: "#meta/optional-use-unoffered.cm",
startup: "eager",
},
// Subtree with errors where a parent doesn't correctly route
// a capability from other components to the child.
{
name: "offers-to-children-unavailable",
url: "#meta/offers-to-children-unavailable.cm",
startup: "eager",
},
// Subtree with errors where a parent doesn't correctly route
// a capability from other components to the child, but the child
// has an optional use.
{
name: "offers-to-children-unavailable-but-optional",
url: "#meta/offers-to-children-unavailable-but-optional.cm",
startup: "eager",
},
// This child optionally uses a capability, and the parent offers it
// from void.
{
name: "optional-use-from-void",
url: "#meta/optional-use-from-void.cm",
startup: "eager",
},
],
offer: [
{
protocol: "fidl.test.components.Trigger",
from: "void",
to: "#optional-use-from-void",
availability: "optional",
},
],
}