| // 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. |
| // Component test example which injects echo_server and launches echo_gtest_client |
| // which is a test which connects to this injected server, tests it and |
| // passes back result using `fuchsia.test.Suite` |
| { |
| include: [ |
| "inspect/offer.shard.cml", |
| "syslog/offer.shard.cml", |
| ], |
| children: [ |
| { |
| name: "echo_server", |
| url: "fuchsia-pkg://fuchsia.com/gtest-runner-example-tests#meta/echo_server.cm", |
| }, |
| { |
| name: "echo_gtest_client", |
| url: "fuchsia-pkg://fuchsia.com/gtest-runner-example-tests#meta/echo_gtest_client.cm", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: "fidl.examples.routing.echo.Echo", |
| from: "#echo_server", |
| to: "#echo_gtest_client", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "fuchsia.test.Suite", |
| from: "#echo_gtest_client", |
| }, |
| ], |
| } |