| // Copyright 2023 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. |
| { |
| include: [ |
| "//sdk/lib/sys/component/realm_builder.shard.cml", |
| "//src/sys/time/timekeeper/config.capabilities.shard.cml", |
| "inspect/client.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| runner: "elf", |
| binary: "bin/timekeeper-test-realm-factory", |
| }, |
| capabilities: [ |
| { |
| protocol: [ |
| "fuchsia.testing.FakeClock", |
| "fuchsia.testing.FakeClockControl", |
| "test.time.realm.RealmFactory", |
| ], |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ |
| "fuchsia.component.Binder", |
| "fuchsia.diagnostics.ArchiveAccessor", |
| "fuchsia.process.Launcher", |
| ], |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| storage: "data", |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| storage: "cache", |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| event_stream: [ "capability_requested" ], |
| from: "parent", |
| to: "#realm_builder", |
| }, |
| { |
| // For the time being we have no need to route this from "parent". |
| config: "fuchsia.time.config.WritableUTCTime", |
| from: "self", |
| to: "#realm_builder", |
| }, |
| ], |
| expose: [ |
| { |
| protocol: [ |
| // This should be the only protocol exposed from the |
| // realm created by this realm factory. |
| "test.time.realm.RealmFactory", |
| ], |
| from: "self", |
| }, |
| ], |
| } |