Fix PipelineIntegrationTestBase::WaitUntilEnded() to fail on error.
Previously WaitUntilEnded() would not install an on-error closure, and so would fail to exit on pipeline errors, causing the test to hang rather than fail. WaitUntilEnded() now waits for either end or error, and EXPECTs a PIPELINE_OK status before returning. Also tweaked the naming of RunUntilIdle* to RunUntilQuit to avoid confusion with the RunLoop::RunIntilIdle() API behaviour. Bug: 836785 Change-Id: Idcf9bbec5ac0d7d78e2ba0530eaed0748a1626c8 Reviewed-on: https://chromium-review.googlesource.com/1041807Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#555777}
Showing
Please register or sign in to comment