testing library

Test doubles of a Freedome media server (02f §13): FakeDomeServer implements contract API v1 in memory — in-process (fake.transports, works in widget tests and on the web) or bound to a port with FakeDomeServer.bind (dart:io: REST, plain WS, GraphQL, socket.io /v1, optional mDNS). Never use in production code.

Classes

FakeAccountServer
In-memory cloud account server.
FakeDomeServer
In-memory fake media server implementing contract API v1. See the library comment.
FakeDomeServerBinding
A FakeDomeServer listening on a TCP port (see FakeDomeServer.bind).
FakeEventBus
Event bus of the fake: seq numbering, ring buffer, fan-out to sessions.
FakeGraphqlWsSession
Server side of graphql-transport-ws limited to the events subscription (02e §6).
FakePrincipal
A principal known to the fake.
FakeSession
One realtime session (any protocol).
FakeWsSession
Server side of the freedome.v1 protocol (02e §8.1).