Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/cache/
DCacheEvictionTest.java24 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 …]
DCacheExpirationTest.java86 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 …]
DCacheBuilderTest.java88 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()
DCacheReferencesTest.java136 CacheTesting.drainReferenceQueues(cache);
149 CacheTesting.processPendingNotifications(cache);
DNullCacheTest.java17 import static com.google.common.cache.CacheTesting.checkEmpty;
DPopulatedCachesTest.java17 import static com.google.common.cache.CacheTesting.checkEmpty;
18 import static com.google.common.cache.CacheTesting.checkValidState;
DEmptyCachesTest.java17 import static com.google.common.cache.CacheTesting.checkEmpty;
DCacheLoadingTest.java1786 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()
DCacheTesting.java56 class CacheTesting { class