diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2016-07-14 20:22:07 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-07-16 16:00:06 +0000 |
commit | 38b596d11f913477836cd29489017cf4a5e1debd (patch) | |
tree | cfce9b9f8bfb68e825e653bb8c4e07cb6a394159 /sax/qa/cppunit | |
parent | 018077bb5993d83dc85ee6027c1ac998c218fec9 (diff) |
GSoC - Sync namespace handler calls with elements:
This syncs the namespace declaration calls with element's events. A
test case is also added which enables threads of fastparser.
Change-Id: Ic40a380c8523688ee6b2ec76bb3d36a0452923bd
Reviewed-on: https://gerrit.libreoffice.org/27222
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sax/qa/cppunit')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index 747a3d5b3172..76942233e755 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -82,7 +82,7 @@ private: public: TestDocumentHandler() {} - const OUString& getString() { return m_aStr; } + const OUString getString() { return m_aStr; } // XDocumentHandler virtual void SAL_CALL startDocument() throw (SAXException, RuntimeException, exception) override; @@ -140,7 +140,9 @@ void SAL_CALL TestDocumentHandler::startDocument() throw(SAXException, RuntimeException, exception) { m_aStr.clear(); + m_aNamespaceStack.clear(); m_aNamespaceStack.emplace_back( make_pair( OUString( "default" ), OUString() ) ); + m_aCountStack = stack<sal_uInt16>(); m_aCountStack.emplace(0); } @@ -306,7 +308,7 @@ void XMLImportTest::parse() { OUString fileNames[] = {"simple.xml", "defaultns.xml", "inlinens.xml", "multiplens.xml", "multiplepfx.xml", - "nstoattributes.xml", "nestedns.xml"}; + "nstoattributes.xml", "nestedns.xml", "testthreading.xml"}; for (sal_uInt16 i = 0; i < sizeof( fileNames ) / sizeof( OUString ); i++) { |