Fix expectation in PipelineIntegrationTestBase::Seek().
commite4e886d072e5c3b4ce282b500054565a2228897c
authorxhwang <xhwang@chromium.org>
Thu, 6 Nov 2014 03:24:16 +0000 (5 19:24 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 6 Nov 2014 03:24:42 +0000 (6 03:24 +0000)
tree2d9bfd8ef5de3579815f3626a7b148a6b5f23319
parentf7c35ac13ba449f1bbed646270435f9c9e6d97b0
Fix expectation in PipelineIntegrationTestBase::Seek().

In Pipeline, we satisfy seek callback as soon as Flush() is finished.
After that, we call StartPlayingFrom(time) which will trigger a buffering
state change.

In PipelineIntegrationTestBase::Seek(), we quit the messageloop right
after Seek() callback is fired. So if we don't run the message loop again
in the test (like we did in FFmpegRegressionTest, where we do a seek at
the end of a test), OnBufferingStateChanged expectation won't be
satisfied.

BUG=430691,426560
TEST=Both PieplineIntegrationTest and FFmpegRegressionTest pass.

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

Cr-Commit-Position: refs/heads/master@{#302956}
media/filters/pipeline_integration_test_base.cc
media/filters/pipeline_integration_test_base.h