diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-05 01:47:27 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-05 01:47:27 +0200 |
commit | f93f867c3da084c6d6c5e3ed23896609cff0e692 (patch) | |
tree | 3234c54d9aefb5566afc0c8ff52874e20ab35304 /tests/tst_userutils.cpp | |
parent | 7459eb627c97d27ef6e12cdededa48e1ff03d533 (diff) | |
download | MultiMC-f93f867c3da084c6d6c5e3ed23896609cff0e692.tar MultiMC-f93f867c3da084c6d6c5e3ed23896609cff0e692.tar.gz MultiMC-f93f867c3da084c6d6c5e3ed23896609cff0e692.tar.lz MultiMC-f93f867c3da084c6d6c5e3ed23896609cff0e692.tar.xz MultiMC-f93f867c3da084c6d6c5e3ed23896609cff0e692.zip |
NOISSUE dissolve util library
Diffstat (limited to 'tests/tst_userutils.cpp')
-rw-r--r-- | tests/tst_userutils.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/tst_userutils.cpp b/tests/tst_userutils.cpp index bc7644f3..01f1b2a6 100644 --- a/tests/tst_userutils.cpp +++ b/tests/tst_userutils.cpp @@ -1,8 +1,7 @@ #include <QTest> #include <QStandardPaths> #include "TestUtil.h" - -#include "userutils.h" +#include <FileSystem.h> class UserUtilsTest : public QObject { @@ -20,7 +19,7 @@ slots: void test_getDesktop() { - QCOMPARE(Util::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); + QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); } // this is only valid on linux @@ -57,7 +56,7 @@ slots: QFETCH(QString, iconLocation); QFETCH(QByteArray, result); - QVERIFY(Util::createShortCut(location, dest, args, name, iconLocation)); + QVERIFY(FS::createShortCut(location, dest, args, name, iconLocation)); QCOMPARE(QString::fromLocal8Bit(TestsInternal::readFile(location + QDir::separator() + name + ".desktop")), QString::fromLocal8Bit(result)); //QDir().remove(location); |