FakeRadioInterfaceService
A test double for RadioInterfaceService that provides an in-memory implementation.
The connectionState here mirrors the transport-level semantics of the real implementation. In production, only MeshConnectionManager observes this flow; tests should verify that bridging behavior rather than consuming it directly from UI/feature test code (use FakeServiceRepository.connectionState instead). Address selection remains separate from transport admission: connect and an in-flight restartTransport publish a fresh monotonically increasing session generation.
Properties
No capture asset in tests; flip per-test when exercising replay-gated behaviour.
Set to true to simulate an admitted transport rejecting the byte handoff.
Thread-safe lifetime history of writes accepted across all admitted fake transport sessions.
Functions
Records bytes only while a transport session is admitted. Tests must select a non-null device address and call connect before sending; attempts outside that lifecycle return false and leave sentToRadio unchanged.