From 35b28af1f449edb1bac0b0bda606c3c06b2fe102 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 15 Oct 2015 13:56:45 +0200 Subject: Moved more entitystorage functionality back to facade. To avoid unnecessary abstraction layers that don't solve a problem, and to allow facades to customize how entities are loaded. --- tests/genericfacadebenchmark.cpp | 2 +- tests/genericfacadetest.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/genericfacadebenchmark.cpp b/tests/genericfacadebenchmark.cpp index 3e98fce..10aabd4 100644 --- a/tests/genericfacadebenchmark.cpp +++ b/tests/genericfacadebenchmark.cpp @@ -53,7 +53,7 @@ private Q_SLOTS: QBENCHMARK { auto resultSet = QSharedPointer >::create(); auto resourceAccess = QSharedPointer::create(); - auto storage = QSharedPointer >::create("identifier", domainTypeAdaptorFactory, "bufferType"); + auto storage = QSharedPointer >::create("identifier"); TestResourceFacade facade(identifier, storage, resourceAccess); async::SyncListResult result(resultSet->emitter()); diff --git a/tests/genericfacadetest.cpp b/tests/genericfacadetest.cpp index ae6a685..183a62a 100644 --- a/tests/genericfacadetest.cpp +++ b/tests/genericfacadetest.cpp @@ -29,7 +29,7 @@ private Q_SLOTS: query.liveQuery = false; auto resultSet = QSharedPointer >::create(); - auto storage = QSharedPointer::create("identifier", QSharedPointer::create(), "bufferType"); + auto storage = QSharedPointer::create("identifier"); auto resourceAccess = QSharedPointer::create(); storage->mResults << Akonadi2::ApplicationDomain::Event::Ptr::create(); TestResourceFacade facade("identifier", storage, resourceAccess); @@ -51,7 +51,7 @@ private Q_SLOTS: query.liveQuery = true; auto resultSet = QSharedPointer >::create(); - auto storage = QSharedPointer::create("identifier", QSharedPointer::create(), "bufferType"); + auto storage = QSharedPointer::create("identifier"); auto resourceAccess = QSharedPointer::create(); storage->mResults << Akonadi2::ApplicationDomain::Event::Ptr::create(); TestResourceFacade facade("identifier", storage, resourceAccess); @@ -83,7 +83,7 @@ private Q_SLOTS: query.liveQuery = true; auto resultSet = QSharedPointer >::create(); - auto storage = QSharedPointer::create("identifier", QSharedPointer::create(), "bufferType"); + auto storage = QSharedPointer::create("identifier"); auto resourceAccess = QSharedPointer::create(); auto entity = QSharedPointer::create("resource", "id2", 0, QSharedPointer::create()); entity->setProperty("test", "test1"); @@ -120,7 +120,7 @@ private Q_SLOTS: query.liveQuery = true; auto resultSet = QSharedPointer >::create(); - auto storage = QSharedPointer::create("identifier", QSharedPointer::create(), "bufferType"); + auto storage = QSharedPointer::create("identifier"); auto resourceAccess = QSharedPointer::create(); auto entity = QSharedPointer::create("resource", "id2", 0, QSharedPointer()); storage->mResults << entity; -- cgit v1.2.3