Loading system/gd/common/testing/log_capture.cc +6 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,12 @@ void LogCapture::Flush() { } } void LogCapture::Sync() { if (fd_ != -1) { fsync(fd_); } } void LogCapture::Reset() { if (fd_ != -1) { if (ftruncate(fd_, 0UL) == -1) { Loading system/gd/common/testing/log_capture.h +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ class LogCapture { std::string Read(); // Flushes contents of log capture back to |stderr| void Flush(); // Synchronize buffer contents to file descriptor void Sync(); // Returns the backing store size in bytes size_t Size() const; // Truncates and resets the file pointer discarding all logs up to this point Loading Loading
system/gd/common/testing/log_capture.cc +6 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,12 @@ void LogCapture::Flush() { } } void LogCapture::Sync() { if (fd_ != -1) { fsync(fd_); } } void LogCapture::Reset() { if (fd_ != -1) { if (ftruncate(fd_, 0UL) == -1) { Loading
system/gd/common/testing/log_capture.h +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ class LogCapture { std::string Read(); // Flushes contents of log capture back to |stderr| void Flush(); // Synchronize buffer contents to file descriptor void Sync(); // Returns the backing store size in bytes size_t Size() const; // Truncates and resets the file pointer discarding all logs up to this point Loading