summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcefacadetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-28 14:44:50 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2014-12-28 14:44:50 +0100
commit9b2257d680a5e4fa2fda8cf3302f25054a06710e (patch)
tree9abaf141018eb83d26ce07f5bd0e9436003ce732 /tests/dummyresourcefacadetest.cpp
parentc83c2ef64b5a1e4b1dc0102df36687caebb96ff0 (diff)
downloadsink-9b2257d680a5e4fa2fda8cf3302f25054a06710e.tar.gz
sink-9b2257d680a5e4fa2fda8cf3302f25054a06710e.zip
Buffers wrapped into entity buffer, async command progress tracking.
Diffstat (limited to 'tests/dummyresourcefacadetest.cpp')
-rw-r--r--tests/dummyresourcefacadetest.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/dummyresourcefacadetest.cpp b/tests/dummyresourcefacadetest.cpp
index d815e9b..e4d27fc 100644
--- a/tests/dummyresourcefacadetest.cpp
+++ b/tests/dummyresourcefacadetest.cpp
@@ -51,17 +51,10 @@ private Q_SLOTS:
51 query.ids << "key50"; 51 query.ids << "key50";
52 query.resources << "dummyresource"; 52 query.resources << "dummyresource";
53 53
54 auto result = Akonadi2::Store::load<Akonadi2::Domain::Event>(query); 54 //FIXME avoid sync somehow. No synchronizer access here (perhaps configure the instance above accordingly?)
55 bool complete = false; 55 async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query));
56 QVector<Akonadi2::Domain::Event::Ptr> results; 56 result.exec();
57 result->onAdded([&results](const Akonadi2::Domain::Event::Ptr &e) { 57 QCOMPARE(result.size(), 1);
58 results << e;
59 });
60 result->onComplete([&complete]() {
61 complete = true;
62 });
63 QTRY_VERIFY(complete);
64 QCOMPARE(results.size(), 1);
65 58
66 Akonadi2::Storage storage(testDataPath, dbName); 59 Akonadi2::Storage storage(testDataPath, dbName);
67 storage.removeFromDisk(); 60 storage.removeFromDisk();