Searched refs:CacheTesting (Results 1 – 9 of 9) sorted by relevance
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 24 import com.google.common.cache.CacheTesting.Receiver; 49 assertEquals(i, CacheTesting.getTotalSegmentSize(cache)); in testEviction_setMaxSegmentSize() 60 assertEquals(i, CacheTesting.getTotalSegmentSize(cache)); in testEviction_setMaxSegmentWeight() 76 CacheTesting.checkValidState(cache); in testEviction_maxSizeOneSegment() 92 CacheTesting.checkValidState(cache); in testEviction_maxWeightOneSegment() 107 assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache)); in testEviction_maxSize() 109 CacheTesting.processPendingNotifications(cache); in testEviction_maxSize() 111 CacheTesting.checkValidState(cache); in testEviction_maxSize() 127 assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache)); in testEviction_maxWeight() 129 CacheTesting.processPendingNotifications(cache); in testEviction_maxWeight() [all …]
|
D | CacheExpirationTest.java | 86 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in checkExpiration() 92 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in checkExpiration() 146 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in runExpirationTest() 161 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in runExpirationTest() 165 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in runExpirationTest() 271 CacheTesting.drainRecencyQueues(cache); in testExpirationOrder_access() 281 CacheTesting.drainRecencyQueues(cache); in testExpirationOrder_access() 323 CacheTesting.drainRecencyQueues(cache); in testExpirationOrder_write() 329 CacheTesting.drainRecencyQueues(cache); in testExpirationOrder_write() 372 CacheTesting.drainRecencyQueues(cache); in testExpirationOrder_writeAccess() [all …]
|
D | CacheBuilderTest.java | 88 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testInitialCapacity_small() 102 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testInitialCapacity_smallest() 140 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testConcurrencyLevel_small() 378 CacheTesting.checkEmpty(nullCache.asMap()); in testNullCache() 608 LocalCache<?, ?> map = CacheTesting.toLocalCache(cache); in testSizingDefaults()
|
D | CacheReferencesTest.java | 136 CacheTesting.drainReferenceQueues(cache); 149 CacheTesting.processPendingNotifications(cache);
|
D | NullCacheTest.java | 17 import static com.google.common.cache.CacheTesting.checkEmpty;
|
D | PopulatedCachesTest.java | 17 import static com.google.common.cache.CacheTesting.checkEmpty; 18 import static com.google.common.cache.CacheTesting.checkValidState;
|
D | EmptyCachesTest.java | 17 import static com.google.common.cache.CacheTesting.checkEmpty;
|
D | CacheLoadingTest.java | 1786 CacheTesting.simulateValueReclamation(cache, key); in testReloadAfterSimulatedValueReclamation() 1793 CacheTesting.simulateValueReclamation(cache, key); in testReloadAfterSimulatedValueReclamation() 1811 CacheTesting.simulateKeyReclamation(cache, key); in testReloadAfterSimulatedKeyReclamation() 1817 CacheTesting.simulateKeyReclamation(cache, key); in testReloadAfterSimulatedKeyReclamation() 2388 CacheTesting.forceExpandSegment(cache, key); in testExpandDuringLoading() 2476 CacheTesting.forceExpandSegment(cache, key); in testExpandDuringRefresh()
|
D | CacheTesting.java | 56 class CacheTesting { class
|