commit | ced62779fb5f48d36f81eea4b016d83b0eb44799 | [log] [tgz] |
---|---|---|
author | Beth Thibodeau <ethibodeau@google.com> | Mon Apr 26 14:01:16 2021 -0400 |
committer | Beth Thibodeau <ethibodeau@google.com> | Thu Apr 29 15:49:37 2021 -0400 |
tree | d98db09747ca9687819f24974c7817433adefaea | |
parent | 4a225373ec18d0625d2e71e8d79bb54cfc69a7f0 [diff] |
Fix timing issue for flaky tests Inject SystemClock so that we can mock it in tests and ensure the clock will always advance. Also switched to using elapsedRealtime, which is guaranteed to be monotonic Fixes: 182813365 Test: atest MediaDataManagerTest Change-Id: I133fb48e8242dc7f8e75bfa5c585c8b6142963aa