media: Fix WebMediaPlayerImplTest.Encrypted test flakiness
The current test has a race condition that by the time MetaData is reported (right after Demuxer initialization), the Renderer might not have been initialized (which triggers the "waitingforkey" event, that will trigger DidBlockPlaybackWaitingForKey(). This CL fixes the test so that Load() will wait for DidBlockPlaybackWaitingForKey() to avoid this race condition. Bug: 1021574 Test: Fix flaky test. Change-Id: Icd3bdae9ceb2a5bb7791418e729e68e323ff74fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1900158Reviewed-by:John Rummell <jrummell@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#712709}
Showing
Please register or sign in to comment