Changeset View
Changeset View
Standalone View
Standalone View
autotests/exiv2extractortest.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 Exiv2ExtractorTest::testFilePath(const QString& fileName) const | 32 | QString Exiv2ExtractorTest::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 Exiv2ExtractorTest::test() | 37 | void Exiv2ExtractorTest::test() | ||
38 | { | 38 | { | ||
39 | Exiv2Extractor plugin{this}; | 39 | Exiv2Extractor plugin{this}; | ||
40 | 40 | | |||
41 | SimpleExtractionResult result(testFilePath("test.jpg"), "image/jpeg"); | 41 | SimpleExtractionResult result(testFilePath("test.jpg"), "image/jpeg"); | ||
42 | plugin.extract(&result); | 42 | plugin.extract(&result); | ||
Show All 13 Lines |