aboutsummaryrefslogtreecommitdiff
path: root/cmake/UnitTest/TestUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/UnitTest/TestUtil.h')
-rw-r--r--cmake/UnitTest/TestUtil.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/cmake/UnitTest/TestUtil.h b/cmake/UnitTest/TestUtil.h
deleted file mode 100644
index ebe3c662..00000000
--- a/cmake/UnitTest/TestUtil.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#pragma once
-
-#include <QFile>
-#include <QCoreApplication>
-#include <QTest>
-#include <QDir>
-
-#define expandstr(s) expandstr2(s)
-#define expandstr2(s) #s
-
-class TestsInternal
-{
-public:
- static QByteArray readFile(const QString &fileName)
- {
- QFile f(fileName);
- f.open(QFile::ReadOnly);
- return f.readAll();
- }
- static QString readFileUtf8(const QString &fileName)
- {
- return QString::fromUtf8(readFile(fileName));
- }
-};
-
-#define GET_TEST_FILE(file) TestsInternal::readFile(QFINDTESTDATA(file))
-#define GET_TEST_FILE_UTF8(file) TestsInternal::readFileUtf8(QFINDTESTDATA(file))
-