Home | History | Annotate | Download | only in tests

Lines Matching refs:list1

131         ElList list1(i);
142 REPORTER_ASSERT(reporter, list1.isEmpty());
143 REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kHead_IterStart));
144 REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kTail_IterStart));
146 list1.popHead();
147 list1.popTail();
148 REPORTER_ASSERT(reporter, list1.isEmpty());
149 REPORTER_ASSERT(reporter, list1 == list2);
152 list1.addToHead(ListElement(1));
157 iter1.init(list1, Iter::kHead_IterStart);
158 iter2.init(list1, Iter::kTail_IterStart);
164 REPORTER_ASSERT(reporter, list1 == list2);
170 REPORTER_ASSERT(reporter, list2 == list1);
174 REPORTER_ASSERT(reporter, list2 == list1);
189 REPORTER_ASSERT(reporter, list1 != list2);
190 list1.addToHead(ListElement(2));
191 REPORTER_ASSERT(reporter, list1 == list2);
195 REPORTER_ASSERT(reporter, !list1.isEmpty());
197 list1.reset();
202 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());
207 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) {
215 list1.addToHead(ListElement(id));
218 list1.addToTail(ListElement(id));
222 int n = random.nextULessThan(list1.count());
223 Iter iter = list1.headIter();
237 SkNEW_INSERT_IN_LLIST_BEFORE(&list1, iter, ListElement, (id));
249 SkNEW_INSERT_IN_LLIST_AFTER(&list1, iter, ListElement, (id));
266 int n = random.nextULessThan(list1.count());
279 Iter iter(list1, start);
291 list1.remove(iter.get());
303 REPORTER_ASSERT(reporter, count == list1.count());
308 list1.reset();