summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 16:04:47 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 19:51:08 +0200
commit780cedb2cf63f6ffa3290d053172a117384b7383 (patch)
tree0f4b367572a7ce70c3b3a97b57a91f0622c7de67 /include/test
parent7da0a6e562de26222a8c56ae9a5a51611264c59a (diff)
test: parseXmlStream & parseHtmlStream added to test tools
Change-Id: Iff8af5e9ffefb4c3cecf387b16473d45e8b4a65a
Diffstat (limited to 'include/test')
-rw-r--r--include/test/htmltesttools.hxx2
-rw-r--r--include/test/xmltesttools.hxx6
2 files changed, 7 insertions, 1 deletions
diff --git a/include/test/htmltesttools.hxx b/include/test/htmltesttools.hxx
index 1cc493241e83..8889a6eaeddf 100644
--- a/include/test/htmltesttools.hxx
+++ b/include/test/htmltesttools.hxx
@@ -17,12 +17,12 @@
#include <libxml/HTMLtree.h>
#include <unotools/tempfile.hxx>
-#include <boost/scoped_array.hpp>
class OOO_DLLPUBLIC_TEST HtmlTestTools
{
protected:
htmlDocPtr parseHtml(utl::TempFile& aTempFile);
+ htmlDocPtr parseHtmlStream(SvStream* pStream);
};
#endif
diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx
index 3473f97a3c88..8937211b9f3f 100644
--- a/include/test/xmltesttools.hxx
+++ b/include/test/xmltesttools.hxx
@@ -14,12 +14,15 @@
#include <test/testdllapi.hxx>
#include <libxml/xmlwriter.h>
+#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/parserInternals.h>
#include <rtl/string.hxx>
#include <rtl/ustring.hxx>
+#include <unotools/tempfile.hxx>
+
#include <cppunit/TestAssert.h>
class OOO_DLLPUBLIC_TEST XmlTestTools
@@ -28,6 +31,9 @@ protected:
XmlTestTools();
virtual ~XmlTestTools();
+ htmlDocPtr parseXml(utl::TempFile& aTempFile);
+ htmlDocPtr parseXmlStream(SvStream* pStream);
+
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx);
xmlNodeSetPtr getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath);