Package-level declarations

Types

Link copied to clipboard
class FakeRoom(val selfId: PeerId = PeerId("self"), initialRole: SessionRole = SessionRole.Host, initialRoster: Set<Member> = emptySet(), initialResumeToken: ResumeToken? = null) : Room

A test double for Room with test-driver helpers for roster manipulation, event delivery, and outgoing-frame inspection.

Link copied to clipboard

A test double for RoomFactory that returns FakeRoom instances.

Functions

Link copied to clipboard
suspend fun fakeRoomPair(hostId: PeerId = PeerId("host"), joinerId: PeerId = PeerId("joiner")): Pair<FakeRoom, FakeRoom>

Build a wired pair of FakeRooms whose FakeRoom.broadcast calls cross-deliver into the other room's Room.incoming, matching the behaviour of a real two-peer room.