Commit 5e2aafed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QTEST_GUILESS_MAIN where possible

parent 9ee4f4bd
Pipeline #48038 canceled with stage
......@@ -27,4 +27,4 @@ void GlobalPartTest::shouldHaveDefaultValue()
QVERIFY(!globalpart.requestDeleveryConfirmation());
}
QTEST_MAIN(GlobalPartTest)
QTEST_GUILESS_MAIN(GlobalPartTest)
......@@ -14,7 +14,7 @@
#include <MessageComposer/Util>
using namespace MessageComposer;
QTEST_MAIN(UtilTest)
QTEST_GUILESS_MAIN(UtilTest)
UtilTest::UtilTest(QObject *parent)
: QObject(parent)
......
......@@ -10,7 +10,7 @@
#include <QUrl>
using namespace MessageCore;
QTEST_MAIN(StringUtilTest)
QTEST_GUILESS_MAIN(StringUtilTest)
#define lineLength 40
void StringUtilTest::test_SmartQuote()
......
......@@ -29,6 +29,6 @@ private Q_SLOTS:
}
};
QTEST_MAIN(ItemSizeTest)
QTEST_GUILESS_MAIN(ItemSizeTest)
#include "itemsizetest.moc"
......@@ -7,7 +7,7 @@
#include "dkim-verify/dkimcheckpolicy.h"
#include <QTest>
#include <QStandardPaths>
QTEST_MAIN(DKIMCheckPolicyTest)
QTEST_GUILESS_MAIN(DKIMCheckPolicyTest)
DKIMCheckPolicyTest::DKIMCheckPolicyTest(QObject *parent)
: QObject(parent)
......
......@@ -6,7 +6,7 @@
#include "dkimmanagerkeytest.h"
#include <QTest>
QTEST_MAIN(DKIMManagerKeyTest)
QTEST_GUILESS_MAIN(DKIMManagerKeyTest)
DKIMManagerKeyTest::DKIMManagerKeyTest(QObject *parent)
: QObject(parent)
......
......@@ -6,7 +6,7 @@
#include "remotecontentinfotest.h"
#include "remote-content/remotecontentinfo.h"
#include <QTest>
QTEST_MAIN(RemoteContentInfoTest)
QTEST_GUILESS_MAIN(RemoteContentInfoTest)
RemoteContentInfoTest::RemoteContentInfoTest(QObject *parent)
: QObject(parent)
{
......
......@@ -8,7 +8,7 @@
#include "viewer/webengine/blockexternalresourcesurlinterceptor/blockexternalresourcesurlinterceptor.h"
#include <QTest>
#include <QStandardPaths>
QTEST_MAIN(BlockExternalResourcesUrlInterceptorTest)
QTEST_GUILESS_MAIN(BlockExternalResourcesUrlInterceptorTest)
BlockExternalResourcesUrlInterceptorTest::BlockExternalResourcesUrlInterceptorTest(QObject *parent)
: QObject(parent)
{
......
......@@ -41,4 +41,4 @@ void BackOffModeManagerTest::shouldIncreaseBackOff()
QCOMPARE(manager.numberOfHttpFailed(), 5);
}
QTEST_MAIN(BackOffModeManagerTest)
QTEST_GUILESS_MAIN(BackOffModeManagerTest)
......@@ -79,4 +79,4 @@ void CheckPhishingUrlUtilTest::shouldGenerateBackModeDelay()
QVERIFY(result <= minuteMax);
}
QTEST_MAIN(CheckPhishingUrlUtilTest)
QTEST_GUILESS_MAIN(CheckPhishingUrlUtilTest)
......@@ -18,4 +18,4 @@ DownloadLocalDatabaseThreadTest::~DownloadLocalDatabaseThreadTest()
{
}
QTEST_MAIN(DownloadLocalDatabaseThreadTest)
QTEST_GUILESS_MAIN(DownloadLocalDatabaseThreadTest)
......@@ -49,4 +49,4 @@ void HashCacheManagerTest::shouldAddValue()
cache.clearCache();
}
QTEST_MAIN(HashCacheManagerTest)
QTEST_GUILESS_MAIN(HashCacheManagerTest)
......@@ -108,4 +108,4 @@ void LocalDataBaseFileTest::shouldCheckHashBinaryFile()
}
}
QTEST_MAIN(LocalDataBaseFileTest)
QTEST_GUILESS_MAIN(LocalDataBaseFileTest)
......@@ -56,4 +56,4 @@ LocalDataBaseManagerTest::~LocalDataBaseManagerTest()
{
}
QTEST_MAIN(LocalDataBaseManagerTest)
QTEST_GUILESS_MAIN(LocalDataBaseManagerTest)
......@@ -97,4 +97,4 @@ void RiceEncodingDecoderTest::shouldDecodeRiceHashes()
QCOMPARE(hash, result);
}
QTEST_MAIN(RiceEncodingDecoderTest)
QTEST_GUILESS_MAIN(RiceEncodingDecoderTest)
......@@ -74,4 +74,4 @@ void SearchFullHashJobTest::shouldCreateRequest()
}
}
QTEST_MAIN(SearchFullHashJobTest)
QTEST_GUILESS_MAIN(SearchFullHashJobTest)
......@@ -169,4 +169,4 @@ void UrlHashingTest::shouldGenerateHashList()
QCOMPARE(hashing.hashList().count(), numberItems);
}
QTEST_MAIN(UrlHashingTest)
QTEST_GUILESS_MAIN(UrlHashingTest)
......@@ -122,4 +122,4 @@ void VerifyDataBaseUpdateTest::shouldVerifyCheckSums()
QCOMPARE(newSsha256Value.toBase64(), calculateCheckSums.toBase64());
}
QTEST_MAIN(VerifyDataBaseUpdateTest)
QTEST_GUILESS_MAIN(VerifyDataBaseUpdateTest)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment