Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::TestEventRepeater Class Reference
Inheritance diagram for testing::internal::TestEventRepeater:
Collaboration diagram for testing::internal::TestEventRepeater:

Public Member Functions

 TestEventRepeater ()
 
virtual ~TestEventRepeater ()
 
void Append (TestEventListener *listener)
 
TestEventListenerRelease (TestEventListener *listener)
 
bool forwarding_enabled () const
 
void set_forwarding_enabled (bool enable)
 
virtual void OnTestProgramStart (const UnitTest &unit_test)
 
virtual void OnTestIterationStart (const UnitTest &unit_test, int iteration)
 
virtual void OnEnvironmentsSetUpStart (const UnitTest &unit_test)
 
virtual void OnEnvironmentsSetUpEnd (const UnitTest &unit_test)
 
virtual void OnTestCaseStart (const TestCase &test_case)
 
virtual void OnTestStart (const TestInfo &test_info)
 
virtual void OnTestPartResult (const TestPartResult &result)
 
virtual void OnTestEnd (const TestInfo &test_info)
 
virtual void OnTestCaseEnd (const TestCase &test_case)
 
virtual void OnEnvironmentsTearDownStart (const UnitTest &unit_test)
 
virtual void OnEnvironmentsTearDownEnd (const UnitTest &unit_test)
 
virtual void OnTestIterationEnd (const UnitTest &unit_test, int iteration)
 
virtual void OnTestProgramEnd (const UnitTest &unit_test)
 
- Public Member Functions inherited from testing::TestEventListener
virtual ~TestEventListener ()
 

Detailed Description

Definition at line 3279 of file gtest.cc.

Constructor & Destructor Documentation

◆ TestEventRepeater()

testing::internal::TestEventRepeater::TestEventRepeater ( )
inline

Definition at line 3281 of file gtest.cc.

3281: forwarding_enabled_(true) {}

◆ ~TestEventRepeater()

testing::internal::TestEventRepeater::~TestEventRepeater ( )
virtual

Definition at line 3315 of file gtest.cc.

3315 {
3316 ForEach(listeners_, Delete<TestEventListener>);
3317}
void ForEach(const Container &c, Functor functor)
Here is the call graph for this function:

Member Function Documentation

◆ Append()

void testing::internal::TestEventRepeater::Append ( TestEventListener * listener)

Definition at line 3319 of file gtest.cc.

3319 {
3320 listeners_.push_back(listener);
3321}
Here is the caller graph for this function:

◆ forwarding_enabled()

bool testing::internal::TestEventRepeater::forwarding_enabled ( ) const
inline

Definition at line 3288 of file gtest.cc.

3288{ return forwarding_enabled_; }

◆ OnEnvironmentsSetUpEnd()

virtual void testing::internal::TestEventRepeater::OnEnvironmentsSetUpEnd ( const UnitTest & unit_test)
virtual

◆ OnEnvironmentsSetUpStart()

virtual void testing::internal::TestEventRepeater::OnEnvironmentsSetUpStart ( const UnitTest & unit_test)
virtual

◆ OnEnvironmentsTearDownEnd()

virtual void testing::internal::TestEventRepeater::OnEnvironmentsTearDownEnd ( const UnitTest & unit_test)
virtual

◆ OnEnvironmentsTearDownStart()

virtual void testing::internal::TestEventRepeater::OnEnvironmentsTearDownStart ( const UnitTest & unit_test)
virtual

◆ OnTestCaseEnd()

virtual void testing::internal::TestEventRepeater::OnTestCaseEnd ( const TestCase & test_case)
virtual

◆ OnTestCaseStart()

virtual void testing::internal::TestEventRepeater::OnTestCaseStart ( const TestCase & test_case)
virtual

◆ OnTestEnd()

virtual void testing::internal::TestEventRepeater::OnTestEnd ( const TestInfo & test_info)
virtual

◆ OnTestIterationEnd()

void testing::internal::TestEventRepeater::OnTestIterationEnd ( const UnitTest & unit_test,
int iteration )
virtual

Implements testing::TestEventListener.

Definition at line 3380 of file gtest.cc.

3381 {
3382 if (forwarding_enabled_) {
3383 for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) {
3384 listeners_[i]->OnTestIterationEnd(unit_test, iteration);
3385 }
3386 }
3387}

◆ OnTestIterationStart()

void testing::internal::TestEventRepeater::OnTestIterationStart ( const UnitTest & unit_test,
int iteration )
virtual

Implements testing::TestEventListener.

Definition at line 3371 of file gtest.cc.

3372 {
3373 if (forwarding_enabled_) {
3374 for (size_t i = 0; i < listeners_.size(); i++) {
3375 listeners_[i]->OnTestIterationStart(unit_test, iteration);
3376 }
3377 }
3378}

◆ OnTestPartResult()

virtual void testing::internal::TestEventRepeater::OnTestPartResult ( const TestPartResult & result)
virtual

◆ OnTestProgramEnd()

virtual void testing::internal::TestEventRepeater::OnTestProgramEnd ( const UnitTest & unit_test)
virtual

◆ OnTestProgramStart()

virtual void testing::internal::TestEventRepeater::OnTestProgramStart ( const UnitTest & unit_test)
virtual

◆ OnTestStart()

virtual void testing::internal::TestEventRepeater::OnTestStart ( const TestInfo & test_info)
virtual

◆ Release()

TestEventListener * testing::internal::TestEventRepeater::Release ( TestEventListener * listener)

Definition at line 3324 of file gtest.cc.

3324 {
3325 for (size_t i = 0; i < listeners_.size(); ++i) {
3326 if (listeners_[i] == listener) {
3327 listeners_.erase(listeners_.begin() + i);
3328 return listener;
3329 }
3330 }
3331
3332 return NULL;
3333}
Here is the caller graph for this function:

◆ set_forwarding_enabled()

void testing::internal::TestEventRepeater::set_forwarding_enabled ( bool enable)
inline

Definition at line 3289 of file gtest.cc.

3289{ forwarding_enabled_ = enable; }

The documentation for this class was generated from the following file: