Lines Matching refs:reporter
27 static void test_autounref(skiatest::Reporter* reporter) { in test_autounref() argument
29 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
32 REPORTER_ASSERT(reporter, &obj == tmp.get()); in test_autounref()
33 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
35 REPORTER_ASSERT(reporter, &obj == tmp.release()); in test_autounref()
36 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
37 REPORTER_ASSERT(reporter, nullptr == tmp.release()); in test_autounref()
38 REPORTER_ASSERT(reporter, nullptr == tmp.get()); in test_autounref()
41 REPORTER_ASSERT(reporter, !obj.unique()); in test_autounref()
45 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
48 static void test_autostarray(skiatest::Reporter* reporter) { in test_autostarray() argument
51 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
52 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
56 REPORTER_ASSERT(reporter, 0 == tmp.count()); in test_autostarray()
60 REPORTER_ASSERT(reporter, 4 == tmp.count()); in test_autostarray()
63 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
64 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
68 REPORTER_ASSERT(reporter, 0 == tmp.count()); in test_autostarray()
69 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
70 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
73 REPORTER_ASSERT(reporter, 2 == tmp.count()); in test_autostarray()
79 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
80 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
85 REPORTER_ASSERT(reporter, 4 == tmp.count()); in test_autostarray()
89 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
90 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
94 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
95 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
100 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
101 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
104 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
105 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
109 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
110 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
113 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
114 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
121 static void test_search(skiatest::Reporter* reporter) { in test_search() argument
132 REPORTER_ASSERT(reporter, array[i-1] <= array[i]); in test_search()
138 REPORTER_ASSERT(reporter, index == i); in test_search()
148 REPORTER_ASSERT(reporter, in test_search()
152 REPORTER_ASSERT(reporter, index <= kSEARCH_COUNT); in test_search()
154 REPORTER_ASSERT(reporter, value < array[index]); in test_search()
156 REPORTER_ASSERT(reporter, value > array[index - 1]); in test_search()
160 REPORTER_ASSERT(reporter, value > array[kSEARCH_COUNT - 1]); in test_search()
166 DEF_TEST(Utils, reporter) { in DEF_TEST() argument
167 test_search(reporter); in DEF_TEST()
168 test_autounref(reporter); in DEF_TEST()
169 test_autostarray(reporter); in DEF_TEST()