Lines Matching refs:Reporter
27 skiatest::Reporter* reporter,
33 REPORTER_ASSERT(reporter, empty == list.isEmpty());
36 REPORTER_ASSERT(reporter, numElements == list.countEntries());
37 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0]));
38 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1]));
39 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2]));
40 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3]));
44 static void test_tinternallist(skiatest::Reporter* reporter) {
54 check_list(list, reporter, true, 0, false, false, false, false, elements);
58 check_list(list, reporter, false, 1, true, false, false, false, elements);
64 check_list(list, reporter, false, 4, true, true, true, true, elements);
72 REPORTER_ASSERT(reporter, cur->fID == 3-i);
77 REPORTER_ASSERT(reporter, cur->fID == i);
85 check_list(list, reporter, false, 1, false, false, true, false, elements);
91 check_list(list, reporter, true, 0, false, false, false, false, elements);
95 check_list(list, reporter, false, 1, false, true, false, false, elements);
100 check_list(list, reporter, false, 1, false, true, false, false, elements);
103 check_list(list, reporter, false, 2, true, true, false, false, elements);
106 check_list(list, reporter, false, 3, true, true, false, true, elements);
109 check_list(list, reporter, false, 4, true, true, true, true, elements);
113 REPORTER_ASSERT(reporter, cur->fID == i);
122 check_list(listA, reporter, true, 0, false, false, false, false, elements);
123 check_list(listB, reporter, true, 0, false, false, false, false, elements);
127 check_list(listA, reporter, false, 1, true, false, false, false, elements);
128 check_list(listB, reporter, true, 0, false, false, false, false, elements);
132 check_list(listA, reporter, false, 2, true, true, false, false, elements);
133 check_list(listB, reporter, true, 0, false, false, false, false, elements);
136 check_list(listA, reporter, false, 2, true, true, false, false, elements);
137 check_list(listB, reporter, true, 0, false, false, false, false, elements);
142 check_list(listA, reporter, false, 4, true, true, true, true, elements);
143 check_list(listB, reporter, true, 0, false, false, false, false, elements);
147 REPORTER_ASSERT(reporter, cur->fID == i);
151 template <unsigned int N> static void test_tllist(skiatest::Reporter* reporter) {
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));
169 REPORTER_ASSERT(reporter, list1.isEmpty());
170 REPORTER_ASSERT(reporter, list1 == list2);
177 REPORTER_ASSERT(reporter, iter1.get()->fID == iter2.get()->fID);
180 REPORTER_ASSERT(reporter, iter3.get()->fID == iter1.get()->fID);
181 REPORTER_ASSERT(reporter, iter4.get()->fID == iter1.get()->fID);
182 REPORTER_ASSERT(reporter, list1 == list2);
188 REPORTER_ASSERT(reporter, list2 == list1);
192 REPORTER_ASSERT(reporter, list2 == list1);
199 REPORTER_ASSERT(reporter, iter3.get()->fID == iter1.get()->fID);
200 REPORTER_ASSERT(reporter, iter4.get()->fID == iter1.get()->fID);
201 REPORTER_ASSERT(reporter, 1 == Iter(list2, Iter::kTail_IterStart).get()->fID);
202 REPORTER_ASSERT(reporter, 2 == Iter(list2, Iter::kHead_IterStart).get()->fID);
203 REPORTER_ASSERT(reporter, list1 != list2);
205 REPORTER_ASSERT(reporter, list1 == list2);
206 REPORTER_ASSERT(reporter, !list1.isEmpty());
210 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());
248 REPORTER_ASSERT(reporter, newItem.get()->fID == id);
251 REPORTER_ASSERT(reporter, next.prev()->fID == iter.get()->fID);
254 REPORTER_ASSERT(reporter, prev.next()->fID == id);
260 REPORTER_ASSERT(reporter, newItem.get()->fID == id);
263 REPORTER_ASSERT(reporter, next.prev()->fID == id);
266 REPORTER_ASSERT(reporter, prev.next()->fID == iter.get()->fID);
289 REPORTER_ASSERT(reporter, iter.get());
292 REPORTER_ASSERT(reporter, iter.get());
306 REPORTER_ASSERT(reporter, pn.get() == next.get() || nullptr == prev.get());
308 REPORTER_ASSERT(reporter, np.get() == prev.get() || nullptr == next.get());
311 REPORTER_ASSERT(reporter, count == list1.count());
315 DEF_TEST(LList, reporter) {
316 test_tinternallist(reporter);
317 test_tllist<1>(reporter);
318 test_tllist<3>(reporter);
319 test_tllist<8>(reporter);
320 test_tllist<10>(reporter);
321 test_tllist<16>(reporter);