From ac2949ddaf78a95ab53d5d5f862b791d2c2d4312 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 13 Feb 2024 14:35:33 +0100 Subject: UnoApiXmlTest: factor out common code Change-Id: I5c7f76b61a0dab8b4ebd1ac4680a7c25f982680c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163307 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- test/source/unoapixml_test.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/source/unoapixml_test.cxx b/test/source/unoapixml_test.cxx index f604634efd6a..bf0f830a7355 100644 --- a/test/source/unoapixml_test.cxx +++ b/test/source/unoapixml_test.cxx @@ -33,4 +33,10 @@ xmlDocUniquePtr UnoApiXmlTest::parseExport(OUString const& rStreamName) return pXmlDoc; } +xmlDocUniquePtr UnoApiXmlTest::parseExportedFile() +{ + auto stream(SvFileStream(maTempFile.GetURL(), StreamMode::READ | StreamMode::TEMPORARY)); + return parseXmlStream(&stream); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit