Commit 8df8c42d authored by scherkus@chromium.org's avatar scherkus@chromium.org

Tweak expectations for VideoRendererImplTest.StartPlayingFrom_LowDelay.

Until we get rid of the internal thread, the buffering events will fire
non-deterministically. For example, under valgrind it's possible for
them to never fire.

BUG=144683

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283998 0039d316-1c4b-4281-b951-d872f2087c98
parent 72728b14
......@@ -486,12 +486,12 @@ TEST_F(VideoRendererImplTest, StartPlayingFrom_LowDelay) {
InitializeWithLowDelay(true);
QueueFrames("0");
// Expect to frequently have enough/nothing due to only requiring one frame.
// Expect some amount of have enough/nothing due to only requiring one frame.
EXPECT_CALL(mock_cb_, Display(HasTimestamp(0)));
EXPECT_CALL(mock_cb_, BufferingStateChange(BUFFERING_HAVE_ENOUGH))
.Times(AtLeast(1));
.Times(AnyNumber());
EXPECT_CALL(mock_cb_, BufferingStateChange(BUFFERING_HAVE_NOTHING))
.Times(AtLeast(1));
.Times(AnyNumber());
StartPlayingFrom(0);
QueueFrames("10");
......
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