Update FileManagerBrowserTestBase to avoid unprocessed messages
base::RunLoop::QuitCurrentWhenIdle() can spin the run loop a few times before it exits, sufficient to allow any chrome.test.SendMessage calls arriving _after the test PASS or FAIL messages_ to be queued. Such messages will not be processed once the message processing sees a PASS or FAIL message, causing a CHECK in the extensions system code at exit to remind us that unprocessed test.SendMessage's need a reply. Fix: use modern base::RunLoop/Closure methods. Add |test_complete_| to record when test PASS or FAIL messages arrive. Add a CHECK stop to the test.SendMessage reader code to verify they are never received after a PASS or FAIL message. Tbr: mtomasz, slangley Bug: 668680 Change-Id: I09cae80870d0471b214253beb2f05e8914fee0aa Reviewed-on: https://chromium-review.googlesource.com/1034174Reviewed-by:Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#554647}
Showing
Please register or sign in to comment