Changeset View
Changeset View
Standalone View
Standalone View
autotests/odfextractortest.cpp
Show All 27 Lines | |||||
28 | #include "simpleextractionresult.h" | 28 | #include "simpleextractionresult.h" | ||
29 | #include "indexerextractortestsconfig.h" | 29 | #include "indexerextractortestsconfig.h" | ||
30 | #include "extractors/odfextractor.h" | 30 | #include "extractors/odfextractor.h" | ||
31 | 31 | | |||
32 | using namespace KFileMetaData; | 32 | using namespace KFileMetaData; | ||
33 | 33 | | |||
34 | QString OdfExtractorTest::testFilePath(const QString& fileName) const | 34 | QString OdfExtractorTest::testFilePath(const QString& fileName) const | ||
35 | { | 35 | { | ||
36 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QDir::separator() + fileName; | 36 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QLatin1Char('/') + fileName; | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | void OdfExtractorTest::testText() | 39 | void OdfExtractorTest::testText() | ||
40 | { | 40 | { | ||
41 | OdfExtractor plugin{this}; | 41 | OdfExtractor plugin{this}; | ||
42 | 42 | | |||
43 | SimpleExtractionResult result(testFilePath(QStringLiteral("test.odt")), QStringLiteral("application/vnd.oasis.opendocument.text")); | 43 | SimpleExtractionResult result(testFilePath(QStringLiteral("test.odt")), QStringLiteral("application/vnd.oasis.opendocument.text")); | ||
44 | plugin.extract(&result); | 44 | plugin.extract(&result); | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |