| // Copyright 2022 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. |
| // Realm for integration test that offers a child a protocol and directory from component |
| // manager's namespace. |
| { |
| include: [ "syslog/client.shard.cml" ], |
| program: { |
| runner: "elf", |
| binary: "bin/namespace_capabilities_integration_test_root", |
| }, |
| |
| // `trigger` exposes the `Trigger` service which the test will use to |
| // receive a message. |
| children: [ |
| { |
| name: "trigger", |
| url: "#meta/trigger.cm", |
| }, |
| ], |
| capabilities: [ |
| { protocol: "fuchsia.test.Suite" }, |
| ], |
| use: [ |
| { |
| protocol: "fidl.test.components.Trigger", |
| from: "#trigger", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ |
| "fidl.examples.routing.echo.Echo", |
| "fuchsia.logger.LogSink", |
| ], |
| from: "parent", |
| to: "#trigger", |
| }, |
| { |
| directory: "test-pkg", |
| from: "parent", |
| to: "#trigger", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "fuchsia.test.Suite", |
| from: "self", |
| }, |
| ], |
| } |