Lines Matching refs:Reporter
8 static void test_empty(skiatest::Reporter* reporter) {
15 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
18 static void test_abort(skiatest::Reporter* reporter) {
28 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
31 static void test_abortWithFile(skiatest::Reporter* reporter) {
56 REPORTER_ASSERT(reporter, fread(buffer, 1, 1, file) == 0);
60 static void test_file(skiatest::Reporter* reporter) {
79 REPORTER_ASSERT(reporter, file != NULL);
81 REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
82 REPORTER_ASSERT(reporter, strncmp(header, "%PDF", 4) == 0);
86 static void test_close(skiatest::Reporter* reporter) {
96 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0);
99 DEF_TEST(document_tests, reporter) {
100 test_empty(reporter);
101 test_abort(reporter);
102 test_abortWithFile(reporter);
103 test_file(reporter);
104 test_close(reporter);