DescriptionFix ServiceWorkerResourceStorageDiskTest.CleanupOnRestart flakiness on Android
This test involves interactions with SimpleCache's worker thread,
so we cannot guarantee task completion by simply calling
RunLoop().RunUntilIdle().
TestCompletionCallback waits until the callback is called. For purging,
there is no completion callback so poll is_purge_pending_ flag and call
RunUntilIdle() repeatedly.
BUG=387045
TEST=content_unittests --gtest-filter=ServiceWorkerResourceStorageDiskTest.*
Committed: https://crrev.com/558a1c9d789332e0151c989963f6517b29455f4b
Cr-Commit-Position: refs/heads/master@{#300632}
Patch Set 1 : #
Messages
Total messages: 8 (3 generated)
|