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

Unified Diff: media/filters/video_renderer_base_unittest.cc

Issue 18580008: Rename VideoDecoder::HasOutputFrameAvailable() to CanReadWithoutStalling(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: name change and drop disabled (invalid) test Created 7 years, 6 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_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 945940a1d10c53304438ee8aac9f117c898a3357..8044a11d06499f5a6861097e672e31722bdbeaa1 100644
--- a/media/filters/video_renderer_base_unittest.cc
+++ b/media/filters/video_renderer_base_unittest.cc
@@ -507,6 +507,22 @@ TEST_F(VideoRendererBaseTest, Preroll_RightAfter) {
Shutdown();
}
+TEST_F(VideoRendererBaseTest, PlayAfterPreroll) {
+ Initialize();
+ Pause();
+ Flush();
+ QueuePrerollFrames(kFrameDurationInMs * 4);
+
+ Preroll(kFrameDurationInMs * 4, PIPELINE_OK);
+ EXPECT_EQ(kFrameDurationInMs * 4, GetCurrentTimestampInMs());
+
+ Play();
+ // Advance time past prerolled time to trigger a Read().
+ AdvanceTimeInMs(5 * kFrameDurationInMs);
+ WaitForPendingRead();
+ Shutdown();
+}
+
TEST_F(VideoRendererBaseTest, GetCurrentFrame_Initialized) {
Initialize();
EXPECT_TRUE(GetCurrentFrame().get()); // Due to prerolling.
« 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