Home | History | Annotate | Download | only in tests

Lines Matching refs:reporter

20 static void TestRefDict(skiatest::Reporter* reporter) {
24 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
25 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
26 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
29 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
30 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
33 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
34 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
37 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
38 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
39 REPORTER_ASSERT(reporter, 2 == data1.getRefCnt());
42 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
43 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
44 REPORTER_ASSERT(reporter, 1 == data1.getRefCnt());
48 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
49 REPORTER_ASSERT(reporter, &data1 == dict.find("bar"));
50 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
51 REPORTER_ASSERT(reporter, 2 == data1.getRefCnt());
54 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
55 REPORTER_ASSERT(reporter, &data1 == dict.find("bar"));
56 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
57 REPORTER_ASSERT(reporter, 3 == data1.getRefCnt());
60 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
61 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
62 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
63 REPORTER_ASSERT(reporter, 1 == data1.getRefCnt());
67 REPORTER_ASSERT(reporter, NULL == d.find("foo"));
68 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());
70 REPORTER_ASSERT(reporter, &data0 == d.find("foo"));
71 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
75 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt());