tesseract v5.3.3.20231005
testing::internal::EventRecordingListener2 Class Reference
Inheritance diagram for testing::internal::EventRecordingListener2:
testing::TestEventListener

Public Member Functions

 EventRecordingListener2 (const char *name)
 
- Public Member Functions inherited from testing::TestEventListener
virtual ~TestEventListener ()
 
virtual void OnTestProgramStart (const UnitTest &unit_test)=0
 
virtual void OnTestIterationStart (const UnitTest &unit_test, int iteration)=0
 
virtual void OnEnvironmentsSetUpStart (const UnitTest &unit_test)=0
 
virtual void OnEnvironmentsSetUpEnd (const UnitTest &unit_test)=0
 
virtual void OnTestSuiteStart (const TestSuite &)
 
virtual void OnTestCaseStart (const TestCase &)
 
virtual void OnTestStart (const TestInfo &test_info)=0
 
virtual void OnTestPartResult (const TestPartResult &test_part_result)=0
 
virtual void OnTestEnd (const TestInfo &test_info)=0
 
virtual void OnTestSuiteEnd (const TestSuite &)
 
virtual void OnTestCaseEnd (const TestCase &)
 
virtual void OnEnvironmentsTearDownStart (const UnitTest &unit_test)=0
 
virtual void OnEnvironmentsTearDownEnd (const UnitTest &unit_test)=0
 
virtual void OnTestIterationEnd (const UnitTest &unit_test, int iteration)=0
 
virtual void OnTestProgramEnd (const UnitTest &unit_test)=0
 

Protected Member Functions

void OnTestProgramStart (const UnitTest &) override
 
void OnTestIterationStart (const UnitTest &, int iteration) override
 
void OnEnvironmentsSetUpStart (const UnitTest &) override
 
void OnEnvironmentsSetUpEnd (const UnitTest &) override
 
void OnTestSuiteStart (const TestSuite &) override
 
void OnTestStart (const TestInfo &) override
 
void OnTestPartResult (const TestPartResult &) override
 
void OnTestEnd (const TestInfo &) override
 
void OnTestSuiteEnd (const TestSuite &) override
 
void OnEnvironmentsTearDownStart (const UnitTest &) override
 
void OnEnvironmentsTearDownEnd (const UnitTest &) override
 
void OnTestIterationEnd (const UnitTest &, int iteration) override
 
void OnTestProgramEnd (const UnitTest &) override
 

Detailed Description

Definition at line 133 of file googletest-listener-test.cc.

Constructor & Destructor Documentation

◆ EventRecordingListener2()

testing::internal::EventRecordingListener2::EventRecordingListener2 ( const char *  name)
inlineexplicit

Definition at line 135 of file googletest-listener-test.cc.

135: name_(name) {}

Member Function Documentation

◆ OnEnvironmentsSetUpEnd()

void testing::internal::EventRecordingListener2::OnEnvironmentsSetUpEnd ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 154 of file googletest-listener-test.cc.

154 {
155 g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpEnd"));
156 }
std::vector< std::string > * g_events

◆ OnEnvironmentsSetUpStart()

void testing::internal::EventRecordingListener2::OnEnvironmentsSetUpStart ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 150 of file googletest-listener-test.cc.

150 {
151 g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpStart"));
152 }

◆ OnEnvironmentsTearDownEnd()

void testing::internal::EventRecordingListener2::OnEnvironmentsTearDownEnd ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 182 of file googletest-listener-test.cc.

182 {
183 g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownEnd"));
184 }

◆ OnEnvironmentsTearDownStart()

void testing::internal::EventRecordingListener2::OnEnvironmentsTearDownStart ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 178 of file googletest-listener-test.cc.

178 {
179 g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownStart"));
180 }

◆ OnTestEnd()

void testing::internal::EventRecordingListener2::OnTestEnd ( const TestInfo )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 170 of file googletest-listener-test.cc.

170 {
171 g_events->push_back(GetFullMethodName("OnTestEnd"));
172 }

◆ OnTestIterationEnd()

void testing::internal::EventRecordingListener2::OnTestIterationEnd ( const UnitTest ,
int  iteration 
)
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 186 of file googletest-listener-test.cc.

187 {
188 Message message;
189 message << GetFullMethodName("OnTestIterationEnd") << "(" << iteration
190 << ")";
191 g_events->push_back(message.GetString());
192 }

◆ OnTestIterationStart()

void testing::internal::EventRecordingListener2::OnTestIterationStart ( const UnitTest ,
int  iteration 
)
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 142 of file googletest-listener-test.cc.

143 {
144 Message message;
145 message << GetFullMethodName("OnTestIterationStart") << "(" << iteration
146 << ")";
147 g_events->push_back(message.GetString());
148 }

◆ OnTestPartResult()

void testing::internal::EventRecordingListener2::OnTestPartResult ( const TestPartResult &  )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 166 of file googletest-listener-test.cc.

166 {
167 g_events->push_back(GetFullMethodName("OnTestPartResult"));
168 }

◆ OnTestProgramEnd()

void testing::internal::EventRecordingListener2::OnTestProgramEnd ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 194 of file googletest-listener-test.cc.

194 {
195 g_events->push_back(GetFullMethodName("OnTestProgramEnd"));
196 }

◆ OnTestProgramStart()

void testing::internal::EventRecordingListener2::OnTestProgramStart ( const UnitTest )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 138 of file googletest-listener-test.cc.

138 {
139 g_events->push_back(GetFullMethodName("OnTestProgramStart"));
140 }

◆ OnTestStart()

void testing::internal::EventRecordingListener2::OnTestStart ( const TestInfo )
inlineoverrideprotectedvirtual

Implements testing::TestEventListener.

Definition at line 162 of file googletest-listener-test.cc.

162 {
163 g_events->push_back(GetFullMethodName("OnTestStart"));
164 }

◆ OnTestSuiteEnd()

void testing::internal::EventRecordingListener2::OnTestSuiteEnd ( const TestSuite )
inlineoverrideprotectedvirtual

Reimplemented from testing::TestEventListener.

Definition at line 174 of file googletest-listener-test.cc.

174 {
175 g_events->push_back(GetFullMethodName("OnTestSuiteEnd"));
176 }

◆ OnTestSuiteStart()

void testing::internal::EventRecordingListener2::OnTestSuiteStart ( const TestSuite )
inlineoverrideprotectedvirtual

Reimplemented from testing::TestEventListener.

Definition at line 158 of file googletest-listener-test.cc.

158 {
159 g_events->push_back(GetFullMethodName("OnTestSuiteStart"));
160 }

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