Home | History | Annotate | Download | only in tests

Lines Matching full:reporter

28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, NULL == tmp.detach());
39 REPORTER_ASSERT(reporter, NULL == tmp.get());
42 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt());
46 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
49 static void test_autostarray(skiatest::Reporter* reporter) {
52 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
53 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
57 REPORTER_ASSERT(reporter, 0 == tmp.count());
61 REPORTER_ASSERT(reporter, 4 == tmp.count());
64 REPORTER_ASSERT(reporter, 2 == obj0.getRefCnt());
65 REPORTER_ASSERT(reporter, 2 == obj1.getRefCnt());
69 REPORTER_ASSERT(reporter, 0 == tmp.count());
70 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
71 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
74 REPORTER_ASSERT(reporter, 2 == tmp.count());
80 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
81 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
86 REPORTER_ASSERT(reporter, 4 == tmp.count());
90 REPORTER_ASSERT(reporter, 2 == obj0.getRefCnt());
91 REPORTER_ASSERT(reporter, 2 == obj1.getRefCnt());
95 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
96 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
101 REPORTER_ASSERT(reporter, 2 == obj0.getRefCnt());
102 REPORTER_ASSERT(reporter, 2 == obj1.getRefCnt());
105 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
106 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
110 REPORTER_ASSERT(reporter, 2 == obj0.getRefCnt());
111 REPORTER_ASSERT(reporter, 2 == obj1.getRefCnt());
114 REPORTER_ASSERT(reporter, 1 == obj0.getRefCnt());
115 REPORTER_ASSERT(reporter, 1 == obj1.getRefCnt());
122 static void test_search(skiatest::Reporter* reporter) {
133 REPORTER_ASSERT(reporter, array[i-1] <= array[i]);
139 REPORTER_ASSERT(reporter, index == i);
149 REPORTER_ASSERT(reporter,
153 REPORTER_ASSERT(reporter, index <= kSEARCH_COUNT);
155 REPORTER_ASSERT(reporter, value < array[index]);
157 REPORTER_ASSERT(reporter, value > array[index - 1]);
161 REPORTER_ASSERT(reporter, value > array[kSEARCH_COUNT - 1]);
167 static void test_utf16(skiatest::Reporter* reporter) {
176 REPORTER_ASSERT(reporter, count == 2);
178 REPORTER_ASSERT(reporter, count2 == 1);
181 REPORTER_ASSERT(reporter, c == gUni[i]);
182 REPORTER_ASSERT(reporter, ptr - buf == 2);
186 DEF_TEST(Utils, reporter) {
210 REPORTER_ASSERT(reporter, n == 1);
211 REPORTER_ASSERT(reporter, u0 == u1);
212 REPORTER_ASSERT(reporter, u0 == gTest[i].fUni);
213 REPORTER_ASSERT(reporter,
217 test_utf16(reporter);
218 test_search(reporter);
219 test_autounref(reporter);
220 test_autostarray(reporter);