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

#include <gtest-port.h>

Public Member Functions

 GTestLog (GTestLogSeverity severity, const char *file, int line)
 
 ~GTestLog ()
 
::std::ostream & GetStream ()
 

Detailed Description

Definition at line 1326 of file gtest-port.h.

Constructor & Destructor Documentation

◆ GTestLog()

testing::internal::GTestLog::GTestLog ( GTestLogSeverity severity,
const char * file,
int line )

Definition at line 924 of file gtest-port.cc.

925 : severity_(severity) {
926 const char* const marker =
927 severity == GTEST_INFO ? "[ INFO ]" :
928 severity == GTEST_WARNING ? "[WARNING]" :
929 severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]";
930 GetStream() << ::std::endl << marker << " "
931 << FormatFileLocation(file, line).c_str() << ": ";
932}
::std::ostream & GetStream()
GTEST_API_::std::string FormatFileLocation(const char *file, int line)
Here is the call graph for this function:

◆ ~GTestLog()

testing::internal::GTestLog::~GTestLog ( )

Definition at line 935 of file gtest-port.cc.

935 {
936 GetStream() << ::std::endl;
937 if (severity_ == GTEST_FATAL) {
938 fflush(stderr);
939 posix::Abort();
940 }
941}
Here is the call graph for this function:

Member Function Documentation

◆ GetStream()

::std::ostream & testing::internal::GTestLog::GetStream ( )
inline

Definition at line 1333 of file gtest-port.h.

1333{ return ::std::cerr; }
Here is the caller graph for this function:

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