Index: tests/SkDOMTest.cpp |
diff --git a/tests/SkDOMTest.cpp b/tests/SkDOMTest.cpp |
index 34bd8dd8b3e4a47ae2991b6adde29c732270cb77..a7fbda7f211dc3ad776c9650d585ced0bad51adc 100644 |
--- a/tests/SkDOMTest.cpp |
+++ b/tests/SkDOMTest.cpp |
@@ -5,6 +5,7 @@ |
* found in the LICENSE file. |
*/ |
+#include "SkStream.h" |
#include "Test.h" |
#if defined(SK_XML) |
@@ -24,10 +25,12 @@ DEF_TEST(SkDOM_test, r) { |
"</root>" |
; |
+ SkMemoryStream docStream(gDoc, sizeof(gDoc) - 1); |
+ |
SkDOM dom; |
REPORTER_ASSERT(r, !dom.getRootNode()); |
- const SkDOM::Node* root = dom.build(gDoc, sizeof(gDoc) - 1); |
+ const SkDOM::Node* root = dom.build(docStream); |
REPORTER_ASSERT(r, root && dom.getRootNode() == root); |
const char* v = dom.findAttr(root, "a"); |