Lines Matching refs:reporter

24 static void test_refptr(skiatest::Reporter* reporter) {
28 REPORTER_ASSERT(reporter, rc0.get() == NULL);
29 REPORTER_ASSERT(reporter, !rc0);
32 REPORTER_ASSERT(reporter, rc0 == rc1);
33 REPORTER_ASSERT(reporter, rc0.get() != r0);
36 REPORTER_ASSERT(reporter, rc0);
37 REPORTER_ASSERT(reporter, rc0 != rc1);
38 REPORTER_ASSERT(reporter, rc0.get() == r0);
41 REPORTER_ASSERT(reporter, rc1);
42 REPORTER_ASSERT(reporter, rc0 == rc1);
43 REPORTER_ASSERT(reporter, rc0.get() == r0);
46 REPORTER_ASSERT(reporter, rc0.get() == NULL);
47 REPORTER_ASSERT(reporter, !rc0);
48 REPORTER_ASSERT(reporter, rc0 != rc1);
53 static void test_autounref(skiatest::Reporter* reporter) {
55 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
58 REPORTER_ASSERT(reporter, &obj == tmp.get());
59 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
61 REPORTER_ASSERT(reporter, &obj == tmp.detach());
62 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
63 REPORTER_ASSERT(reporter, NULL == tmp.detach());
64 REPORTER_ASSERT(reporter, NULL == tmp.get());
67 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt());
71 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
78 static void test_search(skiatest::Reporter* reporter) {
89 REPORTER_ASSERT(reporter, array[i-1] <= array[i]);
95 REPORTER_ASSERT(reporter, index == i);
105 REPORTER_ASSERT(reporter,
109 REPORTER_ASSERT(reporter, index <= kSEARCH_COUNT);
111 REPORTER_ASSERT(reporter, value < array[index]);
113 REPORTER_ASSERT(reporter, value > array[index - 1]);
117 REPORTER_ASSERT(reporter, value > array[kSEARCH_COUNT - 1]);
123 static void test_utf16(skiatest::Reporter* reporter) {
132 REPORTER_ASSERT(reporter, count == 2);
134 REPORTER_ASSERT(reporter, count2 == 1);
137 REPORTER_ASSERT(reporter, c == gUni[i]);
138 REPORTER_ASSERT(reporter, ptr - buf == 2);
142 static void TestUTF(skiatest::Reporter* reporter) {
166 REPORTER_ASSERT(reporter, n == 1);
167 REPORTER_ASSERT(reporter, u0 == u1);
168 REPORTER_ASSERT(reporter, u0 == gTest[i].fUni);
169 REPORTER_ASSERT(reporter,
173 test_utf16(reporter);
174 test_search(reporter);
175 test_refptr(reporter);
176 test_autounref(reporter);