Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: tests/SkDOMTest.cpp

Issue 2154733003: Remove SkDOM::build(const char doc[], size_t len) (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/xml/SkDOM.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « src/xml/SkDOM.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698