| // Realm for integration test that creates and binds to component instances in a collection. |
| { |
| include: [ |
| "//sdk/lib/diagnostics/syslog/client.shard.cml", |
| "//src/sys/test_runners/rust/default.shard.cml", |
| ], |
| program: { |
| binary: "bin/collections_integration_test", |
| }, |
| children: [ |
| { |
| name: "echo_server", |
| url: "fuchsia-pkg://fuchsia.com/collections_integration_test#meta/echo_server.cm", |
| }, |
| ], |
| collections: [ |
| { |
| name: "coll", |
| durability: "transient", |
| }, |
| ], |
| use: [ |
| // Needed to bind to and create children |
| { |
| protocol: "fuchsia.sys2.Realm", |
| from: "framework", |
| }, |
| ], |
| |
| // Route Echo service from server to collection. |
| offer: [ |
| { |
| protocol: "fidl.examples.routing.echo.Echo", |
| from: "#echo_server", |
| to: "#coll", |
| }, |
| { |
| protocol: "fuchsia.logger.LogSink", |
| from: "parent", |
| to: "#coll", |
| }, |
| ], |
| } |