Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: media/cast/test/simulator.cc

Issue 614893004: Refactor AppendToFile and WriteFileDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/test/simulator.cc
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc
index e3872a98d98ce952d9b264318704a66073e7ba2d..cccc571a21532c66d5cbdbee73f9b4b8c2c7a6c9 100644
--- a/media/cast/test/simulator.cc
+++ b/media/cast/test/simulator.cc
@@ -186,7 +186,7 @@ void AppendLogToFile(media::cast::proto::LogMetadata* metadata,
return;
}
- if (AppendToFile(output_path, serialized_log.get(), output_bytes) == -1) {
+ if (!AppendToFile(output_path, serialized_log.get(), output_bytes)) {
LOG(ERROR) << "Failed to append to log.";
}
}
« no previous file with comments | « content/common/gpu/media/video_encode_accelerator_unittest.cc ('k') | third_party/zlib/google/zip_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698