summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-25 09:55:37 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-25 17:46:46 +0100
commitfd05a0f9ccebaee6f0175281fdeb6fe3f3168fd2 (patch)
tree15f71ddefa12f32cd5ab3e0908f028abf1d8d828 /sdext
parent2f91ab025de850fe5af8114565755a8deed55911 (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.mk3
-rw-r--r--sdext/qa/unit/data/tdf104597_textrun.pdf (renamed from sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf)bin21042 -> 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)bin13199 -> 13199 bytes
-rw-r--r--sdext/qa/unit/data/tdf78427-testFontFeatures.pdf (renamed from sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf)bin81012 -> 81012 bytes
-rw-r--r--sdext/qa/unit/data/testSpace.pdf (renamed from sdext/source/pdfimport/test/testdocs/testSpace.pdf)bin8140 -> 8140 bytes
-rw-r--r--sdext/qa/unit/data/testTdf141709_chinesechar.pdf (renamed from sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf)bin11119 -> 11119 bytes
-rw-r--r--sdext/qa/unit/data/testTdf143959.pdf (renamed from sdext/source/pdfimport/test/testdocs/testTdf143959.pdf)bin63999 -> 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
index dcee96aa3169..dcee96aa3169 100644
--- a/sdext/source/pdfimport/test/testdocs/tdf104597_textrun.pdf
+++ b/sdext/qa/unit/data/tdf104597_textrun.pdf
Binary files differ
diff --git a/sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf b/sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf
index 685da5db956c..685da5db956c 100644
--- a/sdext/source/pdfimport/test/testdocs/tdf78427-MyraidPro-Semibold-Light.pdf
+++ b/sdext/qa/unit/data/tdf78427-MyraidPro-Semibold-Light.pdf
Binary files differ
diff --git a/sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf b/sdext/qa/unit/data/tdf78427-testFontFeatures.pdf
index 0405d95f8425..0405d95f8425 100644
--- a/sdext/source/pdfimport/test/testdocs/tdf78427-testFontFeatures.pdf
+++ b/sdext/qa/unit/data/tdf78427-testFontFeatures.pdf
Binary files differ
diff --git a/sdext/source/pdfimport/test/testdocs/testSpace.pdf b/sdext/qa/unit/data/testSpace.pdf
index 3c94f31ea15b..3c94f31ea15b 100644
--- a/sdext/source/pdfimport/test/testdocs/testSpace.pdf
+++ b/sdext/qa/unit/data/testSpace.pdf
Binary files differ
diff --git a/sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf b/sdext/qa/unit/data/testTdf141709_chinesechar.pdf
index 3198782faa73..3198782faa73 100644
--- a/sdext/source/pdfimport/test/testdocs/testTdf141709_chinesechar.pdf
+++ b/sdext/qa/unit/data/testTdf141709_chinesechar.pdf
Binary files differ
diff --git a/sdext/source/pdfimport/test/testdocs/testTdf143959.pdf b/sdext/qa/unit/data/testTdf143959.pdf
index 594e734a5629..594e734a5629 100644
--- a/sdext/source/pdfimport/test/testdocs/testTdf143959.pdf
+++ b/sdext/qa/unit/data/testTdf143959.pdf
Binary files differ
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())));