Lines Matching refs:Reporter
28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, obj.unique());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, obj.unique());
36 REPORTER_ASSERT(reporter, &obj == tmp.release());
37 REPORTER_ASSERT(reporter, obj.unique());
38 REPORTER_ASSERT(reporter, nullptr == tmp.release());
39 REPORTER_ASSERT(reporter, nullptr == tmp.get());
42 REPORTER_ASSERT(reporter, !obj.unique());
46 REPORTER_ASSERT(reporter, obj.unique());
49 static void test_autostarray(skiatest::Reporter* reporter) {
52 REPORTER_ASSERT(reporter, obj0.unique());
53 REPORTER_ASSERT(reporter, obj1.unique());
57 REPORTER_ASSERT(reporter, 0 == tmp.count());
61 REPORTER_ASSERT(reporter, 4 == tmp.count());
64 REPORTER_ASSERT(reporter, !obj0.unique());
65 REPORTER_ASSERT(reporter, !obj1.unique());
69 REPORTER_ASSERT(reporter, 0 == tmp.count());
70 REPORTER_ASSERT(reporter, obj0.unique());
71 REPORTER_ASSERT(reporter, obj1.unique());
74 REPORTER_ASSERT(reporter, 2 == tmp.count());
80 REPORTER_ASSERT(reporter, obj0.unique());
81 REPORTER_ASSERT(reporter, obj1.unique());
86 REPORTER_ASSERT(reporter, 4 == tmp.count());
90 REPORTER_ASSERT(reporter, !obj0.unique());
91 REPORTER_ASSERT(reporter, !obj1.unique());
95 REPORTER_ASSERT(reporter, obj0.unique());
96 REPORTER_ASSERT(reporter, obj1.unique());
101 REPORTER_ASSERT(reporter, !obj0.unique());
102 REPORTER_ASSERT(reporter, !obj1.unique());
105 REPORTER_ASSERT(reporter, obj0.unique());
106 REPORTER_ASSERT(reporter, obj1.unique());
110 REPORTER_ASSERT(reporter, !obj0.unique());
111 REPORTER_ASSERT(reporter, !obj1.unique());
114 REPORTER_ASSERT(reporter, obj0.unique());
115 REPORTER_ASSERT(reporter, obj1.unique());
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);