Searched refs:fakeTicker (Results 1 – 2 of 2) sorted by relevance
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderGwtTest.java | 43 private FakeTicker fakeTicker; field in CacheBuilderGwtTest 49 fakeTicker = new FakeTicker(); in setUp() 135 .ticker(fakeTicker) in testExpireAfterAccess() 141 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 143 fakeTicker.advance(1, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 145 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 153 .ticker(fakeTicker) in testExpireAfterWrite() 160 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 165 fakeTicker.advance(2, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 173 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterWrite() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderGwtTest.java | 43 private FakeTicker fakeTicker; field in CacheBuilderGwtTest 49 fakeTicker = new FakeTicker(); in setUp() 135 .ticker(fakeTicker) in testExpireAfterAccess() 141 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 143 fakeTicker.advance(1, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 145 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 153 .ticker(fakeTicker) in testExpireAfterWrite() 160 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 165 fakeTicker.advance(2, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 173 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterWrite() [all …]
|