Index: content/renderer/media/capture_video_decoder_unittest.cc |
=================================================================== |
--- content/renderer/media/capture_video_decoder_unittest.cc (revision 109978) |
+++ content/renderer/media/capture_video_decoder_unittest.cc (working copy) |
@@ -152,6 +152,16 @@ |
message_loop_->RunAllPending(); |
} |
+ void Flush() { |
+ // Issue a read. |
+ EXPECT_CALL(*this, FrameReady(_)); |
+ decoder_->Read(read_cb_); |
+ |
+ decoder_->Pause(media::NewExpectedClosure()); |
+ decoder_->Flush(media::NewExpectedClosure()); |
+ message_loop_->RunAllPending(); |
+ } |
+ |
void Stop() { |
EXPECT_CALL(*vc_impl_, StopCapture(capture_client())) |
.Times(1) |
@@ -198,6 +208,7 @@ |
Initialize(); |
Start(); |
Play(); |
+ Flush(); |
Stop(); |
} |