OLD | NEW |
1 #include "Test.h" | 1 #include "Test.h" |
2 #include "TestClassDef.h" | |
3 | 2 |
4 #include "SkCanvas.h" | 3 #include "SkCanvas.h" |
5 #include "SkDocument.h" | 4 #include "SkDocument.h" |
6 #include "SkOSFile.h" | 5 #include "SkOSFile.h" |
7 #include "SkStream.h" | 6 #include "SkStream.h" |
8 | 7 |
9 static void test_empty(skiatest::Reporter* reporter) { | 8 static void test_empty(skiatest::Reporter* reporter) { |
10 SkDynamicMemoryWStream stream; | 9 SkDynamicMemoryWStream stream; |
11 | 10 |
12 SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&stream)); | 11 SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&stream)); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0); | 96 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0); |
98 } | 97 } |
99 | 98 |
100 DEF_TEST(document_tests, reporter) { | 99 DEF_TEST(document_tests, reporter) { |
101 test_empty(reporter); | 100 test_empty(reporter); |
102 test_abort(reporter); | 101 test_abort(reporter); |
103 test_abortWithFile(reporter); | 102 test_abortWithFile(reporter); |
104 test_file(reporter); | 103 test_file(reporter); |
105 test_close(reporter); | 104 test_close(reporter); |
106 } | 105 } |
OLD | NEW |