diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-27 02:13:04 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-27 03:15:31 +0200 |
commit | b1dc2c5818f9d31e58131f5b2b79a41a366fab35 (patch) | |
tree | 21dc6835e41c45f6f9a47c9d11d6b8d4634da312 /test | |
parent | 9f9e6a765450d85f2fd9339fb10fb2ee6d45cd05 (diff) |
use the new xml diff in chart regression test
Diffstat (limited to 'test')
-rw-r--r-- | test/inc/test/xmldiff.hxx | 6 | ||||
-rw-r--r-- | test/source/diff/diff.cxx | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/inc/test/xmldiff.hxx b/test/inc/test/xmldiff.hxx index beaea19a7f53..a787132347d4 100644 --- a/test/inc/test/xmldiff.hxx +++ b/test/inc/test/xmldiff.hxx @@ -31,6 +31,9 @@ #include <libxml/xmlmemory.h> #include <string> #include <set> +#include <test/testdllapi.hxx> + +#define USE_CPPUNIT 1 struct tolerance { @@ -70,11 +73,12 @@ struct tolerance } }; -class XMLDiff +class OOO_DLLPUBLIC_TEST XMLDiff { public: XMLDiff(const std::string& file1, const std::string& file2, const std::string& toleranceFile); XMLDiff(const std::string& file1, const std::string& file2); + XMLDiff(const char* pFileName, const char* pContent, int size); ~XMLDiff(); bool compare(); 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); |