Lines Matching refs:reporter
11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { in assert_count() argument
13 REPORTER_ASSERT(reporter, deq.empty()); in assert_count()
14 REPORTER_ASSERT(reporter, 0 == deq.count()); in assert_count()
15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
16 REPORTER_ASSERT(reporter, nullptr == deq.front()); in assert_count()
17 REPORTER_ASSERT(reporter, nullptr == deq.back()); in assert_count()
19 REPORTER_ASSERT(reporter, !deq.empty()); in assert_count()
20 REPORTER_ASSERT(reporter, count == deq.count()); in assert_count()
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
22 REPORTER_ASSERT(reporter, deq.front()); in assert_count()
23 REPORTER_ASSERT(reporter, deq.back()); in assert_count()
25 REPORTER_ASSERT(reporter, deq.back() == deq.front()); in assert_count()
27 REPORTER_ASSERT(reporter, deq.back() != deq.front()); in assert_count()
32 static void assert_iter(skiatest::Reporter* reporter, const SkDeque& deq, in assert_iter() argument
40 REPORTER_ASSERT(reporter, value == *(int*)ptr); in assert_iter()
43 REPORTER_ASSERT(reporter, value+1 == min); in assert_iter()
50 REPORTER_ASSERT(reporter, value == *(int*)ptr); in assert_iter()
53 REPORTER_ASSERT(reporter, value-1 == max); in assert_iter()
61 REPORTER_ASSERT(reporter, value == *(int*)ptr); in assert_iter()
66 REPORTER_ASSERT(reporter, value == *(int*)ptr); in assert_iter()
69 REPORTER_ASSERT(reporter, value-1 == max); in assert_iter()
83 static void assert_blocks(skiatest::Reporter* reporter, in assert_blocks() argument
89 REPORTER_ASSERT(reporter, 1 == helper.fNumBlocksAllocated); in assert_blocks()
94 REPORTER_ASSERT(reporter, in assert_blocks()
100 static void TestSub(skiatest::Reporter* reporter, int allocCount) { in TestSub() argument
106 assert_count(reporter, deq, 0); in TestSub()
110 assert_count(reporter, deq, 10); in TestSub()
111 assert_iter(reporter, deq, 10, 1); in TestSub()
112 assert_blocks(reporter, deq, allocCount); in TestSub()
117 assert_count(reporter, deq, 5); in TestSub()
118 assert_iter(reporter, deq, 5, 1); in TestSub()
119 assert_blocks(reporter, deq, allocCount); in TestSub()
124 assert_count(reporter, deq, 0); in TestSub()
125 assert_blocks(reporter, deq, allocCount); in TestSub()
132 assert_count(reporter, deq, 10); in TestSub()
133 assert_iter(reporter, deq, 10, 1); in TestSub()
134 assert_blocks(reporter, deq, allocCount); in TestSub()
139 assert_count(reporter, deq, 5); in TestSub()
140 assert_iter(reporter, deq, 10, 6); in TestSub()
141 assert_blocks(reporter, deq, allocCount); in TestSub()
146 assert_count(reporter, deq, 0); in TestSub()
147 assert_blocks(reporter, deq, allocCount); in TestSub()
159 assert_count(reporter, deq, 8); in TestSub()
160 assert_iter(reporter, deq, 8, 1); in TestSub()
161 assert_blocks(reporter, deq, allocCount); in TestSub()
164 DEF_TEST(Deque, reporter) { in DEF_TEST() argument
166 TestSub(reporter, 1); in DEF_TEST()
168 TestSub(reporter, 10); in DEF_TEST()