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

Unified Diff: content/common/gpu/media/video_encode_accelerator_unittest.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
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder_unittest.cc ('k') | media/cast/test/simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/video_encode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_encode_accelerator_unittest.cc b/content/common/gpu/media/video_encode_accelerator_unittest.cc
index 60bc875e96aa648c00783897a815fd3889290e9a..481091558205a842040b86588ea48fe52305a906 100644
--- a/content/common/gpu/media/video_encode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_encode_accelerator_unittest.cc
@@ -825,11 +825,10 @@ void VEAClient::BitstreamBufferReady(int32 bitstream_buffer_id,
if (save_to_file_) {
int size = base::checked_cast<int>(payload_size);
- EXPECT_EQ(base::AppendToFile(
- base::FilePath::FromUTF8Unsafe(test_stream_->out_filename),
- static_cast<char*>(shm->memory()),
- size),
- size);
+ EXPECT_TRUE(base::AppendToFile(
+ base::FilePath::FromUTF8Unsafe(test_stream_->out_filename),
+ static_cast<char*>(shm->memory()),
+ size));
}
FeedEncoderWithOutput(shm);
« no previous file with comments | « content/common/gpu/media/vaapi_h264_decoder_unittest.cc ('k') | media/cast/test/simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698