Lines Matching refs:reporter
23 static void test_buffer(skiatest::Reporter* reporter) { in test_buffer() argument
45 REPORTER_ASSERT(reporter, ss > 0 && ss <= s); in test_buffer()
46 REPORTER_ASSERT(reporter, bytesRead + ss <= size); in test_buffer()
47 REPORTER_ASSERT(reporter, in test_buffer()
51 REPORTER_ASSERT(reporter, bytesRead == size); in test_buffer()
56 static void TestRStream(skiatest::Reporter* reporter) { in TestRStream() argument
70 REPORTER_ASSERT(reporter, copyPtr == copy + sizeof(s)); in TestRStream()
71 REPORTER_ASSERT(reporter, memcmp(s, copy, sizeof(s)) == 0); in TestRStream()
73 test_buffer(reporter); in TestRStream()
76 static void TestWStream(skiatest::Reporter* reporter) { in TestWStream() argument
81 REPORTER_ASSERT(reporter, ds.write(s, 26)); in TestWStream()
83 REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26); in TestWStream()
87 REPORTER_ASSERT(reporter, dst[100*26] == '*'); in TestWStream()
90 REPORTER_ASSERT(reporter, memcmp(&dst[i * 26], s, 26) == 0); in TestWStream()
95 REPORTER_ASSERT(reporter, 100 * 26 == data->size()); in TestWStream()
96 REPORTER_ASSERT(reporter, memcmp(dst, data->data(), data->size()) == 0); in TestWStream()
102 static void TestPackedUInt(skiatest::Reporter* reporter) { in TestPackedUInt() argument
119 REPORTER_ASSERT(reporter, success); in TestPackedUInt()
129 REPORTER_ASSERT(reporter, sizes[i] == n); in TestPackedUInt()
133 static void TestStreams(skiatest::Reporter* reporter) { in TestStreams() argument
134 TestRStream(reporter); in TestStreams()
135 TestWStream(reporter); in TestStreams()
136 TestPackedUInt(reporter); in TestStreams()