Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::TestEventListeners Class Reference

#include <gtest.h>

Public Member Functions

 TestEventListeners ()
 
 ~TestEventListeners ()
 
void Append (TestEventListener *listener)
 
TestEventListenerRelease (TestEventListener *listener)
 
TestEventListenerdefault_result_printer () const
 
TestEventListenerdefault_xml_generator () const
 

Friends

class TestCase
 
class TestInfo
 
class internal::DefaultGlobalTestPartResultReporter
 
class internal::NoExecDeathTest
 
class internal::TestEventListenersAccessor
 
class internal::UnitTestImpl
 

Detailed Description

Definition at line 1107 of file gtest.h.

Constructor & Destructor Documentation

◆ TestEventListeners()

testing::TestEventListeners::TestEventListeners ( )

Definition at line 4292 of file gtest.cc.

4293 : repeater_(new internal::TestEventRepeater()),
4294 default_result_printer_(NULL),
4295 default_xml_generator_(NULL) {
4296}

◆ ~TestEventListeners()

testing::TestEventListeners::~TestEventListeners ( )

Definition at line 4298 of file gtest.cc.

4298{ delete repeater_; }

Member Function Documentation

◆ Append()

void testing::TestEventListeners::Append ( TestEventListener * listener)

Definition at line 4304 of file gtest.cc.

4304 {
4305 repeater_->Append(listener);
4306}
void Append(TestEventListener *listener)
Definition gtest.cc:3319
Here is the call graph for this function:
Here is the caller graph for this function:

◆ default_result_printer()

TestEventListener * testing::TestEventListeners::default_result_printer ( ) const
inline

Definition at line 1127 of file gtest.h.

1127 {
1128 return default_result_printer_;
1129 }
Here is the caller graph for this function:

◆ default_xml_generator()

TestEventListener * testing::TestEventListeners::default_xml_generator ( ) const
inline

Definition at line 1138 of file gtest.h.

1138 {
1139 return default_xml_generator_;
1140 }
Here is the caller graph for this function:

◆ Release()

TestEventListener * testing::TestEventListeners::Release ( TestEventListener * listener)

Definition at line 4311 of file gtest.cc.

4311 {
4312 if (listener == default_result_printer_)
4313 default_result_printer_ = NULL;
4314 else if (listener == default_xml_generator_)
4315 default_xml_generator_ = NULL;
4316 return repeater_->Release(listener);
4317}
TestEventListener * Release(TestEventListener *listener)
Definition gtest.cc:3324
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ internal::DefaultGlobalTestPartResultReporter

Definition at line 1145 of file gtest.h.

◆ internal::NoExecDeathTest

friend class internal::NoExecDeathTest
friend

Definition at line 1146 of file gtest.h.

◆ internal::TestEventListenersAccessor

Definition at line 1147 of file gtest.h.

◆ internal::UnitTestImpl

Definition at line 1148 of file gtest.h.

◆ TestCase

friend class TestCase
friend

Definition at line 1143 of file gtest.h.

◆ TestInfo

friend class TestInfo
friend

Definition at line 1144 of file gtest.h.


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