diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 08:51:25 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 08:55:40 +0100 |
commit | 660ee77c9875ad71d4189e8643f679f574687528 (patch) | |
tree | fefb5374c8f99242dfbe1abd37de4e93ccb1dfb3 /tests/dummyresourcetest.cpp | |
parent | 4ee8a44bf4dda625b4d2f58f127869557c1af959 (diff) | |
download | sink-660ee77c9875ad71d4189e8643f679f574687528.tar.gz sink-660ee77c9875ad71d4189e8643f679f574687528.zip |
Renamed Resources to ResourceControl
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 e74fe25..1253e6c 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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 68 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 92 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 120 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 154 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 171 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 194 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 213 | Sink::ResourceControl::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::Resources::flushMessageQueue(query.resources).exec().waitForFinished(); | 228 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); |
229 | 229 | ||
230 | //Test remove | 230 | //Test remove |
231 | { | 231 | { |