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

Public Member Functions

 EventRecordingListener (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 OnTestCaseStart (const TestCase &) override
 
void OnTestStart (const TestInfo &) override
 
void OnTestPartResult (const TestPartResult &) override
 
void OnTestEnd (const TestInfo &) override
 
void OnTestCaseEnd (const TestCase &) 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 56 of file googletest-listener-test.cc.

Constructor & Destructor Documentation

◆ EventRecordingListener()

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

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

58: name_(name) {}

Member Function Documentation

◆ OnEnvironmentsSetUpEnd()

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

Implements testing::TestEventListener.

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

77 {
78 g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpEnd"));
79 }
std::vector< std::string > * g_events

◆ OnEnvironmentsSetUpStart()

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

Implements testing::TestEventListener.

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

73 {
74 g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpStart"));
75 }

◆ OnEnvironmentsTearDownEnd()

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

Implements testing::TestEventListener.

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

108 {
109 g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownEnd"));
110 }

◆ OnEnvironmentsTearDownStart()

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

Implements testing::TestEventListener.

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

104 {
105 g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownStart"));
106 }

◆ OnTestCaseEnd()

void testing::internal::EventRecordingListener::OnTestCaseEnd ( const TestCase &  )
inlineoverrideprotectedvirtual

Reimplemented from testing::TestEventListener.

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

99 {
100 g_events->push_back(GetFullMethodName("OnTestCaseEnd"));
101 }

◆ OnTestCaseStart()

void testing::internal::EventRecordingListener::OnTestCaseStart ( const TestCase &  )
inlineoverrideprotectedvirtual

Reimplemented from testing::TestEventListener.

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

81 {
82 g_events->push_back(GetFullMethodName("OnTestCaseStart"));
83 }

◆ OnTestEnd()

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

Implements testing::TestEventListener.

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

94 {
95 g_events->push_back(GetFullMethodName("OnTestEnd"));
96 }

◆ OnTestIterationEnd()

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

Implements testing::TestEventListener.

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

113 {
114 Message message;
115 message << GetFullMethodName("OnTestIterationEnd")
116 << "(" << iteration << ")";
117 g_events->push_back(message.GetString());
118 }

◆ OnTestIterationStart()

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

Implements testing::TestEventListener.

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

66 {
67 Message message;
68 message << GetFullMethodName("OnTestIterationStart")
69 << "(" << iteration << ")";
70 g_events->push_back(message.GetString());
71 }

◆ OnTestPartResult()

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

Implements testing::TestEventListener.

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

90 {
91 g_events->push_back(GetFullMethodName("OnTestPartResult"));
92 }

◆ OnTestProgramEnd()

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

Implements testing::TestEventListener.

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

120 {
121 g_events->push_back(GetFullMethodName("OnTestProgramEnd"));
122 }

◆ OnTestProgramStart()

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

Implements testing::TestEventListener.

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

61 {
62 g_events->push_back(GetFullMethodName("OnTestProgramStart"));
63 }

◆ OnTestStart()

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

Implements testing::TestEventListener.

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

86 {
87 g_events->push_back(GetFullMethodName("OnTestStart"));
88 }

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