• Home
  • Raw
  • Download

Lines Matching refs:queue

54   LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(3);  in TEST()  local
55 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(3)); in TEST()
56 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
57 queue->Enqueue(item1); in TEST()
58 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
59 queue->Enqueue(item2); in TEST()
60 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
61 queue->Enqueue(item3); in TEST()
62 EXPECT_EQ(queue->Length(), static_cast<size_t>(3)); in TEST()
64 queue->Enqueue(item4); in TEST()
65 EXPECT_EQ(queue->Length(), static_cast<size_t>(3)); in TEST()
66 MockItem* item2_2 = queue->Dequeue(); in TEST()
67 MockItem* item3_3 = queue->Dequeue(); in TEST()
68 MockItem* item4_4 = queue->Dequeue(); in TEST()
82 delete queue; in TEST()
90 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
91 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(2)); in TEST()
92 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
93 queue->Enqueue(item1); in TEST()
94 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
95 MockItem* item1_1 = queue->Dequeue(); in TEST()
97 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
98 queue->Enqueue(item2); in TEST()
99 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
100 queue->Enqueue(item3); in TEST()
101 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
103 queue->Enqueue(item4); in TEST()
104 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
106 queue->Enqueue(item1); in TEST()
107 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
108 MockItem* item4_4_4 = queue->Dequeue(); in TEST()
109 MockItem* item1_1_1 = queue->Dequeue(); in TEST()
116 delete queue; in TEST()
124 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
125 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(2)); in TEST()
126 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
127 queue->Enqueue(item1); in TEST()
128 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
129 MockItem* item1_1 = queue->Dequeue(); in TEST()
131 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
132 queue->Enqueue(item2); in TEST()
133 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
134 queue->Enqueue(item3); in TEST()
135 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
136 MockItem* item2_2 = queue->EnqueueWithPop(item4); in TEST()
141 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
142 MockItem* item3_3 = queue->EnqueueWithPop(item1); in TEST()
147 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
148 MockItem* item4_4_4 = queue->Dequeue(); in TEST()
149 MockItem* item1_1_1 = queue->Dequeue(); in TEST()
156 delete queue; in TEST()
164 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
165 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(2)); in TEST()
166 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
167 queue->Enqueue(item1); in TEST()
168 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
169 MockItem* item1_1 = queue->Dequeue(); in TEST()
171 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
172 queue->Enqueue(item2); in TEST()
173 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
174 queue->Enqueue(item3); in TEST()
175 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
177 queue->Enqueue(item4); in TEST()
178 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
180 queue->Enqueue(item1); in TEST()
181 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
184 queue->Clear(); in TEST()
185 delete queue; in TEST()
193 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
194 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(2)); in TEST()
195 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
196 queue->Enqueue(item1); in TEST()
197 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
198 MockItem* item1_1 = queue->Dequeue(); in TEST()
200 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST()
201 queue->Enqueue(item2); in TEST()
202 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST()
203 queue->Enqueue(item3); in TEST()
204 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
206 queue->Enqueue(item4); in TEST()
207 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
209 queue->Enqueue(item1); in TEST()
210 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST()
213 delete queue; in TEST()
218 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
219 queue->Enqueue(item1); in TEST()
220 MockItem* item1_1 = queue->Dequeue(); in TEST()
227 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(1); in TEST() local
228 queue->Enqueue(item1); in TEST()
229 queue->Enqueue(item2); in TEST()
230 MockItem* item2_2 = queue->Dequeue(); in TEST()
237 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(2); in TEST() local
238 queue->Enqueue(item1); in TEST()
239 queue->Enqueue(item2); in TEST()
240 delete queue; in TEST()