?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #include "RequiredCheckTestReporter.h"
  2.  
  3. #include "CurrentTest.h"
  4. #include "TestResults.h"
  5.  
  6. namespace UnitTest {
  7.  
  8.    RequiredCheckTestReporter::RequiredCheckTestReporter(TestResults& results)
  9.       : m_results(results)
  10.       , m_originalTestReporter(results.m_testReporter)
  11.       , m_throwingReporter(results.m_testReporter)
  12.       , m_continue(0)
  13.    {
  14.       m_results.m_testReporter = &m_throwingReporter;
  15.    }
  16.  
  17.    RequiredCheckTestReporter::~RequiredCheckTestReporter()
  18.    {
  19.       m_results.m_testReporter = m_originalTestReporter;
  20.    }
  21.  
  22.    bool RequiredCheckTestReporter::Next()
  23.    {
  24.       return m_continue++ == 0;
  25.    }
  26. }