Fix file handle leaks in BackgroundFetchDataManagerTest tests.
Tests using BackgroundFetchDataManagerTest::MatchCache inadvetantly held files in the profile dir open beyond the lifetime of the test function, inhibiting ScopedTempDir's ability to clean them up during TestBrowserContext destruction. This change causes MatchCache to wait until the main RunLoop goes idle, thereby allowing for residual tasks to be posted and run upon destruction of the response given to DidMatchCache. BUG=546640,1016662 Change-Id: I4e2a989ec2b744b61b75e3ba2d09270c0eab3c70 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1882310Reviewed-by:Rayan Kanso <rayankans@chromium.org> Commit-Queue: Rayan Kanso <rayankans@chromium.org> Auto-Submit: Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/master@{#709850}
Showing
Please register or sign in to comment