Deflake FFmpegDemuxer tests by using RunLoop::QuitClosure.
Almost every DemuxerStream::Read() test was using a bare base::RunLoop::Run() and later posting as deprecated quit closure for the current loop. This updates all the tests to use a helper method which properly sets the RunLoop and explicit QuitClosure. It also cleans up some log spam and clang warnings at the same time. I'm not sure this actually resolves the linked bug though, I think that was actually a bug in ffmpeg which has subsequently been fixed in a later ffmpeg roll. BUG=996040 R=xhwang Change-Id: I91e2221da5bb95017c82a255a2676a2a6ce5f944 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919722 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#715914}
Showing
This diff is collapsed.
Please register or sign in to comment