public final class AutoAdvancingFakeClock extends FakeClock
FakeClockextension which automatically advances time whenever an empty message is enqueued at a future time. The clock time is advanced to the time of the message. Only the first Handler sending messages at a future time will be allowed to advance time to ensure there is only one "time master". This should usually be the Handler of the internal playback loop.
|Constructor and Description|
|Modifier and Type||Method and Description|
Adds an empty handler message to list of pending messages.
addHandlerMessageAtTime, advanceTime, createHandler, elapsedRealtime, sleep, uptimeMillis