Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f861619b authored by Michael Wright's avatar Michael Wright
Browse files

Allow for replaceable clock within Looper

Handler, Looper, and MessageQueue are all difficult to test since their
internal implementations implicitly rely on the system clock. By making
their clock replaceable in tests, we can make their behavior more
deterministic, allowing for less flaky tests overall.

Also, update TestLooper to take advantage of the replaceable clock.

Bug: 184781936
Test: atest LooperTest MessageQueueTest HandlerTest
Change-Id: I215d2eab99888a162175c37157d7be2be911b96d
parent 0c867c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment