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

#include <gtest.h>

Public Member Functions

template<typename T >
 ScopedTrace (const char *file, int line, const T &message)
 
 ScopedTrace (const char *file, int line, const char *message)
 
 ScopedTrace (const char *file, int line, const std::string &message)
 
 ~ScopedTrace ()
 

Detailed Description

Definition at line 2146 of file gtest.h.

Constructor & Destructor Documentation

◆ ScopedTrace() [1/3]

template<typename T >
testing::ScopedTrace::ScopedTrace ( const char * file,
int line,
const T & message )
inline

Definition at line 2154 of file gtest.h.

2154 {
2155 PushTrace(file, line, (Message() << message).GetString());
2156 }

◆ ScopedTrace() [2/3]

testing::ScopedTrace::ScopedTrace ( const char * file,
int line,
const char * message )
inline

Definition at line 2159 of file gtest.h.

2159 {
2160 PushTrace(file, line, message ? message : "(null)");
2161 }

◆ ScopedTrace() [3/3]

testing::ScopedTrace::ScopedTrace ( const char * file,
int line,
const std::string & message )
inline

Definition at line 2169 of file gtest.h.

2169 {
2170 PushTrace(file, line, message);
2171 }

◆ ~ScopedTrace()

testing::ScopedTrace::~ScopedTrace ( )

Definition at line 5841 of file gtest.cc.

5842 {
5843 UnitTest::GetInstance()->PopGTestTrace();
5844}
static UnitTest * GetInstance()
Definition gtest.cc:4374
Here is the call graph for this function:

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