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

Unified Diff: media/filters/video_frame_stream_unittest.cc

Issue 20136002: Reland r212023 "Rename VideoDecoder::ReadCB to VideoDecoder::DecodeCB." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests failure. Created 7 years, 5 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 | « media/filters/video_frame_stream.cc ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_stream_unittest.cc
diff --git a/media/filters/video_frame_stream_unittest.cc b/media/filters/video_frame_stream_unittest.cc
index 62647b1809bdc9e0a6d21c0c73ad7ff3d143b5f0..524f6aa6dafa502671281cbf85cd2230a6deacfc 100644
--- a/media/filters/video_frame_stream_unittest.cc
+++ b/media/filters/video_frame_stream_unittest.cc
@@ -78,7 +78,7 @@ class VideoFrameStreamTest : public testing::TestWithParam<bool> {
MOCK_METHOD2(OnInitialized, void(bool, bool));
void OnStatistics(const PipelineStatistics& statistics) {
- total_bytes_decoded_ += statistics.video_bytes_decoded;
+ total_bytes_decoded_ += statistics.video_bytes_decoded;
}
// Fake Decrypt() function used by DecryptingDemuxerStream. It does nothing
@@ -95,10 +95,13 @@ class VideoFrameStreamTest : public testing::TestWithParam<bool> {
}
// Callback for VideoFrameStream::Read().
- void FrameReady(VideoDecoder::Status status,
+ void FrameReady(VideoFrameStream::Status status,
const scoped_refptr<VideoFrame>& frame) {
DCHECK(pending_read_);
- ASSERT_EQ(VideoDecoder::kOk, status);
+ // TODO(xhwang): Add test cases where the fake decoder returns error or
+ // the fake demuxer aborts demuxer read.
+ ASSERT_TRUE(status == VideoFrameStream::OK ||
+ status == VideoFrameStream::ABORTED);
frame_read_ = frame;
if (frame.get() && !frame->IsEndOfStream())
num_decoded_frames_++;
« no previous file with comments | « media/filters/video_frame_stream.cc ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698