Commit 8a46ab61 authored by lionel.g.landwerlin's avatar lionel.g.landwerlin Committed by Commit bot

media: VideoRendererImpl: fix unit test on DrMemory bots

BUG=470517

Review URL: https://codereview.chromium.org/1032893002

Cr-Commit-Position: refs/heads/master@{#322547}
parent ff1d51c3
......@@ -27,6 +27,7 @@
using ::testing::_;
using ::testing::AnyNumber;
using ::testing::Invoke;
using ::testing::Mock;
using ::testing::NiceMock;
using ::testing::Return;
using ::testing::SaveArg;
......@@ -495,6 +496,7 @@ TEST_F(VideoRendererImplTest, Underflow) {
EXPECT_CALL(mock_cb_, BufferingStateChange(BUFFERING_HAVE_ENOUGH));
StartPlayingFrom(0);
event.RunAndWait();
Mock::VerifyAndClearExpectations(&mock_cb_);
}
// Advance time slightly. Frames should be dropped and we should NOT signal
......@@ -513,6 +515,7 @@ TEST_F(VideoRendererImplTest, Underflow) {
EXPECT_CALL(mock_cb_, Display(HasTimestamp(30))).Times(1);
AdvanceTimeInMs(3000); // Must match kTimeToDeclareHaveNothing.
event.RunAndWait();
Mock::VerifyAndClearExpectations(&mock_cb_);
}
// Receiving end of stream should signal having enough.
......
# http://crbug.com/470517
VideoRendererImplTest.Underflow
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment