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

Unified Diff: media/filters/video_renderer_base_unittest.cc

Issue 6259012: Fix frame-exact seeking again to stay within duration as opposed to rounding to the closest frame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 9 years, 11 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 8ee5b143b858907bbbf7752c049f91676d2118f5..c15f8c3992c4b5c76f380426844445462da3474d 100644
--- a/media/filters/video_renderer_base_unittest.cc
+++ b/media/filters/video_renderer_base_unittest.cc
@@ -243,15 +243,15 @@ TEST_F(VideoRendererBaseTest, Seek_Exact) {
Flush();
}
-TEST_F(VideoRendererBaseTest, Seek_RoundUp) {
+TEST_F(VideoRendererBaseTest, Seek_RightBefore) {
Initialize();
Flush();
Seek(kDuration * 6 - 1);
- ExpectCurrentTimestamp(kDuration * 6);
+ ExpectCurrentTimestamp(kDuration * 5);
Flush();
}
-TEST_F(VideoRendererBaseTest, Seek_RoundDown) {
+TEST_F(VideoRendererBaseTest, Seek_RightAfter) {
Initialize();
Flush();
Seek(kDuration * 6 + 1);
« 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