Pushes the given source file location and message onto a per-thread trace stack maintained by Google Test.
| 7587 | // Pushes the given source file location and message onto a per-thread |
| 7588 | // trace stack maintained by Google Test. |
| 7589 | void ScopedTrace::PushTrace(const char* file, int line, std::string message) { |
| 7590 | internal::TraceInfo trace; |
| 7591 | trace.file = file; |
| 7592 | trace.line = line; |
| 7593 | trace.message.swap(message); |
| 7594 | |
| 7595 | UnitTest::GetInstance()->PushGTestTrace(trace); |
| 7596 | } |
| 7597 | |
| 7598 | // Pops the info pushed by the c'tor. |
| 7599 | ScopedTrace::~ScopedTrace() |