diff options
author | Beth Thibodeau <ethibodeau@google.com> | 2021-04-26 14:01:16 -0400 |
---|---|---|
committer | Beth Thibodeau <ethibodeau@google.com> | 2021-04-29 15:49:37 -0400 |
commit | ced62779fb5f48d36f81eea4b016d83b0eb44799 (patch) | |
tree | d98db09747ca9687819f24974c7817433adefaea /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions