flutter_background_location_tracker_testing library
Pure-Dart fakes for host unit and widget tests.
Import this library only from tests. The production package does not depend on a platform channel, database, filesystem, map, or state-management library when these fakes are used.
Classes
- DeterministicTrackingClock
- A wall and monotonic clock that advances only when the test asks it to.
- FakeExportFileWriter
- In-memory export writer with optional deterministic failure injection.
- FakeTrackerAdapter
- Deterministic platform adapter for testing a real TrackingClient.
- FakeTrackingCall
- One recorded fake call with sanitized arguments.
- FakeTrackingController
- In-memory implementation of the normal host facade.
- SyntheticTrackingRoute
- Generated route samples around a synthetic origin, never a participant's real trace.
- TemporaryTrackRepositoryFixture
- Temporary canonical database fixture. Pass an FFI database factory in pure Dart tests or the platform factory in integration tests.
- TrackingPermissionFixtures
- Common permission fixtures for readiness and settings tests.