1 #ifndef UNITTEST_EXECUTE_TEST_H 2 #define UNITTEST_EXECUTE_TEST_H 3 4 #include <time.h> 5 #include "Config.h" 6 #include "ExceptionMacros.h" 7 #include "TestDetails.h" 8 #include "TestResults.h" 9 #include "MemoryOutStream.h" 10 #include "AssertException.h" 11 #include "CurrentTest.h" 12 #include "TimeHelpers.h" 13 14 #ifdef UNITTEST_NO_EXCEPTIONS 15 #include "ReportAssertImpl.h" 16 #endif 17 18 #ifdef UNITTEST_POSIX 19 #include "Posix/SignalTranslator.h" 20 #endif 21 22 namespace UnitTest { 23 24 template< typename T > ExecuteTest(T & testObject,TestDetails const & details,bool isMockTest)25void ExecuteTest(T& testObject, TestDetails const& details, bool isMockTest) 26 { 27 if (isMockTest == false) 28 CurrentTest::Details() = &details; 29 30 testObject.RunImpl(); 31 } 32 33 } 34 35 #endif 36