Commit 88eeb24a authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix Krazy issues

parent f5f49f91
......@@ -24,7 +24,7 @@ macro(add_akonadi_isolated_test_advanced _source _additionalsources _linklibrari
add_executable( ${_name} ${_test} ${_additionalsources})
ecm_mark_as_test(${_name})
target_link_libraries(${_name}
Qt5::Test Qt5::Gui Qt5::Widgets KF5::KIOCore KF5::AkonadiCore KF5::DBusAddons
Qt5::Test Qt5::Gui Qt5::Widgets Qt5::Network KF5::KIOCore KF5::AkonadiCore KF5::DBusAddons
${_linklibraries})
if (NOT DEFINED _testrunner)
......
......@@ -71,7 +71,15 @@ add_library(akonaditestfake SHARED
generate_export_header(akonaditestfake BASE_NAME akonaditestfake)
target_link_libraries(akonaditestfake Qt5::DBus KF5::AkonadiCore Qt5::Test Qt5::Widgets KF5::DBusAddons KF5::AkonadiPrivate)
target_link_libraries(akonaditestfake
Qt5::DBus
KF5::AkonadiCore
Qt5::Test
Qt5::Widgets
Qt5::Network
KF5::DBusAddons
KF5::AkonadiPrivate
)
add_executable(akonadi-firstrun
../../src/core/firstrun.cpp
......
......@@ -20,7 +20,7 @@
#ifndef ATTRIBUTEFACTORYTEST_H
#define ATTRIBUTEFACTORYTEST_H
#include <QtCore/QObject>
#include <QObject>
class AttributeFactoryTest : public QObject
{
......
......@@ -21,7 +21,7 @@
#include "collection.h"
#include <QtCore/QObject>
#include <QObject>
namespace Akonadi
{
......
......@@ -25,8 +25,8 @@
#include <itemdeletejob.h>
#include <agentmanager.h>
#include <QtCore/QObject>
#include <QtCore/QSettings>
#include <QObject>
#include <QSettings>
#include <qtest_akonadi.h>
......
......@@ -20,7 +20,7 @@
#ifndef COLLECTIONATTRIBUTETEST_H
#define COLLECTIONATTRIBUTETEST_H
#include <QtCore/QObject>
#include <QObject>
class CollectionAttributeTest : public QObject
{
......
......@@ -19,7 +19,7 @@
#include "collectioncolorattribute.h"
#include <QtCore/QObject>
#include <QObject>
#include <QTest>
......
......@@ -26,7 +26,7 @@
#include <itemfetchjob.h>
#include <itemfetchscope.h>
#include <QtCore/QObject>
#include <QObject>
#include "test_utils.h"
......
......@@ -20,7 +20,7 @@
#ifndef COLLECTIONJOBTEST_H
#define COLLECTIONJOBTEST_H
#include <QtCore/QObject>
#include <QObject>
class CollectionJobTest : public QObject
{
......
......@@ -20,7 +20,7 @@
#ifndef COLLECTIONPATHRESOLVER_TEST_H
#define COLLECTIONPATHRESOLVER_TEST_H
#include <QtCore/QObject>
#include <QObject>
class CollectionPathResolverTest : public QObject
{
......
......@@ -33,7 +33,7 @@
#include <krandom.h>
#include <QtCore/QObject>
#include <QObject>
#include <QSignalSpy>
#include <QEventLoop>
......
......@@ -19,7 +19,7 @@
#include "entitydisplayattribute.h"
#include <QtCore/QObject>
#include <QObject>
#include <qtest.h>
......
......@@ -329,7 +329,7 @@ void FakeJobResponse::parseEntityString(QList<FakeJobResponse *> &collectionResp
}
tag.setId(fakeServerData->nextTagId());
tag.setRemoteId("RID_" + QByteArray::number(tag.id()) + " " + type.toLatin1());
tag.setRemoteId("RID_" + QByteArray::number(tag.id()) + ' ' + type.toLatin1());
tag.setType(type.toLatin1());
if (depth == 0) {
......
......@@ -79,7 +79,7 @@ class AKONADITESTFAKE_EXPORT FakeNotificationSource : public QObject
{
Q_OBJECT
public:
FakeNotificationSource(QObject *parent = Q_NULLPTR)
explicit FakeNotificationSource(QObject *parent = Q_NULLPTR)
: QObject(parent)
{
}
......
......@@ -31,7 +31,7 @@ class AKONADITESTFAKE_EXPORT FakeMonitor : public Akonadi::ChangeRecorder
{
Q_OBJECT
public:
FakeMonitor(QObject *parent = Q_NULLPTR);
explicit FakeMonitor(QObject *parent = Q_NULLPTR);
private:
Q_DECLARE_PRIVATE(FakeMonitor)
......
......@@ -116,7 +116,7 @@ void GidTest::testSetAndFetch()
QFETCH(Item, toFetch);
QFETCH(Item::List, expected);
foreach (Item item, input) {
Q_FOREACH (const Item &item, input) {
fetchAndSetGid(item);
}
......@@ -125,7 +125,7 @@ void GidTest::testSetAndFetch()
AKVERIFYEXEC(fetch);
Item::List fetched = fetch->items();
QCOMPARE(fetched.count(), expected.size());
foreach (Item item, expected) {
Q_FOREACH (const Item &item, expected) {
QVERIFY(expected.removeOne(item));
}
QVERIFY(expected.isEmpty());
......
......@@ -20,7 +20,7 @@
#ifndef GIDTEST_H
#define GIDTEST_H
#include <QtCore/QObject>
#include <QObject>
class GidTest : public QObject
{
......
......@@ -21,8 +21,8 @@
#include "private/imapparser_p.h"
#include <qtest.h>
#include <QtCore/QDebug>
#include <QtCore/QVariant>
#include <QDebug>
#include <QVariant>
#include <QBuffer>
Q_DECLARE_METATYPE(QList<QByteArray>)
......
......@@ -20,7 +20,7 @@
#ifndef IMAPPARSER_TEST_H
#define IMAPPARSER_TEST_H
#include <QtCore/QObject>
#include <QObject>
class ImapParserTest : public QObject
{
......
......@@ -20,7 +20,7 @@
#ifndef AKONADI_IMAPSETTEST_H
#define AKONADI_IMAPSETTEST_H
#include <QtCore/QObject>
#include <QObject>
class ImapSetTest : public QObject
{
......
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