Stops capturing the output stream and returns the captured string.
| 10878 | |
| 10879 | // Stops capturing the output stream and returns the captured string. |
| 10880 | static std::string GetCapturedStream(CapturedStream** captured_stream) { |
| 10881 | const std::string content = (*captured_stream)->GetCapturedString(); |
| 10882 | |
| 10883 | delete *captured_stream; |
| 10884 | *captured_stream = nullptr; |
| 10885 | |
| 10886 | return content; |
| 10887 | } |
| 10888 | |
| 10889 | // Starts capturing stdout. |
| 10890 | void CaptureStdout() { |
no test coverage detected