Stops capturing the output stream and returns the captured string.
| 8400 | |
| 8401 | // Stops capturing the output stream and returns the captured string. |
| 8402 | String GetCapturedStream(CapturedStream** captured_stream) { |
| 8403 | const String content = (*captured_stream)->GetCapturedString(); |
| 8404 | |
| 8405 | delete *captured_stream; |
| 8406 | *captured_stream = NULL; |
| 8407 | |
| 8408 | return content; |
| 8409 | } |
| 8410 | |
| 8411 | // Starts capturing stdout. |
| 8412 | void CaptureStdout() { |
no test coverage detected