• Wez's avatar
    Fix PipelineIntegrationTestBase::WaitUntilEnded() to fail on error. · 15798520
    Wez authored
    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: default avatarDale Curtis <dalecurtis@chromium.org>
    Commit-Queue: Wez <wez@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#555777}
    15798520
pipeline_integration_test_base.h 10.1 KB