| // 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", | |
| }, | |
| { | |
| // Route the test configuration defaults defined in config.capabilities.shard.cml. | |
| config: [ | |
| "fuchsia.time.config.BackOffTimeBetweenPullSamplesSec", | |
| "fuchsia.time.config.DisableDelays", | |
| "fuchsia.time.config.HasRealTimeClock", | |
| "fuchsia.time.config.MaxFrequencyErrorPpm", | |
| "fuchsia.time.config.MinAcceptableBootTimeForUtcUpdateMinutes", | |
| "fuchsia.time.config.MinUtcReferenceToBackstopDiffMinutes", | |
| "fuchsia.time.config.PrimaryTimeSourceUrl", | |
| "fuchsia.time.config.PrimaryUsesPull", | |
| "fuchsia.time.config.ServeTestProtocols", | |
| "fuchsia.time.config.UtcStartAtStartup", | |
| "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", | |
| }, | |
| ], | |
| } |