Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

18 static void test_empty(skiatest::Reporter* reporter) {
25 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
28 static void test_abort(skiatest::Reporter* reporter) {
39 REPORTER_ASSERT(reporter, stream.bytesWritten() < 256);
42 static void test_abortWithFile(skiatest::Reporter* reporter) {
46 ERRORF(reporter, "missing tmpDir.");
52 ERRORF(reporter, "unable to write to: %s", path.c_str());
71 REPORTER_ASSERT(reporter, fread(buffer, 1, sizeof(buffer), file) < sizeof(buffer));
75 static void test_file(skiatest::Reporter* reporter) {
78 ERRORF(reporter, "missing tmpDir.");
84 ERRORF(reporter, "unable to write to: %s", path.c_str());
99 REPORTER_ASSERT(reporter, file != nullptr);
101 REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
102 REPORTER_ASSERT(reporter, strncmp(header, "%PDF", 4) == 0);
106 static void test_close(skiatest::Reporter* reporter) {
116 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0);
119 DEF_TEST(SkPDF_document_tests, reporter) {
120 REQUIRE_PDF_DOCUMENT(document_tests, reporter);
121 test_empty(reporter);
122 test_abort(reporter);
123 test_abortWithFile(reporter);
124 test_file(reporter);
125 test_close(reporter);