Home
last modified time | relevance | path

Searched refs:testClock (Results 1 – 1 of 1) sorted by relevance

/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DPollingCheckTest.java31 private PollingCheck.PollingCheckClock testClock; field in PollingCheckTest
35 testClock = new TestClock(); in setUp()
40 assertTrue("check failed", PollingCheck.check(testClock, 10, 100, () -> true)); in testCheckSuccess()
46 assertTrue("check failed", PollingCheck.check(testClock, 10, 1000, () -> ++i[0] == 3)); in testCheckEventualSuccess()
48 assertEquals("Time advanced unexpectedly", 20, testClock.currentTimeMillis()); in testCheckEventualSuccess()
56 PollingCheck.check(testClock, 10, 50, () -> i[0]++ == 9)); in testCheckTimeout()
63 PollingCheck.check(testClock, 10, 100, () -> false)); in testCheckFailure()
70 testClock, in testCheckChecksConditionAtLeastOnce()
84 testClock, in testLongConditionCheck()
88 testClock.sleep(5); // condition takes some time to evaluate in testLongConditionCheck()
[all …]