FakeServiceManager
An in-memory ServiceManager for tests — every ServiceType reports the same mockStatus (or mockEnabled, its boolean view) until told otherwise; there is no per-service override because no real consumer of this project has needed one yet. Add setStatus the moment one does, following FakeGrantManager's per-permission pattern.
Constructors
Properties
Link copied to clipboard
True once isServiceEnabled has been called.
Link copied to clipboard
Boolean view of mockStatus — setting it maps to ServiceStatus.ENABLED/ServiceStatus.DISABLED.
Link copied to clipboard
Link copied to clipboard
True once openServiceSettings has been called.
Link copied to clipboard
Every ServiceType checked, via either isServiceEnabled or checkServiceStatus.
Link copied to clipboard
When non-null, every call throws this instead of returning.
Link copied to clipboard
Simulates a slow platform call — every call suspends for this long first.
Functions
Link copied to clipboard
open suspend fun checkServiceStatus(service: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard