#include "components/headless/test/capture_std_stream.h"
#include <fcntl.h>
#include <stdio.h>
#include "base/check_op.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <io.h>
#else
#include <unistd.h>
#endif
namespace headless {
namespace {
enum { … };
static constexpr char kPipeEnd = …;
}
CaptureStdStream::CaptureStdStream(FILE* stream) : … { … }
CaptureStdStream::~CaptureStdStream() { … }
void CaptureStdStream::StartCapture() { … }
void CaptureStdStream::StopCapture() { … }
std::string CaptureStdStream::TakeCapturedData() { … }
}