Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

31 static void test_refarray(skiatest::Reporter* reporter) {
32 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
37 REPORTER_ASSERT(reporter, 1 == array->getRefCnt());
38 REPORTER_ASSERT(reporter, N == array->count());
40 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
42 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
48 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
50 REPORTER_ASSERT(reporter, i == src[i].fCount);
54 REPORTER_ASSERT(reporter, 1 == array->getRefCnt());
55 REPORTER_ASSERT(reporter, N == array->count());
57 REPORTER_ASSERT(reporter, 2*N == InstCounterClass::gInstCounter);
59 REPORTER_ASSERT(reporter, i == (*array)[i].fCount);
63 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter);
66 REPORTER_ASSERT(reporter, i == (*array)[i].fCount);
69 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter);
80 static void test_refCnt(skiatest::Reporter* reporter) {
95 REPORTER_ASSERT(reporter, ref->getRefCnt() == 1);
116 static void test_weakRefCnt(skiatest::Reporter* reporter) {
139 REPORTER_ASSERT(reporter, ref->getRefCnt() == 1);
140 REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1);
144 DEF_TEST(RefCnt, reporter) {
145 test_refCnt(reporter);
146 test_weakRefCnt(reporter);
147 test_refarray(reporter);