diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-27 17:30:04 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-27 17:30:04 +0100 |
commit | 5b41b26a349967acf2197f9f9228526193fd826e (patch) | |
tree | 166452bcc0757564deefe233bf031d2ccb0564d2 /tests/dummyresourcebenchmark.cpp | |
parent | 13af56e436f49df32d3b2f6f223cf1dec2eabaac (diff) | |
download | sink-5b41b26a349967acf2197f9f9228526193fd826e.tar.gz sink-5b41b26a349967acf2197f9f9228526193fd826e.zip |
Introduced a QueryRunner object
The QueryRunner object lives for the duration of the query (so just
for the initial query for non-live queries, and for the lifetime of the
result model for live queries).
It's supposed to handle all the threading internally and decouple the
lifetime of the facade.
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index 609b8dc..6eaf065 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -7,7 +7,6 @@ | |||
7 | #include "clientapi.h" | 7 | #include "clientapi.h" |
8 | #include "commands.h" | 8 | #include "commands.h" |
9 | #include "entitybuffer.h" | 9 | #include "entitybuffer.h" |
10 | #include "synclistresult.h" | ||
11 | #include "pipeline.h" | 10 | #include "pipeline.h" |
12 | #include "log.h" | 11 | #include "log.h" |
13 | #include "resourceconfig.h" | 12 | #include "resourceconfig.h" |
@@ -115,7 +114,6 @@ private Q_SLOTS: | |||
115 | 114 | ||
116 | query.propertyFilter.insert("uid", "testuid"); | 115 | query.propertyFilter.insert("uid", "testuid"); |
117 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); | 116 | auto model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::Event>(query); |
118 | model->fetchMore(QModelIndex()); | ||
119 | QTRY_COMPARE(model->rowCount(QModelIndex()), num); | 117 | QTRY_COMPARE(model->rowCount(QModelIndex()), num); |
120 | } | 118 | } |
121 | qDebug() << "Query Time: " << time.elapsed() << "/sec " << num*1000/time.elapsed(); | 119 | qDebug() << "Query Time: " << time.elapsed() << "/sec " << num*1000/time.elapsed(); |