summaryrefslogtreecommitdiffstats
path: root/tests/TestUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestUtil.h')
-rw-r--r--tests/TestUtil.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/TestUtil.h b/tests/TestUtil.h
deleted file mode 100644
index 5b0741b8..00000000
--- a/tests/TestUtil.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#pragma once
-
-#include <QFile>
-#include <QCoreApplication>
-#include <QTest>
-#include <QDir>
-
-#include "test_config.h"
-
-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 MULTIMC_GET_TEST_FILE(file) TestsInternal::readFile(QFINDTESTDATA(file))
-#define MULTIMC_GET_TEST_FILE_UTF8(file) TestsInternal::readFileUtf8(QFINDTESTDATA(file))
-