diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-02-13 14:35:33 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-02-13 16:10:03 +0100 |
commit | ac2949ddaf78a95ab53d5d5f862b791d2c2d4312 (patch) | |
tree | 9d8e8cde1a9c175c63499b602c84886fa1b72499 /test | |
parent | 5b3c89570eb2d5a5f5069d30f1d9fee352db974e (diff) |
UnoApiXmlTest: factor out common code
Change-Id: I5c7f76b61a0dab8b4ebd1ac4680a7c25f982680c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163307
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/unoapixml_test.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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: */ |