Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
51 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testExpiration_expireAfterWrite()
63 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testExpiration_expireAfterAccess()
74 FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) { in checkExpiration()
100 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testExpiringGet_expireAfterWrite()
112 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testExpiringGet_expireAfterAccess()
123 FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) { in runExpirationTest()
214 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testRemovalScheduler_expireAfterWrite()
226 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testRemovalScheduler_expireAfterAccess()
238 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); in testRemovalScheduler_expireAfterBoth()
[all …]
DTestingRemovalListeners.java49 static <K, V> CountingRemovalListener<K, V> countingRemovalListener() { in countingRemovalListener()
50 return new CountingRemovalListener<K,V>(); in countingRemovalListener()
70 static class CountingRemovalListener<K, V> implements RemovalListener<K, V> { class in TestingRemovalListeners
DCacheEvictionTest.java27 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
96 CountingRemovalListener<Integer, Integer> removalListener = countingRemovalListener(); in testEviction_maxSize()
115 CountingRemovalListener<Integer, Integer> removalListener = countingRemovalListener(); in testEviction_maxWeight()
135 CountingRemovalListener<Object, Object> removalListener = countingRemovalListener(); in testEviction_overflow()
DCacheReferencesTest.java23 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
124 CountingRemovalListener<Integer, String> removalListener) {
DCacheBuilderTest.java31 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
368 CountingRemovalListener<Object, Object> listener = countingRemovalListener(); in testNullCache()
DLocalCacheTest.java45 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
1508 CountingRemovalListener<Object, Object> listener = countingRemovalListener(); in testReclaimKey()
1764 CountingRemovalListener<Object, Object> listener = in testReclaimValue()
DCacheLoadingTest.java31 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
1714 CountingRemovalListener<Integer, String> removalListener = countingRemovalListener(); in testReloadAfterFailure()
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/
DTestingRemovalListeners.java39 static <K, V> CountingRemovalListener<K, V> countingRemovalListener() { in countingRemovalListener()
40 return new CountingRemovalListener<K,V>(); in countingRemovalListener()
47 static class CountingRemovalListener<K, V> implements RemovalListener<K, V> { class in TestingRemovalListeners
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java871 CountingRemovalListener<Object, Object> listener = in testReclaimKey()
872 new CountingRemovalListener<Object, Object>(); in testReclaimKey()
1063 .removalListener(new CountingRemovalListener<Object, Object>())); in testRemoveEntry()
1090 CountingRemovalListener<Object, Object> listener = in testReclaimValue()
1091 new CountingRemovalListener<Object, Object>(); in testReclaimValue()
1144 .removalListener(new CountingRemovalListener<Object, Object>())); in testClearValue()
1655 private static class CountingRemovalListener<K, V> implements RemovalListener<K, V> { class in MapMakerInternalMapTest