?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #include "Config.h"
  2. #include "Test.h"
  3. #include "TestList.h"
  4. #include "TestResults.h"
  5. #include "AssertException.h"
  6. #include "MemoryOutStream.h"
  7. #include "ExecuteTest.h"
  8.  
  9. #ifdef UNITTEST_POSIX
  10. #include "Posix/SignalTranslator.h"
  11. #endif
  12.  
  13. namespace UnitTest {
  14.  
  15.    TestList& Test::GetTestList()
  16.    {
  17.       static TestList s_list;
  18.       return s_list;
  19.    }
  20.  
  21.    Test::Test(char const* testName, char const* suiteName, char const* filename, int lineNumber)
  22.       : m_details(testName, suiteName, filename, lineNumber)
  23.       , m_nextTest(0)
  24.       , m_isMockTest(false)
  25.    {}
  26.  
  27.    Test::~Test()
  28.    {}
  29.  
  30.    void Test::Run()
  31.    {
  32.       ExecuteTest(*this, m_details, m_isMockTest);
  33.    }
  34.  
  35.    void Test::RunImpl() const
  36.    {}
  37.  
  38. }
  39.