diff options
Diffstat (limited to 'tests/dummyresourcebenchmark.cpp')
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index 308a4e8..ea3f556 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -47,11 +47,11 @@ private Q_SLOTS: | |||
47 | time.start(); | 47 | time.start(); |
48 | int num = 10000; | 48 | int num = 10000; |
49 | for (int i = 0; i < num; i++) { | 49 | for (int i = 0; i < num; i++) { |
50 | Akonadi2::Domain::Event event; | 50 | Akonadi2::ApplicationDomain::Event event; |
51 | event.setProperty("uid", "testuid"); | 51 | event.setProperty("uid", "testuid"); |
52 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); | 52 | QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); |
53 | event.setProperty("summary", "summaryValue"); | 53 | event.setProperty("summary", "summaryValue"); |
54 | Akonadi2::Store::create<Akonadi2::Domain::Event>(event, "org.kde.dummy"); | 54 | Akonadi2::Store::create<Akonadi2::ApplicationDomain::Event>(event, "org.kde.dummy"); |
55 | } | 55 | } |
56 | auto appendTime = time.elapsed(); | 56 | auto appendTime = time.elapsed(); |
57 | 57 | ||
@@ -63,7 +63,7 @@ private Q_SLOTS: | |||
63 | query.processAll = true; | 63 | query.processAll = true; |
64 | 64 | ||
65 | query.propertyFilter.insert("uid", "nonexistantuid"); | 65 | query.propertyFilter.insert("uid", "nonexistantuid"); |
66 | async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query)); | 66 | async::SyncListResult<Akonadi2::ApplicationDomain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::ApplicationDomain::Event>(query)); |
67 | result.exec(); | 67 | result.exec(); |
68 | } | 68 | } |
69 | auto allProcessedTime = time.elapsed(); | 69 | auto allProcessedTime = time.elapsed(); |
@@ -77,7 +77,7 @@ private Q_SLOTS: | |||
77 | query.processAll = false; | 77 | query.processAll = false; |
78 | 78 | ||
79 | query.propertyFilter.insert("uid", "testuid"); | 79 | query.propertyFilter.insert("uid", "testuid"); |
80 | async::SyncListResult<Akonadi2::Domain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::Domain::Event>(query)); | 80 | async::SyncListResult<Akonadi2::ApplicationDomain::Event::Ptr> result(Akonadi2::Store::load<Akonadi2::ApplicationDomain::Event>(query)); |
81 | result.exec(); | 81 | result.exec(); |
82 | QCOMPARE(result.size(), num); | 82 | QCOMPARE(result.size(), num); |
83 | } | 83 | } |
@@ -146,7 +146,7 @@ private Q_SLOTS: | |||
146 | } | 146 | } |
147 | void testCreateCommand() | 147 | void testCreateCommand() |
148 | { | 148 | { |
149 | Akonadi2::Domain::Event event; | 149 | Akonadi2::ApplicationDomain::Event event; |
150 | 150 | ||
151 | QBENCHMARK { | 151 | QBENCHMARK { |
152 | auto mFactory = new DummyEventAdaptorFactory; | 152 | auto mFactory = new DummyEventAdaptorFactory; |