Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/collect/
DMinMaxPriorityQueueTest.java188 MinMaxPriorityQueue<Integer> mmHeap = in testHeapIntact() local
195 assertTrue("Empty heap should be OK", mmHeap.isIntact()); in testHeapIntact()
198 mmHeap.offer(randomInt); in testHeapIntact()
202 mmHeap.isIntact()); in testHeapIntact()
203 assertEquals(heapSize, mmHeap.size()); in testHeapIntact()
209 mmHeap.offer(randomInt); in testHeapIntact()
215 removeMinFromReplica(replica, mmHeap.poll()); in testHeapIntact()
217 removeMaxFromReplica(replica, mmHeap.pollLast()); in testHeapIntact()
220 assertTrue("MinMax queue has lost " + v, mmHeap.contains(v)); in testHeapIntact()
222 assertTrue(mmHeap.isIntact()); in testHeapIntact()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/collect/
DMinMaxPriorityQueueBenchmark.java81 MinMaxPriorityQueue<T> mmHeap; field in MinMaxPriorityQueueBenchmark.InvertedMinMaxPriorityQueue
83 mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create(); in InvertedMinMaxPriorityQueue()
88 return mmHeap; in delegate()
93 return mmHeap.pollLast(); in poll()