DescriptionFlush the blocking pool in TestBrowserThreadBundle.
While we already flush the blocking pool in a OnTestEnd() hook (installed in
ContentTestSuiteBase), that is too late for tests that create their own threads.
The test (and the TestBrowserThreadBundle that it contains) will have been
destroyed by the time the hook runs, and any tasks posted to the blocking pool
via PostTaskAndReply will not be able to reply back to the originating thread.
This causes the task and reply Closures to be leaked. Flushing the blocking pool
before TestBrowserThreadBundle is destroyed should fix those leaks.
BUG=168415, 270673, 270658
TBR=ajwong@chromium.org, jochen@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217268
Patch Set 1 #Patch Set 2 : flush the message loop one extra time #
Total comments: 3
Patch Set 3 : flush the pool also at the point where it's normally shut down #Patch Set 4 : added documentation #
Messages
Total messages: 16 (0 generated)
|