Lines Matching refs:Reporter
19 static void test_empty(skiatest::Reporter* reporter) {
26 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
29 static void test_abort(skiatest::Reporter* reporter) {
40 REPORTER_ASSERT(reporter, stream.bytesWritten() < 256);
43 static void test_abortWithFile(skiatest::Reporter* reporter) {
68 REPORTER_ASSERT(reporter, fread(buffer, 1, sizeof(buffer), file) < sizeof(buffer));
72 static void test_file(skiatest::Reporter* reporter) {
91 REPORTER_ASSERT(reporter, file != nullptr);
93 REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
94 REPORTER_ASSERT(reporter, strncmp(header, "%PDF", 4) == 0);
98 static void test_close(skiatest::Reporter* reporter) {
108 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0);
111 DEF_TEST(SkPDF_document_tests, reporter) {
112 REQUIRE_PDF_DOCUMENT(document_tests, reporter);
113 test_empty(reporter);
114 test_abort(reporter);
115 test_abortWithFile(reporter);
116 test_file(reporter);
117 test_close(reporter);