Changeset View
Changeset View
Standalone View
Standalone View
autotests/popplerextractortest.cpp
Show All 25 Lines | |||||
26 | #include <QDebug> | 26 | #include <QDebug> | ||
27 | #include <QTest> | 27 | #include <QTest> | ||
28 | #include <QDir> | 28 | #include <QDir> | ||
29 | 29 | | |||
30 | using namespace KFileMetaData; | 30 | using namespace KFileMetaData; | ||
31 | 31 | | |||
32 | QString PopplerExtractorTest::testFilePath(const QString& fileName) const | 32 | QString PopplerExtractorTest::testFilePath(const QString& fileName) const | ||
33 | { | 33 | { | ||
34 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QDir::separator() + fileName; | 34 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QLatin1Char('/') + fileName; | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | void PopplerExtractorTest::test() | 37 | void PopplerExtractorTest::test() | ||
38 | { | 38 | { | ||
39 | PopplerExtractor plugin{this}; | 39 | PopplerExtractor plugin{this}; | ||
40 | 40 | | |||
41 | SimpleExtractionResult result(testFilePath("test.pdf"), "application/pdf"); | 41 | SimpleExtractionResult result(testFilePath("test.pdf"), "application/pdf"); | ||
42 | plugin.extract(&result); | 42 | plugin.extract(&result); | ||
Show All 31 Lines |