Lines Matching refs:list1
130 ElList list1(i); in TestTLList() local
141 REPORTER_ASSERT(reporter, list1.isEmpty()); in TestTLList()
142 REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kHead_IterStart)); in TestTLList()
143 REPORTER_ASSERT(reporter, NULL == iter1.init(list1, Iter::kTail_IterStart)); in TestTLList()
145 list1.popHead(); in TestTLList()
146 list1.popTail(); in TestTLList()
147 REPORTER_ASSERT(reporter, list1.isEmpty()); in TestTLList()
148 REPORTER_ASSERT(reporter, list1 == list2); in TestTLList()
151 list1.addToHead(ListElement(1)); in TestTLList()
156 iter1.init(list1, Iter::kHead_IterStart); in TestTLList()
157 iter2.init(list1, Iter::kTail_IterStart); in TestTLList()
163 REPORTER_ASSERT(reporter, list1 == list2); in TestTLList()
169 REPORTER_ASSERT(reporter, list2 == list1); in TestTLList()
173 REPORTER_ASSERT(reporter, list2 == list1); in TestTLList()
188 REPORTER_ASSERT(reporter, list1 != list2); in TestTLList()
189 list1.addToHead(ListElement(2)); in TestTLList()
190 REPORTER_ASSERT(reporter, list1 == list2); in TestTLList()
194 REPORTER_ASSERT(reporter, !list1.isEmpty()); in TestTLList()
196 list1.reset(); in TestTLList()
201 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty()); in TestTLList()
206 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) { in TestTLList()
214 list1.addToHead(ListElement(id)); in TestTLList()
217 list1.addToTail(ListElement(id)); in TestTLList()
221 int n = random.nextULessThan(list1.count()); in TestTLList()
222 Iter iter = list1.headIter(); in TestTLList()
236 SkNEW_INSERT_IN_LLIST_BEFORE(&list1, iter, ListElement, (id)); in TestTLList()
248 SkNEW_INSERT_IN_LLIST_AFTER(&list1, iter, ListElement, (id)); in TestTLList()
265 int n = random.nextULessThan(list1.count()); in TestTLList()
278 Iter iter(list1, start); in TestTLList()
290 list1.remove(iter.get()); in TestTLList()
302 REPORTER_ASSERT(reporter, count == list1.count()); in TestTLList()
307 list1.reset(); in TestTLList()