Home | History | Annotate | Download | only in tests

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);
117 template <unsigned int N> static void test_tllist(skiatest::Reporter* reporter) {
129 REPORTER_ASSERT(reporter, list1.isEmpty());
130 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart));
131 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart));
135 REPORTER_ASSERT(reporter, list1.isEmpty());
136 REPORTER_ASSERT(reporter, list1 == list2);
143 REPORTER_ASSERT(reporter, iter1.get()->fID == iter2.get()->fID);
146 REPORTER_ASSERT(reporter, iter3.get()->fID == iter1.get()->fID);
147 REPORTER_ASSERT(reporter, iter4.get()->fID == iter1.get()->fID);
148 REPORTER_ASSERT(reporter, list1 == list2);
154 REPORTER_ASSERT(reporter, list2 == list1);
158 REPORTER_ASSERT(reporter, list2 == list1);
165 REPORTER_ASSERT(reporter, iter3.get()->fID == iter1.get()->fID);
166 REPORTER_ASSERT(reporter, iter4.get()->fID == iter1.get()->fID);
167 REPORTER_ASSERT(reporter, 1 == Iter(list2, Iter::kTail_IterStart).get()->fID);
168 REPORTER_ASSERT(reporter, 2 == Iter(list2, Iter::kHead_IterStart).get()->fID);
169 REPORTER_ASSERT(reporter, list1 != list2);
171 REPORTER_ASSERT(reporter, list1 == list2);
172 REPORTER_ASSERT(reporter, !list1.isEmpty());
176 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());
214 REPORTER_ASSERT(reporter, newItem.get()->fID == id);
217 REPORTER_ASSERT(reporter, next.prev()->fID == iter.get()->fID);
220 REPORTER_ASSERT(reporter, prev.next()->fID == id);
226 REPORTER_ASSERT(reporter, newItem.get()->fID == id);
229 REPORTER_ASSERT(reporter, next.prev()->fID == id);
232 REPORTER_ASSERT(reporter, prev.next()->fID == iter.get()->fID);
255 REPORTER_ASSERT(reporter, iter.get());
258 REPORTER_ASSERT(reporter, iter.get());
272 REPORTER_ASSERT(reporter, pn.get() == next.get() || nullptr == prev.get());
274 REPORTER_ASSERT(reporter, np.get() == prev.get() || nullptr == next.get());
277 REPORTER_ASSERT(reporter, count == list1.count());
281 DEF_TEST(LList, reporter) {
282 test_tinternallist(reporter);
283 test_tllist<1>(reporter);
284 test_tllist<3>(reporter);
285 test_tllist<8>(reporter);
286 test_tllist<10>(reporter);
287 test_tllist<16>(reporter);