mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Factors out an RAII-based class that can be used to capture std::cout, std::cerr, or technically any other std::ostream, though that's unlikely to be useful. This makes the logic reusable but more importantly, ensures the capture is cleaned up at the end of the test. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style