summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-23 11:51:57 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-23 14:43:56 +0100
commit6c3cebd5aaec641807f5efed814fc5d1c64df149 (patch)
treedc5333838c1a973afc5b72190e0be28dfcdc6e76 /test/source
parent139d1aa610d19ab200deff1e3cd2c787f5c87d89 (diff)
UnoApiTest: factor out createTempFile
Change-Id: I8d7bb4593839d3660b6609d836b09d50b68f5712 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143141 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test/source')
-rw-r--r--test/source/unoapi_test.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx
index ff566c8ffa10..10ee4f01c06b 100644
--- a/test/source/unoapi_test.cxx
+++ b/test/source/unoapi_test.cxx
@@ -218,4 +218,11 @@ std::unique_ptr<vcl::pdf::PDFiumDocument> UnoApiTest::parsePDFExport(const OStri
return pPdfDocument;
}
+void UnoApiTest::createTempCopy(std::u16string_view fileName)
+{
+ OUString url = createFileURL(fileName);
+ auto const e = osl::File::copy(url, maTempFile.GetURL());
+ CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, e);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */