Lines Matching refs:reporter
12 static void test_ptrs(skiatest::Reporter* reporter) { in test_ptrs() argument
14 REPORTER_ASSERT(reporter, ref.unique()); in test_ptrs()
21 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); in test_ptrs()
22 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); in test_ptrs()
23 REPORTER_ASSERT(reporter, !ref.unique()); in test_ptrs()
26 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); in test_ptrs()
27 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); in test_ptrs()
28 REPORTER_ASSERT(reporter, !ref.unique()); in test_ptrs()
30 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)); in test_ptrs()
31 REPORTER_ASSERT(reporter, !md0.findRefCnt(name)); in test_ptrs()
32 REPORTER_ASSERT(reporter, !md0.hasRefCnt(name, &ref)); in test_ptrs()
33 REPORTER_ASSERT(reporter, !ref.unique()); in test_ptrs()
35 REPORTER_ASSERT(reporter, ref.unique()); in test_ptrs()
38 DEF_TEST(MetaData, reporter) { in DEF_TEST() argument
41 REPORTER_ASSERT(reporter, !m1.findS32("int")); in DEF_TEST()
42 REPORTER_ASSERT(reporter, !m1.findScalar("scalar")); in DEF_TEST()
43 REPORTER_ASSERT(reporter, !m1.findString("hello")); in DEF_TEST()
44 REPORTER_ASSERT(reporter, !m1.removeS32("int")); in DEF_TEST()
45 REPORTER_ASSERT(reporter, !m1.removeScalar("scalar")); in DEF_TEST()
46 REPORTER_ASSERT(reporter, !m1.removeString("hello")); in DEF_TEST()
47 REPORTER_ASSERT(reporter, !m1.removeString("true")); in DEF_TEST()
48 REPORTER_ASSERT(reporter, !m1.removeString("false")); in DEF_TEST()
62 REPORTER_ASSERT(reporter, m1.findS32("int", &n) && n == 12345); in DEF_TEST()
63 REPORTER_ASSERT(reporter, m1.findScalar("scalar", &s) && s == SK_Scalar1/2); in DEF_TEST()
64 REPORTER_ASSERT(reporter, !strcmp(m1.findString("hello"), "world")); in DEF_TEST()
65 REPORTER_ASSERT(reporter, m1.hasBool("true", true)); in DEF_TEST()
66 REPORTER_ASSERT(reporter, m1.hasBool("false", false)); in DEF_TEST()
95 REPORTER_ASSERT(reporter, gElems[i].fType == t); in DEF_TEST()
96 REPORTER_ASSERT(reporter, gElems[i].fCount == count); in DEF_TEST()
99 REPORTER_ASSERT(reporter, match == 1); in DEF_TEST()
102 REPORTER_ASSERT(reporter, loop == SK_ARRAY_COUNT(gElems)); in DEF_TEST()
104 REPORTER_ASSERT(reporter, m1.removeS32("int")); in DEF_TEST()
105 REPORTER_ASSERT(reporter, m1.removeScalar("scalar")); in DEF_TEST()
106 REPORTER_ASSERT(reporter, m1.removeString("hello")); in DEF_TEST()
107 REPORTER_ASSERT(reporter, m1.removeBool("true")); in DEF_TEST()
108 REPORTER_ASSERT(reporter, m1.removeBool("false")); in DEF_TEST()
110 REPORTER_ASSERT(reporter, !m1.findS32("int")); in DEF_TEST()
111 REPORTER_ASSERT(reporter, !m1.findScalar("scalar")); in DEF_TEST()
112 REPORTER_ASSERT(reporter, !m1.findString("hello")); in DEF_TEST()
113 REPORTER_ASSERT(reporter, !m1.findBool("true")); in DEF_TEST()
114 REPORTER_ASSERT(reporter, !m1.findBool("false")); in DEF_TEST()
116 test_ptrs(reporter); in DEF_TEST()