proxygen
testing::internal::GTestLog Class Reference

#include <gtest-port.h>

Public Member Functions

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

Private Member Functions

 GTestLog (GTestLog const &)
 
void operator= (GTestLog const &)
 
 GTestLog (GTestLog const &)
 
void operator= (GTestLog const &)
 
 GTestLog (GTestLog const &)
 
void operator= (GTestLog const &)
 

Private Attributes

const GTestLogSeverity severity_
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

References testing::internal::FormatFileLocation(), GetStream(), testing::internal::GTEST_ERROR, testing::internal::GTEST_INFO, and testing::internal::GTEST_WARNING.

909  : severity_(severity) {
910  const char* const marker =
911  severity == GTEST_INFO ? "[ INFO ]" :
912  severity == GTEST_WARNING ? "[WARNING]" :
913  severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]";
914  GetStream() << ::std::endl << marker << " "
915  << FormatFileLocation(file, line).c_str() << ": ";
916 }
::std::string FormatFileLocation(const char *file, int line)
Definition: gtest-port.cc:880
::std::ostream & GetStream()
Definition: gtest-port.h:1261
const GTestLogSeverity severity_
Definition: gtest-port.h:1264
testing::internal::GTestLog::GTestLog ( GTestLog const &  )
private
testing::internal::GTestLog::GTestLog ( GTestLogSeverity  severity,
const char *  file,
int  line 
)
testing::internal::GTestLog::~GTestLog ( )
testing::internal::GTestLog::GTestLog ( GTestLog const &  )
private
testing::internal::GTestLog::GTestLog ( GTestLogSeverity  severity,
const char *  file,
int  line 
)
testing::internal::GTestLog::~GTestLog ( )
testing::internal::GTestLog::GTestLog ( GTestLog const &  )
private

Member Function Documentation

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

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

Referenced by GTestLog(), and ~GTestLog().

1261 { return ::std::cerr; }
::std::ostream& testing::internal::GTestLog::GetStream ( )
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_.

1261 { return ::std::cerr; }
::std::ostream& testing::internal::GTestLog::GetStream ( )
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_.

1261 { return ::std::cerr; }
void testing::internal::GTestLog::operator= ( GTestLog const &  )
private
void testing::internal::GTestLog::operator= ( GTestLog const &  )
private
void testing::internal::GTestLog::operator= ( GTestLog const &  )
private

Member Data Documentation

const GTestLogSeverity testing::internal::GTestLog::severity_
private

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

Referenced by ~GTestLog().


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