| // Copyright 2021 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. | |
| // [START example_snippet] | |
| { | |
| // [START shard_include] | |
| include: [ | |
| "//src/sys/test_runners/rust/default.shard.cml", | |
| "syslog/client.shard.cml", | |
| ], | |
| // Information about the program to run. | |
| program: { | |
| // The binary to run for this component. | |
| binary: "bin/echo_integration_test_rust", | |
| }, | |
| // [END shard_include] | |
| // Child components orchestrated by the integration test. | |
| children: [ | |
| { | |
| name: "echo_server", | |
| url: "#meta/echo_server.cm", | |
| }, | |
| ], | |
| // Capabilities used by this component. | |
| use: [ | |
| { | |
| protocol: [ "fidl.examples.routing.echo.Echo" ], | |
| from: "#echo_server", | |
| }, | |
| ], | |
| // Capabilities required by components under test. | |
| offer: [ | |
| { | |
| dictionary: "diagnostics", | |
| from: "parent", | |
| to: "#echo_server", | |
| }, | |
| ], | |
| } | |
| // [END example_snippet] |