diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-30 18:49:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-30 18:49:04 +0100 |
commit | 412563b7ff18684f9786f4e40b1a4d538f2d5233 (patch) | |
tree | 3190a317306cfb71b0d5d9bc4c0f06b260a92ce6 /tests/genericfacadebenchmark.cpp | |
parent | 790991aa1007d3271d80bc7e77f5b4f86c9bcef0 (diff) | |
parent | 6ad307dd846d07f1b55a1679a8d2eb47525af57d (diff) | |
download | sink-412563b7ff18684f9786f4e40b1a4d538f2d5233.tar.gz sink-412563b7ff18684f9786f4e40b1a4d538f2d5233.zip |
Merge branch 'feature/modelresult' into develop
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 |