summaryrefslogtreecommitdiffstats
path: root/tests/querytest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-09 15:47:09 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-09 15:47:09 +0100
commit573051b8df4a2961b4ba8a1b7e31f1437517f9c8 (patch)
treebac9c2680b6ceec49df48082335046338c940144 /tests/querytest.cpp
parent4d662fec99071ec8160c33b2fa17794e898bd3be (diff)
downloadsink-573051b8df4a2961b4ba8a1b7e31f1437517f9c8.tar.gz
sink-573051b8df4a2961b4ba8a1b7e31f1437517f9c8.zip
Moved some API
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r--tests/querytest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp
index cac81c5..89d8693 100644
--- a/tests/querytest.cpp
+++ b/tests/querytest.cpp
@@ -86,7 +86,7 @@ private Q_SLOTS:
86 query.liveQuery = false; 86 query.liveQuery = false;
87 87
88 //Ensure all local data is processed 88 //Ensure all local data is processed
89 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 89 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
90 90
91 //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data 91 //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data
92 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); 92 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query);
@@ -161,7 +161,7 @@ private Q_SLOTS:
161 query.resources << "org.kde.dummy.instance1"; 161 query.resources << "org.kde.dummy.instance1";
162 162
163 //Ensure all local data is processed 163 //Ensure all local data is processed
164 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 164 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
165 165
166 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); 166 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query);
167 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); 167 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool());
@@ -181,7 +181,7 @@ private Q_SLOTS:
181 query.parentProperty = "parent"; 181 query.parentProperty = "parent";
182 182
183 //Ensure all local data is processed 183 //Ensure all local data is processed
184 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 184 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
185 185
186 //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data 186 //We fetch after the data is available and don't rely on the live query mechanism to deliver the actual data
187 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); 187 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query);
@@ -210,7 +210,7 @@ private Q_SLOTS:
210 query.propertyFilter.insert("uid", "test1"); 210 query.propertyFilter.insert("uid", "test1");
211 211
212 //Ensure all local data is processed 212 //Ensure all local data is processed
213 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 213 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
214 214
215 //We fetch before the data is available and rely on the live query mechanism to deliver the actual data 215 //We fetch before the data is available and rely on the live query mechanism to deliver the actual data
216 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); 216 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query);
@@ -230,7 +230,7 @@ private Q_SLOTS:
230 query.resources << "org.kde.dummy.instance1"; 230 query.resources << "org.kde.dummy.instance1";
231 231
232 //Ensure all local data is processed 232 //Ensure all local data is processed
233 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 233 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
234 234
235 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query); 235 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Folder>(query);
236 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); 236 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool());
@@ -251,7 +251,7 @@ private Q_SLOTS:
251 query.propertyFilter.insert("folder", folderEntity->identifier()); 251 query.propertyFilter.insert("folder", folderEntity->identifier());
252 252
253 //Ensure all local data is processed 253 //Ensure all local data is processed
254 Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); 254 Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished();
255 255
256 //We fetch before the data is available and rely on the live query mechanism to deliver the actual data 256 //We fetch before the data is available and rely on the live query mechanism to deliver the actual data
257 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); 257 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query);