Home | History | Annotate | Download | only in tests

Lines Matching full:reporter

30 static void test_refarray(skiatest::Reporter* reporter) {
31 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
36 REPORTER_ASSERT(reporter, 1 == array->getRefCnt());
37 REPORTER_ASSERT(reporter, N == array->count());
39 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
41 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
47 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
49 REPORTER_ASSERT(reporter, i == src[i].fCount);
53 REPORTER_ASSERT(reporter, 1 == array->getRefCnt());
54 REPORTER_ASSERT(reporter, N == array->count());
56 REPORTER_ASSERT(reporter, 2*N == InstCounterClass::gInstCounter);
58 REPORTER_ASSERT(reporter, i == (*array)[i].fCount);
62 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
65 REPORTER_ASSERT(reporter, i == (*array)[i].fCount);
68 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
79 static void test_refCnt(skiatest::Reporter* reporter) {
94 REPORTER_ASSERT(reporter, ref->getRefCnt() == 1);
115 static void test_weakRefCnt(skiatest::Reporter* reporter) {
138 REPORTER_ASSERT(reporter, ref->getRefCnt() == 1);
139 REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1);
143 DEF_TEST(RefCnt, reporter) {
144 test_refCnt(reporter);
145 test_weakRefCnt(reporter);
146 test_refarray(reporter);