summaryrefslogtreecommitdiffstats
path: root/tests/genericresourcebenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/genericresourcebenchmark.cpp')
-rw-r--r--tests/genericresourcebenchmark.cpp27
1 files changed, 2 insertions, 25 deletions
diff --git a/tests/genericresourcebenchmark.cpp b/tests/genericresourcebenchmark.cpp
index 50d0c67..1776c81 100644
--- a/tests/genericresourcebenchmark.cpp
+++ b/tests/genericresourcebenchmark.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 "createentity_generated.h" 8#include "createentity_generated.h"
7#include "commands.h" 9#include "commands.h"
@@ -15,31 +17,6 @@
15#include "hawd/dataset.h" 17#include "hawd/dataset.h"
16#include "hawd/formatter.h" 18#include "hawd/formatter.h"
17 19
18class TestResource : public Akonadi2::GenericResource
19{
20public:
21 TestResource(const QByteArray &instanceIdentifier, QSharedPointer<Akonadi2::Pipeline> pipeline)
22 : Akonadi2::GenericResource(instanceIdentifier, pipeline)
23 {
24 }
25
26 KAsync::Job<void> synchronizeWithSource() Q_DECL_OVERRIDE
27 {
28 return KAsync::null<void>();
29 }
30};
31
32class TestEventAdaptorFactory : public DomainTypeAdaptorFactory<Akonadi2::ApplicationDomain::Event, Akonadi2::ApplicationDomain::Buffer::Event, Akonadi2::ApplicationDomain::Buffer::EventBuilder>
33{
34public:
35 TestEventAdaptorFactory()
36 : DomainTypeAdaptorFactory()
37 {
38 }
39
40 virtual ~TestEventAdaptorFactory() {};
41};
42
43 20
44static void removeFromDisk(const QString &name) 21static void removeFromDisk(const QString &name)
45{ 22{