Lines Matching refs:heap
15 SkTDPQueue<int, intless> heap; in simple_test() local
16 REPORTER_ASSERT(reporter, 0 == heap.count()); in simple_test()
18 heap.insert(0); in simple_test()
19 REPORTER_ASSERT(reporter, 1 == heap.count()); in simple_test()
20 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
21 heap.pop(); in simple_test()
22 REPORTER_ASSERT(reporter, 0 == heap.count()); in simple_test()
24 heap.insert(0); in simple_test()
25 heap.insert(1); in simple_test()
26 REPORTER_ASSERT(reporter, 2 == heap.count()); in simple_test()
27 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
28 heap.pop(); in simple_test()
29 REPORTER_ASSERT(reporter, 1 == heap.count()); in simple_test()
30 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
31 heap.pop(); in simple_test()
32 REPORTER_ASSERT(reporter, 0 == heap.count()); in simple_test()
34 heap.insert(2); in simple_test()
35 heap.insert(1); in simple_test()
36 heap.insert(0); in simple_test()
37 REPORTER_ASSERT(reporter, 3 == heap.count()); in simple_test()
38 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
39 heap.pop(); in simple_test()
40 REPORTER_ASSERT(reporter, 2 == heap.count()); in simple_test()
41 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
42 heap.pop(); in simple_test()
43 REPORTER_ASSERT(reporter, 1 == heap.count()); in simple_test()
44 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
45 heap.pop(); in simple_test()
46 REPORTER_ASSERT(reporter, 0 == heap.count()); in simple_test()
48 heap.insert(2); in simple_test()
49 heap.insert(3); in simple_test()
50 heap.insert(0); in simple_test()
51 heap.insert(1); in simple_test()
52 REPORTER_ASSERT(reporter, 4 == heap.count()); in simple_test()
53 REPORTER_ASSERT(reporter, 0 == heap.peek()); in simple_test()
54 heap.pop(); in simple_test()
55 REPORTER_ASSERT(reporter, 3 == heap.count()); in simple_test()
56 REPORTER_ASSERT(reporter, 1 == heap.peek()); in simple_test()
57 heap.pop(); in simple_test()
58 REPORTER_ASSERT(reporter, 2 == heap.count()); in simple_test()
59 REPORTER_ASSERT(reporter, 2 == heap.peek()); in simple_test()
60 heap.pop(); in simple_test()
61 REPORTER_ASSERT(reporter, 1 == heap.count()); in simple_test()
62 REPORTER_ASSERT(reporter, 3 == heap.peek()); in simple_test()
63 heap.pop(); in simple_test()
64 REPORTER_ASSERT(reporter, 0 == heap.count()); in simple_test()