| 121 | // FIXME: implement on windows, OSX, then test. |
| 122 | #if defined(Q_OS_LINUX) |
| 123 | void test_createShortcut_data() |
| 124 | { |
| 125 | QTest::addColumn<QString>("location"); |
| 126 | QTest::addColumn<QString>("dest"); |
| 127 | QTest::addColumn<QStringList>("args"); |
| 128 | QTest::addColumn<QString>("name"); |
| 129 | QTest::addColumn<QString>("iconLocation"); |
| 130 | QTest::addColumn<QByteArray>("result"); |
| 131 | |
| 132 | QTest::newRow("unix") << QDir::currentPath() |
| 133 | << "asdfDest" |
| 134 | << (QStringList() << "arg1" << "arg2") |
| 135 | << "asdf" |
| 136 | << QString() |
| 137 | #if defined(Q_OS_LINUX) |
| 138 | << GET_TEST_FILE("data/FileSystem-test_createShortcut-unix") |
| 139 | #elif defined(Q_OS_WIN) |
| 140 | << QByteArray() |
| 141 | #endif |
| 142 | ; |
| 143 | } |
| 144 | |
| 145 | void test_createShortcut() |
| 146 | { |
nothing calls this directly
no test coverage detected