RoomHarness
data class RoomHarness(val hostFactory: RoomFactory, val joinerFactory: RoomFactory, val faults: RoomConformanceSuite.FaultInjection, val clock: () -> Instant, val advanceClock: (Long) -> Unit)
A harness that bundles host and joiner RoomFactorys plus its FaultInjection fixture.
hostFactory and joinerFactory are distinct devices, each with its own device key, and every room joinerFactory makes is a device of its own: rooms that share one key store are one device, which the host's key-to-seat table treats as one key holding several seats (#3159).
clock and advanceClock are shared across the harness so the injected clock stays in sync with virtual-time advancement.
Constructors
Link copied to clipboard
constructor(hostFactory: RoomFactory, joinerFactory: RoomFactory, faults: RoomConformanceSuite.FaultInjection, clock: () -> Instant, advanceClock: (Long) -> Unit)