commit | e75cf0ac168039c6a15edf5543d7fbd7578432bf | [log] [tgz] |
---|---|---|
author | Robert Horvath <robhor@google.com> | Mon Mar 23 14:46:25 2020 +0100 |
committer | Robert Horvath <robhor@google.com> | Mon Mar 23 16:37:13 2020 +0100 |
tree | 014d9e6608368cb090ea2d4eb7821b1bff3d6c25 | |
parent | 0a9aff3ac39cc1aa9641eabab0ad681a2ad1ebd7 [diff] |
Deterministic PowerManagerServiceTest To make PowerManagerServiceTest deterministic, remove dependency on real time clock by mocking it out. Use TestLooper, which allows making Handler behaviour deterministic as well. Test: atest PowerManagerServiceTest Bug: 152193749 Change-Id: I4d9cd686ac672261bbb038249c0358e451b58710