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

Unified Diff: media/blink/video_frame_compositor_unittest.cc

Issue 1339373003: Fix media media_blink_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/video_frame_compositor_unittest.cc
diff --git a/media/blink/video_frame_compositor_unittest.cc b/media/blink/video_frame_compositor_unittest.cc
index de5b7b0005e08c0c25fbb0cf8895db0e757aeb0c..a6b9ee1181894dfac3d73aa24110c3d03a78664b 100644
--- a/media/blink/video_frame_compositor_unittest.cc
+++ b/media/blink/video_frame_compositor_unittest.cc
@@ -258,7 +258,7 @@ TEST_F(VideoFrameCompositorTest, OpacityChanged) {
EXPECT_FALSE(opaque());
EXPECT_EQ(1, opacity_changed_count());
- EXPECT_FALSE(
+ EXPECT_TRUE(
compositor()->UpdateCurrentFrame(base::TimeTicks(), base::TimeTicks()));
RenderFrame();
EXPECT_FALSE(opaque());
@@ -285,9 +285,7 @@ TEST_F(VideoFrameCompositorTest, VideoRendererSinkFrameDropped) {
EXPECT_CALL(*this, Render(_, _, _)).WillRepeatedly(Return(opaque_frame));
StartVideoRendererSink();
- // The first UpdateCurrentFrame() after a background render, which starting
- // the sink does automatically, won't report a dropped frame.
- EXPECT_FALSE(
+ EXPECT_TRUE(
compositor()->UpdateCurrentFrame(base::TimeTicks(), base::TimeTicks()));
// Another call should trigger a dropped frame callback.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698