Stops capturing the output stream and returns the captured string.
| 9678 | |
| 9679 | // Stops capturing the output stream and returns the captured string. |
| 9680 | std::string GetCapturedStream(CapturedStream** captured_stream) { |
| 9681 | const std::string content = (*captured_stream)->GetCapturedString(); |
| 9682 | |
| 9683 | delete *captured_stream; |
| 9684 | *captured_stream = NULL; |
| 9685 | |
| 9686 | return content; |
| 9687 | } |
| 9688 | |
| 9689 | // Starts capturing stdout. |
| 9690 | void CaptureStdout() { |
no test coverage detected