Starts capturing an output stream (stdout/stderr).
| 8391 | |
| 8392 | // Starts capturing an output stream (stdout/stderr). |
| 8393 | void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) { |
| 8394 | if (*stream != NULL) { |
| 8395 | GTEST_LOG_(FATAL) << "Only one " << stream_name |
| 8396 | << " capturer can exist at a time."; |
| 8397 | } |
| 8398 | *stream = new CapturedStream(fd); |
| 8399 | } |
| 8400 | |
| 8401 | // Stops capturing the output stream and returns the captured string. |
| 8402 | String GetCapturedStream(CapturedStream** captured_stream) { |
no outgoing calls
no test coverage detected