summaryrefslogtreecommitdiffstats
path: root/tests/querytest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-10 08:51:25 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-10 08:55:40 +0100
commit660ee77c9875ad71d4189e8643f679f574687528 (patch)
treefefb5374c8f99242dfbe1abd37de4e93ccb1dfb3 /tests/querytest.cpp
parent4ee8a44bf4dda625b4d2f58f127869557c1af959 (diff)
downloadsink-660ee77c9875ad71d4189e8643f679f574687528.tar.gz
sink-660ee77c9875ad71d4189e8643f679f574687528.zip
Renamed Resources to ResourceControl
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 89d8693..42064c6 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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 89 Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 164 Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 184 Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 213 Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 233 Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); 254 Sink::ResourceControl::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);