aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFPrimitivesTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-03-24 15:29:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-24 15:29:39 -0700
commitf3d53a037db6500efad67f9a05b2ae80ecd648ae (patch)
tree43a2a29b076838e380287ff1d5fc673bab55a651 /tests/PDFPrimitivesTest.cpp
parent0dc4dd6dda9a7912f696b46d9c02155ec1d1ba5f (diff)
SkPDF: unit test cleanup
Diffstat (limited to 'tests/PDFPrimitivesTest.cpp')
-rw-r--r--tests/PDFPrimitivesTest.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp
index 7861ef0fe1..189808fdfa 100644
--- a/tests/PDFPrimitivesTest.cpp
+++ b/tests/PDFPrimitivesTest.cpp
@@ -23,24 +23,6 @@
#include "SkTypes.h"
#include "Test.h"
-class SkPDFTestDict : public SkPDFDict {
-public:
- virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects,
- SkTSet<SkPDFObject*>* newResourceObjects) {
- for (int i = 0; i < fResources.count(); i++) {
- newResourceObjects->add(fResources[i]);
- fResources[i]->ref();
- }
- }
-
- void addResource(SkPDFObject* object) {
- fResources.append(1, &object);
- }
-
-private:
- SkTDArray<SkPDFObject*> fResources;
-};
-
#define DUMMY_TEXT "DCT compessed stream."
static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset,
@@ -197,8 +179,8 @@ static void TestObjectRef(skiatest::Reporter* reporter) {
}
static void TestSubstitute(skiatest::Reporter* reporter) {
- SkAutoTUnref<SkPDFTestDict> proxy(new SkPDFTestDict());
- SkAutoTUnref<SkPDFTestDict> stub(new SkPDFTestDict());
+ SkAutoTUnref<SkPDFDict> proxy(new SkPDFDict());
+ SkAutoTUnref<SkPDFDict> stub(new SkPDFDict());
proxy->insert("Value", new SkPDFInt(33))->unref();
stub->insert("Value", new SkPDFInt(44))->unref();