From 84242164b171b98068f831345844c8781cec9ec3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 19 May 2018 11:04:50 -0700 Subject: Exports for windows --- common/test.h | 6 +++--- tests/getrssusage.h | 5 +++-- tests/testimplementations.h | 13 +++++++------ tests/utils.h | 5 +++-- 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: static TestAccount registerAccount(); template - void addEntity(const ApplicationDomain::ApplicationDomainType::Ptr &domainObject); + void SINK_EXPORT addEntity(const ApplicationDomain::ApplicationDomainType::Ptr &domainObject); template - typename DomainType::Ptr createEntity(); + typename DomainType::Ptr SINK_EXPORT createEntity(); template - QList entities() const; + QList SINK_EXPORT entities() const; private: 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 @@ */ #pragma once +#include "sinktest_export.h" #if defined(_WIN32) #include @@ -35,5 +36,5 @@ #error "Cannot define getPeakRSS( ) or getCurrentRSS( ) for an unknown OS." #endif -size_t getCurrentRSS(); -size_t getPeakRSS(); +size_t SINKTEST_EXPORT getCurrentRSS(); +size_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 @@ */ #pragma once +#include "sinktest_export.h" #include #include @@ -33,7 +34,7 @@ #include "mail_generated.h" #include "createentity_generated.h" -class TestEventAdaptorFactory : public DomainTypeAdaptorFactory +class SINKTEST_EXPORT TestEventAdaptorFactory : public DomainTypeAdaptorFactory { public: TestEventAdaptorFactory() : DomainTypeAdaptorFactory() @@ -43,7 +44,7 @@ public: virtual ~TestEventAdaptorFactory(){}; }; -class TestMailAdaptorFactory : public DomainTypeAdaptorFactory +class SINKTEST_EXPORT TestMailAdaptorFactory : public DomainTypeAdaptorFactory { public: TestMailAdaptorFactory() : DomainTypeAdaptorFactory() @@ -53,7 +54,7 @@ public: virtual ~TestMailAdaptorFactory(){}; }; -class TestResourceAccess : public Sink::ResourceAccessInterface +class SINKTEST_EXPORT TestResourceAccess : public Sink::ResourceAccessInterface { Q_OBJECT public: @@ -85,7 +86,7 @@ public slots: } }; -class TestResourceFacade : public Sink::GenericFacade +class SINKTEST_EXPORT TestResourceFacade : public Sink::GenericFacade { public: TestResourceFacade(const Sink::ResourceContext &resourceContext) @@ -97,7 +98,7 @@ public: } }; -class TestMailResourceFacade : public Sink::GenericFacade +class SINKTEST_EXPORT TestMailResourceFacade : public Sink::GenericFacade { public: TestMailResourceFacade(const Sink::ResourceContext &resourceContext) @@ -109,7 +110,7 @@ public: } }; -class TestResource : public Sink::GenericResource +class SINKTEST_EXPORT TestResource : public Sink::GenericResource { public: TestResource(const Sink::ResourceContext &resourceContext, QSharedPointer 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 @@ #pragma once +#include "sinktest_export.h" #include -double variance(const QList &values); -double maxDifference(const QList &values); +double SINKTEST_EXPORT variance(const QList &values); +double SINKTEST_EXPORT maxDifference(const QList &values); -- cgit v1.2.3