diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-13 00:04:05 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-13 00:04:05 +0200 |
commit | 2eb3810b66de3130f3e650627380c28a96acded7 (patch) | |
tree | 947716efcdfc0be52958e8659defbc19db9e6b6d /tests/genericresourcetest.cpp | |
parent | 1b39c149e1fe8705f7fcbd8840de85414c652dc1 (diff) | |
download | sink-2eb3810b66de3130f3e650627380c28a96acded7.tar.gz sink-2eb3810b66de3130f3e650627380c28a96acded7.zip |
Moved test implementations to central location.
Diffstat (limited to 'tests/genericresourcetest.cpp')
-rw-r--r-- | tests/genericresourcetest.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/genericresourcetest.cpp b/tests/genericresourcetest.cpp index fa6da22..60b1dab 100644 --- a/tests/genericresourcetest.cpp +++ b/tests/genericresourcetest.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | #include <QString> | 3 | #include <QString> |
4 | 4 | ||
5 | #include "testimplementations.h" | ||
6 | |||
5 | #include "event_generated.h" | 7 | #include "event_generated.h" |
6 | #include "entity_generated.h" | 8 | #include "entity_generated.h" |
7 | #include "metadata_generated.h" | 9 | #include "metadata_generated.h" |
@@ -12,21 +14,6 @@ | |||
12 | #include "genericresource.h" | 14 | #include "genericresource.h" |
13 | #include "definitions.h" | 15 | #include "definitions.h" |
14 | 16 | ||
15 | class TestResource : public Akonadi2::GenericResource | ||
16 | { | ||
17 | public: | ||
18 | TestResource(const QByteArray &instanceIdentifier, QSharedPointer<Akonadi2::Pipeline> pipeline) | ||
19 | : Akonadi2::GenericResource(instanceIdentifier, pipeline) | ||
20 | { | ||
21 | } | ||
22 | |||
23 | KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE | ||
24 | { | ||
25 | return KAsync::null<void>(); | ||
26 | } | ||
27 | }; | ||
28 | |||
29 | |||
30 | static void removeFromDisk(const QString &name) | 17 | static void removeFromDisk(const QString &name) |
31 | { | 18 | { |
32 | Akonadi2::Storage store(Akonadi2::storageLocation(), name, Akonadi2::Storage::ReadWrite); | 19 | Akonadi2::Storage store(Akonadi2::storageLocation(), name, Akonadi2::Storage::ReadWrite); |