diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-28 00:24:53 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-28 00:24:53 +0200 |
commit | e9c75177590d8546ebd9425f16c4269a9c92f517 (patch) | |
tree | 8a953631e467d9df50657e22bd90954b7b71c990 /tests/querytest.cpp | |
parent | 8f01eb530262d1442fc4fa0782a41e052412d43b (diff) | |
download | sink-e9c75177590d8546ebd9425f16c4269a9c92f517.tar.gz sink-e9c75177590d8546ebd9425f16c4269a9c92f517.zip |
Refactored the generic resource to use separate classes for
changereplay and synchronization.
This cleans up the API and avoids the excessive passing around of
transactions. It also provides more flexibility in eventually using
different synchronization strategies for different resources.
Diffstat (limited to 'tests/querytest.cpp')
-rw-r--r-- | tests/querytest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/querytest.cpp b/tests/querytest.cpp index a654931..6d7746e 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "resourceconfig.h" | 9 | #include "resourceconfig.h" |
10 | #include "log.h" | 10 | #include "log.h" |
11 | #include "modelresult.h" | 11 | #include "modelresult.h" |
12 | #include "test.h" | ||
12 | 13 | ||
13 | /** | 14 | /** |
14 | * Test of the query system using the dummy resource. | 15 | * Test of the query system using the dummy resource. |
@@ -21,6 +22,7 @@ class QueryTest : public QObject | |||
21 | private slots: | 22 | private slots: |
22 | void initTestCase() | 23 | void initTestCase() |
23 | { | 24 | { |
25 | Sink::Test::initTest(); | ||
24 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); | 26 | Sink::Log::setDebugOutputLevel(Sink::Log::Trace); |
25 | auto factory = Sink::ResourceFactory::load("org.kde.dummy"); | 27 | auto factory = Sink::ResourceFactory::load("org.kde.dummy"); |
26 | QVERIFY(factory); | 28 | QVERIFY(factory); |