diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-25 09:55:37 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-25 17:46:46 +0100 |
commit | fd05a0f9ccebaee6f0175281fdeb6fe3f3168fd2 (patch) | |
tree | 15f71ddefa12f32cd5ab3e0908f028abf1d8d828 /sdext | |
parent | 2f91ab025de850fe5af8114565755a8deed55911 (diff) |
CppunitTest_sdext_pdfimport: move it to 'qa' folder
like the rest of folders in the project
Change-Id: Ifb833aa8acedc8549c74383b2d76737d4f425c09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143277
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/CppunitTest_sdext_pdfimport.mk | 3 | ||||
-rw-r--r-- | sdext/qa/unit/data/tdf104597_textrun.pdf (renamed from sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf) | bin | 21042 -> 21042 bytes | |||
-rw-r--r-- | sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf (renamed from sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf) | bin | 13199 -> 13199 bytes | |||
-rw-r--r-- | sdext/qa/unit/data/tdf78427-testFontFeatures.pdf (renamed from sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf) | bin | 81012 -> 81012 bytes | |||
-rw-r--r-- | sdext/qa/unit/data/testSpace.pdf (renamed from sdext/source/pdfimport/test/testdocs/testSpace.pdf) | bin | 8140 -> 8140 bytes | |||
-rw-r--r-- | sdext/qa/unit/data/testTdf141709_chinesechar.pdf (renamed from sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf) | bin | 11119 -> 11119 bytes | |||
-rw-r--r-- | sdext/qa/unit/data/testTdf143959.pdf (renamed from sdext/source/pdfimport/test/testdocs/testTdf143959.pdf) | bin | 63999 -> 63999 bytes | |||
-rw-r--r-- | sdext/qa/unit/pdfimport.cxx (renamed from sdext/source/pdfimport/test/tests.cxx) | 18 |
8 files changed, 11 insertions, 10 deletions
diff --git a/sdext/CppunitTest_sdext_pdfimport.mk b/sdext/CppunitTest_sdext_pdfimport.mk index b2676d32002b..864fb7084c88 100644 --- a/sdext/CppunitTest_sdext_pdfimport.mk +++ b/sdext/CppunitTest_sdext_pdfimport.mk @@ -13,6 +13,7 @@ $(eval $(call gb_CppunitTest_use_sdk_api,sdext_pdfimport)) $(eval $(call gb_CppunitTest_set_include,sdext_pdfimport,\ -I$(SRCDIR)/sdext/source/pdfimport/inc \ + -I$(SRCDIR)/sdext/source/pdfimport/test \ $$(INCLUDE) \ )) @@ -38,7 +39,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sdext_pdfimport,\ $(eval $(call gb_CppunitTest_use_library_objects,sdext_pdfimport,pdfimport)) $(eval $(call gb_CppunitTest_add_exception_objects,sdext_pdfimport,\ - sdext/source/pdfimport/test/tests \ + sdext/qa/unit/pdfimport \ )) $(eval $(call gb_CppunitTest_use_executable,sdext_pdfimport,xpdfimport)) diff --git a/sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf b/sdext/qa/unit/data/tdf104597_textrun.pdf Binary files differindex dcee96aa3169..dcee96aa3169 100644 --- a/sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf +++ b/sdext/qa/unit/data/tdf104597_textrun.pdf diff --git a/sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf b/sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf Binary files differindex 685da5db956c..685da5db956c 100644 --- a/sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf +++ b/sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf diff --git a/sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf b/sdext/qa/unit/data/tdf78427-testFontFeatures.pdf Binary files differindex 0405d95f8425..0405d95f8425 100644 --- a/sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf +++ b/sdext/qa/unit/data/tdf78427-testFontFeatures.pdf diff --git a/sdext/source/pdfimport/test/testdocs/testSpace.pdf b/sdext/qa/unit/data/testSpace.pdf Binary files differindex 3c94f31ea15b..3c94f31ea15b 100644 --- a/sdext/source/pdfimport/test/testdocs/testSpace.pdf +++ b/sdext/qa/unit/data/testSpace.pdf diff --git a/sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf b/sdext/qa/unit/data/testTdf141709_chinesechar.pdf Binary files differindex 3198782faa73..3198782faa73 100644 --- a/sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf +++ b/sdext/qa/unit/data/testTdf141709_chinesechar.pdf diff --git a/sdext/source/pdfimport/test/testdocs/testTdf143959.pdf b/sdext/qa/unit/data/testTdf143959.pdf Binary files differindex 594e734a5629..594e734a5629 100644 --- a/sdext/source/pdfimport/test/testdocs/testTdf143959.pdf +++ b/sdext/qa/unit/data/testTdf143959.pdf diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/qa/unit/pdfimport.cxx index 7c10c85b29a5..bb09202897ec 100644 --- a/sdext/source/pdfimport/test/tests.cxx +++ b/sdext/qa/unit/pdfimport.cxx @@ -19,12 +19,12 @@ #include <config_features.h> -#include "outputwrap.hxx" +#include <outputwrap.hxx> #include <contentsink.hxx> #include <pdfihelper.hxx> #include <wrapper.hxx> #include <pdfparse.hxx> -#include "../pdfiadaptor.hxx" +#include <../pdfiadaptor.hxx> #include <rtl/math.hxx> #include <osl/file.hxx> @@ -565,7 +565,7 @@ namespace OString aOutput; CPPUNIT_ASSERT_MESSAGE("Exporting to ODF", - xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf"), + xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/qa/unit/data/testTdf141709_chinesechar.pdf"), new OutputWrapString(aOutput), nullptr)); xmlDocUniquePtr pXmlDoc(xmlParseDoc(reinterpret_cast<xmlChar const *>(aOutput.getStr()))); @@ -588,7 +588,7 @@ namespace OString aOutput; CPPUNIT_ASSERT_MESSAGE("Converting PDF to ODF XML", xAdaptor->odfConvert( m_directories.getURLFromSrc( - u"/sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf"), + u"/sdext/qa/unit/data/tdf78427-testFontFeatures.pdf"), new OutputWrapString(aOutput), nullptr )); // Un-comment the following debug line to see the content of generated XML content in @@ -720,7 +720,7 @@ namespace OString aOutput; CPPUNIT_ASSERT_MESSAGE("Converting PDF to ODF XML", xAdaptor->odfConvert( m_directories.getURLFromSrc( - u"/sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf"), + u"/sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf"), new OutputWrapString(aOutput), nullptr )); //std::cout << aOutput << std::endl; @@ -754,7 +754,7 @@ namespace OString aOutput; CPPUNIT_ASSERT_MESSAGE("Converting PDF to ODF XML", - xAdaptor->odfConvert( m_directories.getURLFromSrc(u"/sdext/source/pdfimport/test/testdocs/testTdf143959.pdf"), + xAdaptor->odfConvert( m_directories.getURLFromSrc(u"/sdext/qa/unit/data/testTdf143959.pdf"), new OutputWrapString(aOutput), nullptr )); @@ -789,7 +789,7 @@ namespace OString aOutput; CPPUNIT_ASSERT_MESSAGE("Converting PDF to ODF XML", - xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf"), + xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/qa/unit/data/tdf104597_textrun.pdf"), new OutputWrapString(aOutput), nullptr)); @@ -826,7 +826,7 @@ namespace // Test pdf text run in the Writer PDF import filter xAdaptor->setTreeVisitorFactory(createWriterTreeVisitorFactory()); OString aOutput2; - xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf"), + xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/qa/unit/data/tdf104597_textrun.pdf"), new OutputWrapString(aOutput2), nullptr); xmlDocUniquePtr pXmlDoc2(xmlParseDoc(reinterpret_cast<xmlChar const *>(aOutput2.getStr()))); @@ -849,7 +849,7 @@ namespace xAdaptor->setTreeVisitorFactory(createWriterTreeVisitorFactory()); OString aOutput; - xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/source/pdfimport/test/testdocs/testSpace.pdf"), + xAdaptor->odfConvert(m_directories.getURLFromSrc(u"/sdext/qa/unit/data/testSpace.pdf"), new OutputWrapString(aOutput), nullptr); xmlDocUniquePtr pXmlDoc(xmlParseDoc(reinterpret_cast<xmlChar const *>(aOutput.getStr()))); |