| { |
| program: { |
| binary: "bin/rust_test_adapter", |
| args: ["/pkg/test/input_session_bin_test",], |
| }, |
| use: [ |
| { |
| runner: "elf" |
| }, |
| { |
| directory: "/dev/class/input-report", |
| from: "realm", |
| rights: [ |
| "r*", |
| ], |
| }, |
| { |
| protocol: [ |
| "/svc/fuchsia.test.events.EventSourceSync", |
| "/svc/fuchsia.sys2.Realm", |
| ], |
| from: "framework" |
| }, |
| { |
| protocol: [ |
| "/svc/fuchsia.process.Launcher", |
| "/svc/fuchsia.cobalt.LoggerFactory", |
| "/svc/fuchsia.logger.LogSink", |
| ], |
| }, |
| ], |
| expose: [ |
| { |
| protocol: "/svc/fuchsia.test.Suite", |
| from: "self", |
| }, |
| ], |
| offer: [ |
| { |
| protocol: "/svc/fuchsia.logger.LogSink", |
| from: "realm", |
| to: [ "#session" ], |
| }, |
| { |
| directory: "/dev/class/input-report", |
| from: "realm", |
| to: [ "#session" ], |
| rights: [ |
| "r*", |
| ], |
| }, |
| { |
| runner: "elf", |
| from: "realm", |
| to: [ "#session" ], |
| }, |
| ], |
| collections: [ |
| { |
| name: "session", |
| durability: "transient", |
| }, |
| ], |
| } |