Index: tests/PDFDeflateWStreamTest.cpp |
diff --git a/tests/PDFDeflateWStreamTest.cpp b/tests/PDFDeflateWStreamTest.cpp |
index 262750876e9b124ab3d738fcb358d6c0bcf0f10d..eedcaaf0c5a6f288bdd320e0c67ad33afc0ee5be 100644 |
--- a/tests/PDFDeflateWStreamTest.cpp |
+++ b/tests/PDFDeflateWStreamTest.cpp |
@@ -101,7 +101,7 @@ SkStreamAsset* stream_inflate(skiatest::Reporter* reporter, SkStream* src) { |
} |
} // namespace |
-DEF_TEST(SkDeflateWStream, r) { |
+DEF_TEST(SkPDF_DeflateWStream, r) { |
SkRandom random(123456); |
for (int i = 0; i < 50; ++i) { |
uint32_t size = random.nextULessThan(10000); |
@@ -123,6 +123,7 @@ DEF_TEST(SkDeflateWStream, r) { |
} |
j += writeSize; |
} |
+ REPORTER_ASSERT(r, deflateWStream.bytesWritten() == size); |
} |
SkAutoTDelete<SkStreamAsset> compressed( |
dynamicMemoryWStream.detachAsStream()); |
@@ -159,4 +160,6 @@ DEF_TEST(SkDeflateWStream, r) { |
} |
} |
} |
+ SkDeflateWStream emptyDeflateWStream(nullptr); |
+ REPORTER_ASSERT(r, !emptyDeflateWStream.writeText("FOO")); |
} |