From 75c231f0758603120ec562af772b48b5f6ac0e24 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 13 Nov 2015 23:31:41 +0100 Subject: DummyResourceTest and QueryTest are passing sync has been removed from the query code and is now a separate step --- tests/testimplementations.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/testimplementations.h') diff --git a/tests/testimplementations.h b/tests/testimplementations.h index eee78b0..1436c68 100644 --- a/tests/testimplementations.h +++ b/tests/testimplementations.h @@ -85,8 +85,8 @@ public Q_SLOTS: class TestResourceFacade : public Akonadi2::GenericFacade { public: - TestResourceFacade(const QByteArray &instanceIdentifier, const QSharedPointer > storage, const QSharedPointer resourceAccess) - : Akonadi2::GenericFacade(instanceIdentifier, QSharedPointer::create(), storage, resourceAccess) + TestResourceFacade(const QByteArray &instanceIdentifier, const QSharedPointer resourceAccess) + : Akonadi2::GenericFacade(instanceIdentifier, QSharedPointer::create(), resourceAccess) { } -- cgit v1.2.3 From 972f3a4e96876e4c36162a11062e40863d88a2a1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 15 Nov 2015 12:46:26 +0100 Subject: Cleanup --- tests/testimplementations.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'tests/testimplementations.h') diff --git a/tests/testimplementations.h b/tests/testimplementations.h index 1436c68..c371456 100644 --- a/tests/testimplementations.h +++ b/tests/testimplementations.h @@ -21,13 +21,11 @@ #include -#include #include #include #include #include #include -#include #include //Replace with something different @@ -44,30 +42,6 @@ public: virtual ~TestEventAdaptorFactory() {}; }; -class TestEntityStorage : public EntityStorage -{ -public: - using EntityStorage::EntityStorage; - virtual qint64 read(const Akonadi2::Query &query, qint64 oldRevision, const QSharedPointer > &resultProvider) Q_DECL_OVERRIDE - { - for (const auto &res : mResults) { - resultProvider->add(res); - } - for (const auto &res : mModifications) { - resultProvider->modify(res); - } - for (const auto &res : mRemovals) { - resultProvider->remove(res); - } - return mLatestRevision; - } - - QList mResults; - QList mModifications; - QList mRemovals; - qint64 mLatestRevision; -}; - class TestResourceAccess : public Akonadi2::ResourceAccessInterface { Q_OBJECT -- cgit v1.2.3 From 088d8a40c195ce6dcb91556a17f69d26e5586a3e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 28 Nov 2015 12:48:43 +0100 Subject: Removed most uses of SyncListResult and brought back the dummyresourcetest --- tests/testimplementations.h | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/testimplementations.h') diff --git a/tests/testimplementations.h b/tests/testimplementations.h index c371456..a47a775 100644 --- a/tests/testimplementations.h +++ b/tests/testimplementations.h @@ -23,7 +23,6 @@ #include #include -#include #include #include #include -- cgit v1.2.3