Lines Matching refs:reporter
19 static void assert_len(skiatest::Reporter* reporter, SkData* ref, size_t len) {
20 REPORTER_ASSERT(reporter, ref->size() == len);
23 static void assert_data(skiatest::Reporter* reporter, SkData* ref,
25 REPORTER_ASSERT(reporter, ref->size() == len);
26 REPORTER_ASSERT(reporter, !memcmp(ref->data(), data, len));
29 void TestDataRef(skiatest::Reporter* reporter) {
44 assert_len(reporter, r0, 0);
45 assert_len(reporter, r1, strlen(str));
46 assert_len(reporter, r2, N * sizeof(int));
47 assert_len(reporter, r3, 6);
49 assert_data(reporter, r1, str, strlen(str));
50 assert_data(reporter, r3, "people", 6);
53 assert_len(reporter, tmp, 0);
56 assert_len(reporter, tmp, 0);