| // Realm for integration test that provisions an Echo client and service and eagerly runs the |
| // client. |
| { |
| include: [ |
| "//sdk/lib/diagnostics/syslog/client.shard.cml", |
| "//src/sys/test_runners/rust/default.shard.cml", |
| ], |
| program: { |
| binary: "bin/routing_integration_test", |
| }, |
| |
| // Two children: a server and client. `echo_client` exposes the `Trigger` service which the |
| // test will use to receive a message. |
| children: [ |
| { |
| name: "echo_server", |
| url: "fuchsia-pkg://fuchsia.com/routing_integration_test#meta/echo_server.cm", |
| }, |
| { |
| name: "echo_client", |
| url: "fuchsia-pkg://fuchsia.com/routing_integration_test#meta/trigger.cm", |
| }, |
| ], |
| use: [ |
| // Needed to bind to children |
| { |
| protocol: "fuchsia.sys2.Realm", |
| from: "framework", |
| }, |
| ], |
| |
| // Route Echo service from server to client. |
| offer: [ |
| { |
| protocol: "fidl.examples.routing.echo.Echo", |
| from: "#echo_server", |
| to: "#echo_client", |
| }, |
| ], |
| } |