Fix flakes in ImageWriterWriteFromUrlOperationTest.VerifyFile
USER_VISIBLE tasks on the UI thread are now run at a lower priority than default / USER_BLOCKING tasks. This caused the test to become flaky because it runs 100 USER_VISIBLE tasks to call OnProgress but the QuitClocure task is run at USER_BLOCKING priority so occasionally it can run too soon. This patch fixes that by running the Quit at USER_VISIBLE priority. Change-Id: I93bc93c9c583b160aa1ff4326a021c432eab525a BUG: 863341 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1697204 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by:Jochen Eisinger <jochen@chromium.org> Cr-Commit-Position: refs/heads/master@{#676874}
Showing
Please register or sign in to comment