diff options
author | 2016-03-21 13:45:05 -0700 | |
---|---|---|
committer | 2016-03-21 13:45:05 -0700 | |
commit | 50e82e61766d22da5238905916a8abc3e6664060 (patch) | |
tree | 2370de762b461c22a0ef7123e2e5b5d8061010b5 /tests/PDFDocumentTest.cpp | |
parent | b4bd11e66519f545282f914c67b54bf17cecab84 (diff) |
SkPDF: SkPDFDocument reorganized so that some objects can be serialized early.
No change in output.
BUG=skia:5087
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1802033003
Review URL: https://codereview.chromium.org/1802033003
Diffstat (limited to 'tests/PDFDocumentTest.cpp')
-rw-r--r-- | tests/PDFDocumentTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PDFDocumentTest.cpp b/tests/PDFDocumentTest.cpp index 995e35f8c0..98d1864df1 100644 --- a/tests/PDFDocumentTest.cpp +++ b/tests/PDFDocumentTest.cpp @@ -33,7 +33,8 @@ static void test_abort(skiatest::Reporter* reporter) { doc->abort(); - REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); + // Test that only the header is written, not the full document. + REPORTER_ASSERT(reporter, stream.bytesWritten() < 256); } static void test_abortWithFile(skiatest::Reporter* reporter) { |