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

Unified Diff: media/filters/rtc_video_decoder_unittest.cc

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More CR fixes Created 9 years, 7 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/rtc_video_decoder.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/rtc_video_decoder_unittest.cc
diff --git a/media/filters/rtc_video_decoder_unittest.cc b/media/filters/rtc_video_decoder_unittest.cc
index f0970ad16baab1e0f2ee06faca21d9e81a92eda8..71287d0293074440b8e4e7d3799650d372557bea 100644
--- a/media/filters/rtc_video_decoder_unittest.cc
+++ b/media/filters/rtc_video_decoder_unittest.cc
@@ -111,7 +111,7 @@ TEST_F(RTCVideoDecoderTest, DoSeek) {
// Expect Seek and verify the results.
EXPECT_CALL(*renderer_.get(), ConsumeVideoFrame(_))
.Times(Limits::kMaxVideoFrames);
- decoder_->Seek(kZero, NewExpectedCallback());
+ decoder_->Seek(kZero, NewExpectedStatusCB(PIPELINE_OK));
message_loop_.RunAllPending();
EXPECT_EQ(RTCVideoDecoder::kNormal, decoder_->state_);
@@ -127,7 +127,7 @@ TEST_F(RTCVideoDecoderTest, DoDeliverFrame) {
decoder_->set_consume_video_frame_callback(
base::Bind(&RTCVideoDecoder::ProduceVideoFrame,
base::Unretained(decoder_.get())));
- decoder_->Seek(kZero, NewExpectedCallback());
+ decoder_->Seek(kZero, NewExpectedStatusCB(PIPELINE_OK));
decoder_->set_consume_video_frame_callback(
base::Bind(&MockVideoRenderer::ConsumeVideoFrame,
« no previous file with comments | « media/filters/rtc_video_decoder.cc ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698