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

Unified Diff: media/filters/video_renderer_base_unittest.cc

Issue 8561019: Clear VideoRendererBase::current_frame_ when stopped. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_renderer_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_renderer_base_unittest.cc
diff --git a/media/filters/video_renderer_base_unittest.cc b/media/filters/video_renderer_base_unittest.cc
index 01ebb53c6fa29842c318f18391677a83b59105c3..2c8a661a77c463eb43ba9da26d43501fb3ca6c23 100644
--- a/media/filters/video_renderer_base_unittest.cc
+++ b/media/filters/video_renderer_base_unittest.cc
@@ -379,6 +379,13 @@ TEST_F(VideoRendererBaseTest, GetCurrentFrame_Shutdown) {
ExpectCurrentFrame(false);
}
+// Stop() is called immediately during an error.
+TEST_F(VideoRendererBaseTest, GetCurrentFrame_Error) {
+ Initialize();
+ Stop();
+ ExpectCurrentFrame(false);
+}
+
// Verify that shutdown can only proceed after we return the current frame.
TEST_F(VideoRendererBaseTest, Shutdown_DuringPaint) {
Initialize();
« no previous file with comments | « media/filters/video_renderer_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698