| { |
| program: { |
| binary: "bin/static_event_stream_trigger_server", |
| }, |
| children: [ |
| { |
| name: "echo_server", |
| url: "fuchsia-pkg://fuchsia.com/events_integration_test#meta/echo_server.cm", |
| startup: "lazy", |
| }, |
| ], |
| capabilities: [ |
| { protocol: "fidl.test.components.Trigger" }, |
| ], |
| use: [ |
| { runner: "elf" }, |
| { |
| protocol: [ "fuchsia.sys2.BlockingEventSource" ], |
| }, |
| { |
| protocol: [ "fuchsia.logger.LogSink" ], |
| }, |
| { |
| protocol: "fidl.examples.routing.echo.Echo", |
| from: "framework", |
| }, |
| { |
| event: [ |
| "capability_routed", |
| "resolved", |
| "started", |
| ], |
| from: "framework", |
| }, |
| { |
| event: [ "capability_requested" ], |
| from: "framework", |
| |
| // TODO(fxbug.dev/56604): This filter should take the capability name, not path. |
| filter: { path: "/svc/fidl.test.components.Trigger" }, |
| }, |
| { |
| event_stream: [ "capability_requested" ], |
| path: "/svc/fuchsia.sys2.EventStream", |
| }, |
| { |
| event_stream: [ "capability_requested" ], |
| path: "/svc/second_stream", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "fidl.test.components.Trigger", |
| from: "self", |
| }, |
| { |
| protocol: "fidl.examples.routing.echo.Echo", |
| from: "#echo_server", |
| }, |
| ], |
| } |