summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-03 11:42:17 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-03 16:21:57 +0100
commit2dd592f0836184e3f275e8ff3248639f08a3f647 (patch)
tree21e8e2f3a98b7d82a19f45f8d4e28eb37a992634 /test
parent1de8308d40fad8e9281d2b491f8c5c919fda82f4 (diff)
UnoApiXmlTest: add new wrapper for XmlTestTools tests
Change-Id: I767f464ec666330a2e8e832b6d6f5736a6bef54d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142228 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r--test/Library_subsequenttest.mk2
-rw-r--r--test/source/unoapixml_test.cxx36
2 files changed, 38 insertions, 0 deletions
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk
index 1476d00997aa..98eb17a5a557 100644
--- a/test/Library_subsequenttest.mk
+++ b/test/Library_subsequenttest.mk
@@ -38,10 +38,12 @@ $(eval $(call gb_Library_use_libraries,subsequenttest,\
$(eval $(call gb_Library_use_externals,subsequenttest,\
boost_headers \
cppunit \
+ libxml2 \
))
$(eval $(call gb_Library_add_exception_objects,subsequenttest,\
test/source/unoapi_test \
+ test/source/unoapixml_test \
test/source/a11y/AccessibilityTools \
test/source/a11y/accessibletestbase \
test/source/a11y/swaccessibletestbase \
diff --git a/test/source/unoapixml_test.cxx b/test/source/unoapixml_test.cxx
new file mode 100644
index 000000000000..b2b3848ab937
--- /dev/null
+++ b/test/source/unoapixml_test.cxx
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include <test/unoapixml_test.hxx>
+
+#include <com/sun/star/frame/Desktop.hpp>
+#include <com/sun/star/frame/XStorable.hpp>
+#include <comphelper/processfactory.hxx>
+#include <comphelper/propertyvalue.hxx>
+
+#include <sfx2/app.hxx>
+#include <sfx2/objsh.hxx>
+#include <utility>
+
+using namespace css;
+using namespace css::uno;
+
+UnoApiXmlTest::UnoApiXmlTest(OUString path)
+ : UnoApiTest(path)
+{
+}
+
+xmlDocUniquePtr UnoApiXmlTest::parseExport(OUString const& url, OUString const& rStreamName)
+{
+ std::unique_ptr<SvStream> const pStream(parseExportStream(url, rStreamName));
+ xmlDocUniquePtr pXmlDoc = parseXmlStream(pStream.get());
+ return pXmlDoc;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */