From 567cbd39efc2708a2cb0a1f46a1e16bcbba32644 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Thu, 29 Oct 2020 17:22:41 +0100 Subject: [PATCH] include fixes --- unittest/internal/InternalUnitTester.cpp | 13 +++++++------ unittest/internal/InternalUnitTester.h | 4 ++-- unittest/internal/internal.mk | 3 +++ unittest/internal/osal/IntTestMq.cpp | 4 ++-- unittest/internal/osal/IntTestMutex.cpp | 3 ++- unittest/internal/osal/IntTestSemaphore.cpp | 3 ++- .../internal/serialize/IntTestSerialization.cpp | 2 +- 7 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 unittest/internal/internal.mk diff --git a/unittest/internal/InternalUnitTester.cpp b/unittest/internal/InternalUnitTester.cpp index 7b72d645..503a71ec 100644 --- a/unittest/internal/InternalUnitTester.cpp +++ b/unittest/internal/InternalUnitTester.cpp @@ -1,9 +1,10 @@ -#include -#include -#include -#include -#include -#include +#include "InternalUnitTester.h" +#include "UnittDefinitions.h" + +#include "osal/IntTestMq.h" +#include "osal/IntTestSemaphore.h" +#include "osal/IntTestMutex.h" +#include "serialize/IntTestSerialization.h" #include diff --git a/unittest/internal/InternalUnitTester.h b/unittest/internal/InternalUnitTester.h index b61c8bfe..b301b923 100644 --- a/unittest/internal/InternalUnitTester.h +++ b/unittest/internal/InternalUnitTester.h @@ -1,7 +1,7 @@ #ifndef FRAMEWORK_TEST_UNITTESTCLASS_H_ #define FRAMEWORK_TEST_UNITTESTCLASS_H_ -#include +#include "UnittDefinitions.h" #include /** @@ -22,7 +22,7 @@ public: * Some function which calls all other tests * @return */ - ReturnValue_t performTests(); + virtual ReturnValue_t performTests(); }; diff --git a/unittest/internal/internal.mk b/unittest/internal/internal.mk new file mode 100644 index 00000000..799fd796 --- /dev/null +++ b/unittest/internal/internal.mk @@ -0,0 +1,3 @@ +CXXSRC += $(wildcard $(CURRENTPATH)/osal/*.cpp) +CXXSRC += $(wildcard $(CURRENTPATH)/serialize/*.cpp) +CXXSRC += $(wildcard $(CURRENTPATH)/*.cpp) \ No newline at end of file diff --git a/unittest/internal/osal/IntTestMq.cpp b/unittest/internal/osal/IntTestMq.cpp index 265aa62a..63016374 100644 --- a/unittest/internal/osal/IntTestMq.cpp +++ b/unittest/internal/osal/IntTestMq.cpp @@ -1,7 +1,7 @@ #include #include -#include -#include +#include +#include #include diff --git a/unittest/internal/osal/IntTestMutex.cpp b/unittest/internal/osal/IntTestMutex.cpp index bf0b827d..3fd668df 100644 --- a/unittest/internal/osal/IntTestMutex.cpp +++ b/unittest/internal/osal/IntTestMutex.cpp @@ -1,4 +1,5 @@ -#include +#include "IntTestMutex.h" + #include #include diff --git a/unittest/internal/osal/IntTestSemaphore.cpp b/unittest/internal/osal/IntTestSemaphore.cpp index 176db4de..534a6a6d 100644 --- a/unittest/internal/osal/IntTestSemaphore.cpp +++ b/unittest/internal/osal/IntTestSemaphore.cpp @@ -1,8 +1,9 @@ +#include "IntTestSemaphore.h" #include #include #include #include -#include + void testsemaph::testBinSemaph() { std::string id = "[BinSemaphore]"; diff --git a/unittest/internal/serialize/IntTestSerialization.cpp b/unittest/internal/serialize/IntTestSerialization.cpp index 2452ac6d..3f231a41 100644 --- a/unittest/internal/serialize/IntTestSerialization.cpp +++ b/unittest/internal/serialize/IntTestSerialization.cpp @@ -1,4 +1,4 @@ -#include +#include "IntTestSerialization.h" #include #include #include