DescriptionAdd FlushForTesting to base::Thread.
Grew tired of the post+wait pattern in many tests to flush a base::Thread.
Was going to need it again in https://codereview.chromium.org/2333023003/
and decided to add an API for everyone's sake instead :-).
Off the top of my head, will also be useful in
https://codereview.chromium.org/2299523003/
BUG=646443
Committed: https://crrev.com/54ef83562c4846bba5b4a7f923b15410eefd1a0f
Cr-Commit-Position: refs/heads/master@{#419026}
Patch Set 1 #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 19 (9 generated)
|