tesseract v5.3.3.20231005
testing::internal::GoogleTestFailureReporter Class Reference
Inheritance diagram for testing::internal::GoogleTestFailureReporter:
testing::internal::FailureReporterInterface

Public Member Functions

void ReportFailure (FailureType type, const char *file, int line, const std::string &message) override
 
- Public Member Functions inherited from testing::internal::FailureReporterInterface
virtual ~FailureReporterInterface ()
 
virtual void ReportFailure (FailureType type, const char *file, int line, const std::string &message)=0
 

Additional Inherited Members

- Public Types inherited from testing::internal::FailureReporterInterface
enum  FailureType { kNonfatal , kFatal }
 

Detailed Description

Definition at line 94 of file gmock-internal-utils.cc.

Member Function Documentation

◆ ReportFailure()

void testing::internal::GoogleTestFailureReporter::ReportFailure ( FailureType  type,
const char *  file,
int  line,
const std::string &  message 
)
inlineoverridevirtual

Implements testing::internal::FailureReporterInterface.

Definition at line 96 of file gmock-internal-utils.cc.

97 {
98 AssertHelper(type == kFatal ?
99 TestPartResult::kFatalFailure :
100 TestPartResult::kNonFatalFailure,
101 file,
102 line,
103 message.c_str()) = Message();
104 if (type == kFatal) {
105 posix::Abort();
106 }
107 }
type
Definition: upload.py:458

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