diff options
Diffstat (limited to 'tests/genericfacadebenchmark.cpp')
-rw-r--r-- | tests/genericfacadebenchmark.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/genericfacadebenchmark.cpp b/tests/genericfacadebenchmark.cpp index 29c91d7..703acd1 100644 --- a/tests/genericfacadebenchmark.cpp +++ b/tests/genericfacadebenchmark.cpp | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <common/domainadaptor.h> | 8 | #include <common/domainadaptor.h> |
9 | #include <common/resultprovider.h> | 9 | #include <common/resultprovider.h> |
10 | #include <common/synclistresult.h> | 10 | #include <common/synclistresult.h> |
11 | #include <common/definitions.h> | ||
11 | 12 | ||
12 | #include "event_generated.h" | 13 | #include "event_generated.h" |
13 | 14 | ||
@@ -56,12 +57,11 @@ private Q_SLOTS: | |||
56 | QBENCHMARK { | 57 | QBENCHMARK { |
57 | auto resultSet = QSharedPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> >::create(); | 58 | auto resultSet = QSharedPointer<Akonadi2::ResultProvider<Akonadi2::ApplicationDomain::Event::Ptr> >::create(); |
58 | auto resourceAccess = QSharedPointer<TestResourceAccess>::create(); | 59 | auto resourceAccess = QSharedPointer<TestResourceAccess>::create(); |
59 | auto storage = QSharedPointer<EntityStorage<Akonadi2::ApplicationDomain::Event> >::create("identifier"); | 60 | TestResourceFacade facade(identifier, resourceAccess); |
60 | TestResourceFacade facade(identifier, storage, resourceAccess); | ||
61 | 61 | ||
62 | async::SyncListResult<Akonadi2::ApplicationDomain::Event::Ptr> result(resultSet->emitter()); | 62 | async::SyncListResult<Akonadi2::ApplicationDomain::Event::Ptr> result(resultSet->emitter()); |
63 | 63 | ||
64 | facade.load(query, resultSet).exec().waitForFinished(); | 64 | facade.load(query, *resultSet).exec().waitForFinished(); |
65 | resultSet->initialResultSetComplete(); | 65 | resultSet->initialResultSetComplete(); |
66 | 66 | ||
67 | //We have to wait for the events that deliver the results to be processed by the eventloop | 67 | //We have to wait for the events that deliver the results to be processed by the eventloop |