Fake Platform
Host-only in-memory PlatformAdapter for tests and the dev harness.
Functions
Link copied to clipboard
Every apply call, in order.
Link copied to clipboard
How many writes were dropped so far.
Link copied to clipboard
The next
n writes return normally but the ECU keeps its value and reports nothing.Link copied to clipboard
The next
n writes throw IllegalStateException; checked before drop.Link copied to clipboard
Whether an accepted write that leaves the ECU's value unchanged is reported too (default true).
Link copied to clipboard
Whether an accepted write publishes ParkingSoundChanged before
apply returns (default true).Link copied to clipboard
Simulates the car (not the SDK) changing the persisted value; publishes ParkingSoundChanged.
Link copied to clipboard
The persisted ECU value.
Link copied to clipboard
Simulates the adapter learning (or losing) features after start, e.g.
Link copied to clipboard
Simulates the ignition changing; publishes IgnitionChanged.
Link copied to clipboard
Does what the real DSI proxy does for a stock call: asks the hook table whether the point is vetoed, records the observation, and reports whether the call would be forwarded to the stock service.