Changeset View
Changeset View
Standalone View
Standalone View
autotests/externalextractortest.cpp
Show All 27 Lines | |||||
28 | #include <QTest> | 28 | #include <QTest> | ||
29 | #include <QDir> | 29 | #include <QDir> | ||
30 | #include <QTemporaryFile> | 30 | #include <QTemporaryFile> | ||
31 | 31 | | |||
32 | using namespace KFileMetaData; | 32 | using namespace KFileMetaData; | ||
33 | 33 | | |||
34 | QString ExternalExtractorTest::testFilePath(const QString& fileName) const | 34 | QString ExternalExtractorTest::testFilePath(const QString& fileName) const | ||
35 | { | 35 | { | ||
36 | return QLatin1String(INDEXER_TESTS_SAMPLE_CONFIGURED_FILES_PATH) + QDir::separator() + fileName; | 36 | return QLatin1String(INDEXER_TESTS_SAMPLE_CONFIGURED_FILES_PATH) + QLatin1Char('/') + fileName; | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | void ExternalExtractorTest::test() | 39 | void ExternalExtractorTest::test() | ||
40 | { | 40 | { | ||
41 | QTemporaryFile file; | 41 | QTemporaryFile file; | ||
42 | file.open(); | 42 | file.open(); | ||
43 | file.write("Hello"); | 43 | file.write("Hello"); | ||
44 | file.close(); | 44 | file.close(); | ||
Show All 9 Lines |