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

Unified Diff: media/filters/video_frame_scheduler_impl_unittest.cc

Issue 257793004: Update VideoFrameScheduler API and add clockless and testing implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 8 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_frame_scheduler_impl.cc ('k') | media/filters/video_frame_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_scheduler_impl_unittest.cc
diff --git a/media/filters/video_frame_scheduler_impl_unittest.cc b/media/filters/video_frame_scheduler_impl_unittest.cc
index b423776cb3c4a68e195f67cb3b9c7217c5898cd0..cf5ee0a3d45181c971f0614d5e1fa6a38bdf7c0c 100644
--- a/media/filters/video_frame_scheduler_impl_unittest.cc
+++ b/media/filters/video_frame_scheduler_impl_unittest.cc
@@ -12,6 +12,8 @@
namespace media {
+using testing::_;
+
// NOTE: millisecond-level resolution is used for times as real delayed tasks
// are posted. Don't use large values if you want to keep tests running fast.
class VideoFrameSchedulerImplTest : public testing::Test {
@@ -138,8 +140,8 @@ TEST_F(VideoFrameSchedulerImplTest, Reset) {
VideoFrame::CreateBlackFrame(gfx::Size(8, 8));
Schedule(frame, 10);
- // Despite being on time, frames are returned immediately.
- EXPECT_CALL(*this, OnFrameDone(frame, VideoFrameScheduler::RESET));
+ // Despite being on time, frame callback isn't run.
+ EXPECT_CALL(*this, OnFrameDone(_, _)).Times(0);
AdvanceTime(10);
Reset();
RunUntilTimeHasElapsed(10);
« no previous file with comments | « media/filters/video_frame_scheduler_impl.cc ('k') | media/filters/video_frame_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698