SkPDF/Tests: imporve test coverage.
authorhalcanary <halcanary@google.com>
Fri, 9 Sep 2016 18:41:59 +0000 (11:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 9 Sep 2016 18:41:59 +0000 (11:41 -0700)
commit57f744e3030fec4d1a2b3e9119011904b149a4da
tree62e2dbe5a2550e0fccfcf085663ada6a8a3d8756
parent8d914908d8ad37a73c39ba8f7ef298bfee457388
SkPDF/Tests: imporve test coverage.

Also: make sure that all SkPDF unit tests are named SkPDF_* to
make testing changes to SkPDF easier.  Other cleanup.

Add test: SkPDF_pdfa_document to verify that flag in public API
works.

SkPDF_JpegIdentification test: test slightly malformed JPEGs to
verify that all code paths work.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2322133003

Review-Url: https://codereview.chromium.org/2322133003
tests/PDFDeflateWStreamTest.cpp
tests/PDFDocumentTest.cpp
tests/PDFGlyphsToUnicodeTest.cpp
tests/PDFInvalidBitmapTest.cpp
tests/PDFJpegEmbedTest.cpp
tests/PDFPrimitivesTest.cpp