summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/test.h6
-rw-r--r--tests/getrssusage.h5
-rw-r--r--tests/testimplementations.h13
-rw-r--r--tests/utils.h5
4 files changed, 16 insertions, 13 deletions
diff --git a/common/test.h b/common/test.h
index bb505b6..5be738d 100644
--- a/common/test.h
+++ b/common/test.h
@@ -43,13 +43,13 @@ public:
43 static TestAccount registerAccount(); 43 static TestAccount registerAccount();
44 44
45 template<typename DomainType> 45 template<typename DomainType>
46 void addEntity(const ApplicationDomain::ApplicationDomainType::Ptr &domainObject); 46 void SINK_EXPORT addEntity(const ApplicationDomain::ApplicationDomainType::Ptr &domainObject);
47 47
48 template<typename DomainType> 48 template<typename DomainType>
49 typename DomainType::Ptr createEntity(); 49 typename DomainType::Ptr SINK_EXPORT createEntity();
50 50
51 template<typename DomainType> 51 template<typename DomainType>
52 QList<ApplicationDomain::ApplicationDomainType::Ptr> entities() const; 52 QList<ApplicationDomain::ApplicationDomainType::Ptr> SINK_EXPORT entities() const;
53 53
54private: 54private:
55 TestAccount(){}; 55 TestAccount(){};
diff --git a/tests/getrssusage.h b/tests/getrssusage.h
index bc3d91e..335836f 100644
--- a/tests/getrssusage.h
+++ b/tests/getrssusage.h
@@ -10,6 +10,7 @@
10 */ 10 */
11 11
12#pragma once 12#pragma once
13#include "sinktest_export.h"
13 14
14#if defined(_WIN32) 15#if defined(_WIN32)
15#include <windows.h> 16#include <windows.h>
@@ -35,5 +36,5 @@
35#error "Cannot define getPeakRSS( ) or getCurrentRSS( ) for an unknown OS." 36#error "Cannot define getPeakRSS( ) or getCurrentRSS( ) for an unknown OS."
36#endif 37#endif
37 38
38size_t getCurrentRSS(); 39size_t SINKTEST_EXPORT getCurrentRSS();
39size_t getPeakRSS(); 40size_t SINKTEST_EXPORT getPeakRSS();
diff --git a/tests/testimplementations.h b/tests/testimplementations.h
index c7f4ce0..d15fbd4 100644
--- a/tests/testimplementations.h
+++ b/tests/testimplementations.h
@@ -19,6 +19,7 @@
19 */ 19 */
20#pragma once 20#pragma once
21 21
22#include "sinktest_export.h"
22#include <KAsync/Async> 23#include <KAsync/Async>
23 24
24#include <common/domainadaptor.h> 25#include <common/domainadaptor.h>
@@ -33,7 +34,7 @@
33#include "mail_generated.h" 34#include "mail_generated.h"
34#include "createentity_generated.h" 35#include "createentity_generated.h"
35 36
36class TestEventAdaptorFactory : public DomainTypeAdaptorFactory<Sink::ApplicationDomain::Event> 37class SINKTEST_EXPORT TestEventAdaptorFactory : public DomainTypeAdaptorFactory<Sink::ApplicationDomain::Event>
37{ 38{
38public: 39public:
39 TestEventAdaptorFactory() : DomainTypeAdaptorFactory() 40 TestEventAdaptorFactory() : DomainTypeAdaptorFactory()
@@ -43,7 +44,7 @@ public:
43 virtual ~TestEventAdaptorFactory(){}; 44 virtual ~TestEventAdaptorFactory(){};
44}; 45};
45 46
46class TestMailAdaptorFactory : public DomainTypeAdaptorFactory<Sink::ApplicationDomain::Mail> 47class SINKTEST_EXPORT TestMailAdaptorFactory : public DomainTypeAdaptorFactory<Sink::ApplicationDomain::Mail>
47{ 48{
48public: 49public:
49 TestMailAdaptorFactory() : DomainTypeAdaptorFactory() 50 TestMailAdaptorFactory() : DomainTypeAdaptorFactory()
@@ -53,7 +54,7 @@ public:
53 virtual ~TestMailAdaptorFactory(){}; 54 virtual ~TestMailAdaptorFactory(){};
54}; 55};
55 56
56class TestResourceAccess : public Sink::ResourceAccessInterface 57class SINKTEST_EXPORT TestResourceAccess : public Sink::ResourceAccessInterface
57{ 58{
58 Q_OBJECT 59 Q_OBJECT
59public: 60public:
@@ -85,7 +86,7 @@ public slots:
85 } 86 }
86}; 87};
87 88
88class TestResourceFacade : public Sink::GenericFacade<Sink::ApplicationDomain::Event> 89class SINKTEST_EXPORT TestResourceFacade : public Sink::GenericFacade<Sink::ApplicationDomain::Event>
89{ 90{
90public: 91public:
91 TestResourceFacade(const Sink::ResourceContext &resourceContext) 92 TestResourceFacade(const Sink::ResourceContext &resourceContext)
@@ -97,7 +98,7 @@ public:
97 } 98 }
98}; 99};
99 100
100class TestMailResourceFacade : public Sink::GenericFacade<Sink::ApplicationDomain::Mail> 101class SINKTEST_EXPORT TestMailResourceFacade : public Sink::GenericFacade<Sink::ApplicationDomain::Mail>
101{ 102{
102public: 103public:
103 TestMailResourceFacade(const Sink::ResourceContext &resourceContext) 104 TestMailResourceFacade(const Sink::ResourceContext &resourceContext)
@@ -109,7 +110,7 @@ public:
109 } 110 }
110}; 111};
111 112
112class TestResource : public Sink::GenericResource 113class SINKTEST_EXPORT TestResource : public Sink::GenericResource
113{ 114{
114public: 115public:
115 TestResource(const Sink::ResourceContext &resourceContext, QSharedPointer<Sink::Pipeline> pipeline) : Sink::GenericResource(resourceContext, pipeline) 116 TestResource(const Sink::ResourceContext &resourceContext, QSharedPointer<Sink::Pipeline> pipeline) : Sink::GenericResource(resourceContext, pipeline)
diff --git a/tests/utils.h b/tests/utils.h
index 45c1409..a0a8258 100644
--- a/tests/utils.h
+++ b/tests/utils.h
@@ -1,7 +1,8 @@
1#pragma once 1#pragma once
2 2
3#include "sinktest_export.h"
3#include <QList> 4#include <QList>
4 5
5double variance(const QList<double> &values); 6double SINKTEST_EXPORT variance(const QList<double> &values);
6double maxDifference(const QList<double> &values); 7double SINKTEST_EXPORT maxDifference(const QList<double> &values);
7 8