summaryrefslogtreecommitdiff
path: root/test/source/diff/diff.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/diff/diff.cxx')
-rw-r--r--test/source/diff/diff.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx
index 2d57a4aec2ab..6b97f298b3b1 100644
--- a/test/source/diff/diff.cxx
+++ b/test/source/diff/diff.cxx
@@ -55,6 +55,12 @@ XMLDiff::XMLDiff(const std::string& file1, const std::string& file2)
xmlFile2 = xmlParseFile(file2.c_str());
}
+XMLDiff::XMLDiff( const char* pFileName, const char* pContent, int size)
+{
+ xmlFile1 = xmlParseFile(pFileName);
+ xmlFile2 = xmlParseMemory(pContent, size);
+}
+
XMLDiff::~XMLDiff()
{
xmlFreeDoc(xmlFile1);