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

Unified Diff: content/renderer/media/rtc_video_decoder_unittest.cc

Issue 10248002: Report VideoDecoder status through ReadCB instead of through FilterHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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: content/renderer/media/rtc_video_decoder_unittest.cc
diff --git a/content/renderer/media/rtc_video_decoder_unittest.cc b/content/renderer/media/rtc_video_decoder_unittest.cc
index a5748b4d8a9d91c23aee64404876b695b6c9750a..73b2e1d0c91ebb7e8ccdf8eca553ce2da995f0d6 100644
--- a/content/renderer/media/rtc_video_decoder_unittest.cc
+++ b/content/renderer/media/rtc_video_decoder_unittest.cc
@@ -159,7 +159,8 @@ class RTCVideoDecoderTest : public testing::Test {
base::Unretained(&stats_callback_object_));
}
- MOCK_METHOD1(FrameReady, void(scoped_refptr<media::VideoFrame>));
+ MOCK_METHOD2(FrameReady, void(scoped_refptr<media::VideoFrame>,
+ media::VideoDecoder::Status status));
// Fixture members.
scoped_refptr<RTCVideoDecoder> decoder_;
@@ -204,7 +205,7 @@ TEST_F(RTCVideoDecoderTest, DoFlush) {
InitializeDecoderSuccessfully();
- EXPECT_CALL(*this, FrameReady(_));
+ EXPECT_CALL(*this, FrameReady(_, media::VideoDecoder::kOk));
decoder_->Read(read_cb_);
decoder_->Pause(media::NewExpectedClosure());
decoder_->Flush(media::NewExpectedClosure());

Powered by Google App Engine
This is Rietveld 408576698