diff options
Diffstat (limited to 'tests/modelinteractivitytest.cpp')
-rw-r--r-- | tests/modelinteractivitytest.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/modelinteractivitytest.cpp b/tests/modelinteractivitytest.cpp index 14c9fd0..3f6e697 100644 --- a/tests/modelinteractivitytest.cpp +++ b/tests/modelinteractivitytest.cpp | |||
@@ -4,7 +4,8 @@ | |||
4 | #include <iostream> | 4 | #include <iostream> |
5 | 5 | ||
6 | #include "dummyresource/resourcefactory.h" | 6 | #include "dummyresource/resourcefactory.h" |
7 | #include "clientapi.h" | 7 | #include "store.h" |
8 | #include "resourcecontrol.h" | ||
8 | #include "commands.h" | 9 | #include "commands.h" |
9 | #include "resourceconfig.h" | 10 | #include "resourceconfig.h" |
10 | #include "log.h" | 11 | #include "log.h" |
@@ -46,15 +47,13 @@ private Q_SLOTS: | |||
46 | void initTestCase() | 47 | void initTestCase() |
47 | { | 48 | { |
48 | Sink::Log::setDebugOutputLevel(Sink::Log::Warning); | 49 | Sink::Log::setDebugOutputLevel(Sink::Log::Warning); |
49 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | ||
50 | ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); | 50 | ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); |
51 | Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | ||
51 | } | 52 | } |
52 | 53 | ||
53 | void cleanup() | 54 | void cleanup() |
54 | { | 55 | { |
55 | Sink::Store::shutdown(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | 56 | Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); |
56 | DummyResource::removeFromDisk("org.kde.dummy.instance1"); | ||
57 | Sink::Store::start(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); | ||
58 | } | 57 | } |
59 | 58 | ||
60 | void init() | 59 | void init() |
@@ -75,7 +74,7 @@ private Q_SLOTS: | |||
75 | query.resources << "org.kde.dummy.instance1"; | 74 | query.resources << "org.kde.dummy.instance1"; |
76 | query.liveQuery = true; | 75 | query.liveQuery = true; |
77 | 76 | ||
78 | Sink::Store::flushMessageQueue(query.resources).exec().waitForFinished(); | 77 | Sink::ResourceControl::flushMessageQueue(query.resources).exec().waitForFinished(); |
79 | 78 | ||
80 | //Test | 79 | //Test |
81 | QTime time; | 80 | QTime time; |