Home | History | Annotate | Download | only in tests

Lines Matching refs:list1

156     ElList list1;
163 REPORTER_ASSERT(reporter, list1.isEmpty());
164 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart));
165 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart));
167 list1.popHead();
168 list1.popTail();
169 REPORTER_ASSERT(reporter, list1.isEmpty());
170 REPORTER_ASSERT(reporter, list1 == list2);
173 list1.addToHead(ListElement(1));
175 iter1.init(list1, Iter::kHead_IterStart);
176 iter2.init(list1, Iter::kTail_IterStart);
182 REPORTER_ASSERT(reporter, list1 == list2);
188 REPORTER_ASSERT(reporter, list2 == list1);
192 REPORTER_ASSERT(reporter, list2 == list1);
203 REPORTER_ASSERT(reporter, list1 != list2);
204 list1.addToHead(ListElement(2));
205 REPORTER_ASSERT(reporter, list1 == list2);
206 REPORTER_ASSERT(reporter, !list1.isEmpty());
208 list1.reset();
210 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());
215 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) {
223 list1.addToHead(ListElement(id));
226 list1.addToTail(ListElement(id));
230 int n = random.nextULessThan(list1.count());
231 Iter iter = list1.headIter();
245 list1.addBefore(iter, id);
257 list1.addAfter(iter, id);
274 int n = random.nextULessThan(list1.count());
287 Iter iter(list1, start);
299 list1.remove(iter.get());
311 REPORTER_ASSERT(reporter, count == list1.count());