Lines Matching refs:reporter
15 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { in test1() argument
18 REPORTER_ASSERT(reporter, i*4 == writer->size()); in test1()
21 REPORTER_ASSERT(reporter, data[i] == *addr); in test1()
25 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size()); in test1()
27 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer))); in test1()
30 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { in test2() argument
39 REPORTER_ASSERT(reporter, writer->size() == len); in test2()
47 REPORTER_ASSERT(reporter, !reader.eof()); in test2()
49 REPORTER_ASSERT(reporter, i == len); in test2()
50 REPORTER_ASSERT(reporter, strlen(str) == len); in test2()
51 REPORTER_ASSERT(reporter, !memcmp(str, gStr, len)); in test2()
53 REPORTER_ASSERT(reporter, reader.eof()); in test2()
56 static void Tests(skiatest::Reporter* reporter) { in Tests() argument
60 REPORTER_ASSERT(reporter, NULL == writer.getSingleBlock()); in Tests()
61 test1(reporter, &writer); in Tests()
64 test2(reporter, &writer); in Tests()
71 REPORTER_ASSERT(reporter, NULL == writer.getSingleBlock()); in Tests()
73 REPORTER_ASSERT(reporter, (void*)storage == writer.getSingleBlock()); in Tests()
74 test1(reporter, &writer); in Tests()
77 test2(reporter, &writer); in Tests()