diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 15:47:09 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-09 15:47:09 +0100 |
commit | 573051b8df4a2961b4ba8a1b7e31f1437517f9c8 (patch) | |
tree | bac9c2680b6ceec49df48082335046338c940144 /tests/dummyresourcetest.cpp | |
parent | 4d662fec99071ec8160c33b2fa17794e898bd3be (diff) | |
download | sink-573051b8df4a2961b4ba8a1b7e31f1437517f9c8.tar.gz sink-573051b8df4a2961b4ba8a1b7e31f1437517f9c8.zip |
Moved some API
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r-- | tests/dummyresourcetest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index bfa4885..e74fe25 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp | |||
@@ -65,7 +65,7 @@ private Q_SLOTS: | |||
65 | query.resources << "org.kde.dummy.instance1"; | 65 | query.resources << "org.kde.dummy.instance1"; |
66 | 66 | ||
67 | //Ensure all local data is processed | 67 | //Ensure all local data is processed |
68 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 68 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
69 | 69 | ||
70 | query.propertyFilter.insert("uid", "testuid"); | 70 | query.propertyFilter.insert("uid", "testuid"); |
71 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); | 71 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); |
@@ -89,7 +89,7 @@ private Q_SLOTS: | |||
89 | query.resources << "org.kde.dummy.instance1"; | 89 | query.resources << "org.kde.dummy.instance1"; |
90 | 90 | ||
91 | //Ensure all local data is processed | 91 | //Ensure all local data is processed |
92 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 92 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
93 | 93 | ||
94 | query.propertyFilter.insert("uid", "testuid"); | 94 | query.propertyFilter.insert("uid", "testuid"); |
95 | 95 | ||
@@ -117,7 +117,7 @@ private Q_SLOTS: | |||
117 | query.resources << "org.kde.dummy.instance1"; | 117 | query.resources << "org.kde.dummy.instance1"; |
118 | 118 | ||
119 | //Ensure all local data is processed | 119 | //Ensure all local data is processed |
120 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 120 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
121 | 121 | ||
122 | query.propertyFilter.insert("summary", "summaryValue2"); | 122 | query.propertyFilter.insert("summary", "summaryValue2"); |
123 | 123 | ||
@@ -151,7 +151,7 @@ private Q_SLOTS: | |||
151 | 151 | ||
152 | //Ensure all local data is processed | 152 | //Ensure all local data is processed |
153 | Sink::Store::synchronize(query).exec().waitForFinished(); | 153 | Sink::Store::synchronize(query).exec().waitForFinished(); |
154 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 154 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
155 | 155 | ||
156 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); | 156 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query); |
157 | QTRY_VERIFY(model->rowCount(QModelIndex()) >= 1); | 157 | QTRY_VERIFY(model->rowCount(QModelIndex()) >= 1); |
@@ -168,7 +168,7 @@ private Q_SLOTS: | |||
168 | 168 | ||
169 | //Ensure all local data is processed | 169 | //Ensure all local data is processed |
170 | Sink::Store::synchronize(query).exec().waitForFinished(); | 170 | Sink::Store::synchronize(query).exec().waitForFinished(); |
171 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 171 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
172 | 172 | ||
173 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); | 173 | auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); |
174 | QTRY_VERIFY(model->rowCount(QModelIndex()) >= 1); | 174 | QTRY_VERIFY(model->rowCount(QModelIndex()) >= 1); |
@@ -191,7 +191,7 @@ private Q_SLOTS: | |||
191 | query.propertyFilter.insert("uid", "testuid"); | 191 | query.propertyFilter.insert("uid", "testuid"); |
192 | 192 | ||
193 | //Ensure all local data is processed | 193 | //Ensure all local data is processed |
194 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 194 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
195 | 195 | ||
196 | //Test create | 196 | //Test create |
197 | Sink::ApplicationDomain::Event event2; | 197 | Sink::ApplicationDomain::Event event2; |
@@ -210,7 +210,7 @@ private Q_SLOTS: | |||
210 | Sink::Store::modify<Sink::ApplicationDomain::Event>(event2).exec().waitForFinished(); | 210 | Sink::Store::modify<Sink::ApplicationDomain::Event>(event2).exec().waitForFinished(); |
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 | //Test modify | 215 | //Test modify |
216 | { | 216 | { |
@@ -225,7 +225,7 @@ private Q_SLOTS: | |||
225 | Sink::Store::remove<Sink::ApplicationDomain::Event>(event2).exec().waitForFinished(); | 225 | Sink::Store::remove<Sink::ApplicationDomain::Event>(event2).exec().waitForFinished(); |
226 | 226 | ||
227 | //Ensure all local data is processed | 227 | //Ensure all local data is processed |
228 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 228 | Sink::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); |
229 | 229 | ||
230 | //Test remove | 230 | //Test remove |
231 | { | 231 | { |