diff options
author | halcanary <halcanary@google.com> | 2016-07-29 10:13:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-29 10:13:18 -0700 |
commit | fa25106f02f26d7a149cfe57c1d4756372e0755c (patch) | |
tree | 01736ac9c78333d51ababc1cf2f48422979319e1 /tests/PDFPrimitivesTest.cpp | |
parent | d05a8752738f84b0115678b3cdad89237173e904 (diff) |
SkPDF: PDFStream has-a not is-a PDFDict
Motivation:
SkPDFStream and SkPDFSharedStream now work the same.
Also:
- move SkPDFStream into SkPDFTypes (it's a fundamental PDF type).
- minor refactor of SkPDFSharedStream
- SkPDFSharedStream takes unique_ptr to represent ownership
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2190883003
Review-Url: https://codereview.chromium.org/2190883003
Diffstat (limited to 'tests/PDFPrimitivesTest.cpp')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index acfb202097..2ee90b98bd 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -16,7 +16,6 @@ #include "SkPDFCanon.h" #include "SkPDFDevice.h" #include "SkPDFFont.h" -#include "SkPDFStream.h" #include "SkPDFTypes.h" #include "SkPDFUtils.h" #include "SkReadBuffer.h" @@ -89,7 +88,7 @@ static void TestPDFStream(skiatest::Reporter* reporter) { assert_emit_eq(reporter, *stream, "<</Length 12>> stream\nTest\nFoo\tBar\nendstream"); - stream->insertInt("Attribute", 42); + stream->dict()->insertInt("Attribute", 42); assert_emit_eq(reporter, *stream, "<</Length 12\n/Attribute 42>> stream\n" |