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

#include <gtest-test-part.h>

Inheritance diagram for testing::internal::HasNewFatalFailureHelper:
Collaboration diagram for testing::internal::HasNewFatalFailureHelper:

Public Member Functions

 HasNewFatalFailureHelper ()
 
virtual ~HasNewFatalFailureHelper ()
 
virtual void ReportTestPartResult (const TestPartResult &result)
 
bool has_new_fatal_failure () const
 
- Public Member Functions inherited from testing::TestPartResultReporterInterface
virtual ~TestPartResultReporterInterface ()
 

Detailed Description

Definition at line 161 of file gtest-test-part.h.

Constructor & Destructor Documentation

◆ HasNewFatalFailureHelper()

testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper ( )

Definition at line 81 of file gtest-test-part.cc.

82 : has_new_fatal_failure_(false),
83 original_reporter_(GetUnitTestImpl()->
84 GetTestPartResultReporterForCurrentThread()) {
86}
void SetTestPartResultReporterForCurrentThread(TestPartResultReporterInterface *reporter)
Definition gtest.cc:738
class UnitTestImpl * GetUnitTestImpl()
Here is the call graph for this function:

◆ ~HasNewFatalFailureHelper()

testing::internal::HasNewFatalFailureHelper::~HasNewFatalFailureHelper ( )
virtual

Definition at line 88 of file gtest-test-part.cc.

88 {
90 original_reporter_);
91}
Here is the call graph for this function:

Member Function Documentation

◆ has_new_fatal_failure()

bool testing::internal::HasNewFatalFailureHelper::has_new_fatal_failure ( ) const
inline

Definition at line 167 of file gtest-test-part.h.

167{ return has_new_fatal_failure_; }

◆ ReportTestPartResult()

void testing::internal::HasNewFatalFailureHelper::ReportTestPartResult ( const TestPartResult & result)
virtual

Implements testing::TestPartResultReporterInterface.

Definition at line 93 of file gtest-test-part.cc.

94 {
95 if (result.fatally_failed())
96 has_new_fatal_failure_ = true;
97 original_reporter_->ReportTestPartResult(result);
98}
virtual void ReportTestPartResult(const TestPartResult &result)=0
Here is the call graph for this function:

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