Changeset View
Changeset View
Standalone View
Standalone View
autotests/usermetadatawritertest.cpp
Show All 26 Lines | |||||
27 | #include <QFile> | 27 | #include <QFile> | ||
28 | 28 | | |||
29 | #define TEST_FILENAME "writertest.txt" | 29 | #define TEST_FILENAME "writertest.txt" | ||
30 | 30 | | |||
31 | using namespace KFileMetaData; | 31 | using namespace KFileMetaData; | ||
32 | 32 | | |||
33 | QString UserMetaDataWriterTest::testFilePath(const QString& fileName) const | 33 | QString UserMetaDataWriterTest::testFilePath(const QString& fileName) const | ||
34 | { | 34 | { | ||
35 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QDir::separator() + fileName; | 35 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QLatin1Char('/') + fileName; | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | void UserMetaDataWriterTest::initTestCase() | 38 | void UserMetaDataWriterTest::initTestCase() | ||
39 | { | 39 | { | ||
40 | QFile testFile(testFilePath("plain_text_file.txt")); | 40 | QFile testFile(testFilePath("plain_text_file.txt")); | ||
41 | QFile writerTestFile(testFilePath(TEST_FILENAME)); | 41 | QFile writerTestFile(testFilePath(TEST_FILENAME)); | ||
42 | QFile::copy(testFilePath("plain_text_file.txt"), testFilePath(TEST_FILENAME)); | 42 | QFile::copy(testFilePath("plain_text_file.txt"), testFilePath(TEST_FILENAME)); | ||
43 | } | 43 | } | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |