Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Issue 2337253003: Add FlushForTesting to base::Thread. (Closed)

Created:
4 years, 3 months ago by gab
Modified:
4 years, 3 months ago
Reviewers:
danakj
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 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

Messages

Total messages: 19 (9 generated)
gab
Dana PTAL, thanks!
4 years, 3 months ago (2016-09-13 20:30:54 UTC) #4
gab
On 2016/09/13 20:30:54, gab wrote: > Dana PTAL, thanks! post-perf ping, thanks!
4 years, 3 months ago (2016-09-15 17:58:46 UTC) #8
danakj
https://codereview.chromium.org/2337253003/diff/1/base/threading/thread.cc File base/threading/thread.cc (right): https://codereview.chromium.org/2337253003/diff/1/base/threading/thread.cc#newcode147 base/threading/thread.cc:147: void Thread::FlushForTesting() { I'd prefer a free function in ...
4 years, 3 months ago (2016-09-15 18:09:33 UTC) #9
gab
https://codereview.chromium.org/2337253003/diff/1/base/threading/thread.cc File base/threading/thread.cc (right): https://codereview.chromium.org/2337253003/diff/1/base/threading/thread.cc#newcode147 base/threading/thread.cc:147: void Thread::FlushForTesting() { On 2016/09/15 18:09:33, danakj wrote: > ...
4 years, 3 months ago (2016-09-15 20:18:34 UTC) #10
danakj
On Thu, Sep 15, 2016 at 1:18 PM, <gab@chromium.org> wrote: > > https://codereview.chromium.org/2337253003/diff/1/base/threading/thread.cc > File ...
4 years, 3 months ago (2016-09-15 20:54:49 UTC) #11
danakj
So LGTM cuz this appears to be a pattern, but if you're semi convinced about ...
4 years, 3 months ago (2016-09-15 20:55:00 UTC) #12
gab
On 2016/09/15 20:55:00, danakj wrote: > So LGTM cuz this appears to be a pattern, ...
4 years, 3 months ago (2016-09-15 21:11:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337253003/1
4 years, 3 months ago (2016-09-15 21:12:41 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-15 23:04:29 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 23:06:35 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/54ef83562c4846bba5b4a7f923b15410eefd1a0f
Cr-Commit-Position: refs/heads/master@{#419026}

Powered by Google App Engine
This is Rietveld 408576698