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

Issue 22702003: Fix leak of sequenced worker pool in unit tests when service_ is replaced. (Closed)

Created:
7 years, 4 months ago by juanlang
Modified:
7 years, 4 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix leak of sequenced worker pool in unit tests when service_ is replaced. BUG=270192 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217115

Patch Set 1 #

Patch Set 2 : More correct fix #

Total comments: 2

Patch Set 3 : Comments improved #

Total comments: 3

Patch Set 4 : More straightforward fix #

Patch Set 5 : Flush, just in case, when generation occurs #

Total comments: 1

Patch Set 6 : Use PostTask #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M net/ssl/server_bound_cert_service_unittest.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
juanlang
Ryan, how's this look? I ran it through valgrind and it's happy now. I'm not ...
7 years, 4 months ago (2013-08-08 20:53:30 UTC) #1
Ryan Sleevi
On 2013/08/08 20:53:30, juanlang wrote: > Ryan, how's this look? I ran it through valgrind ...
7 years, 4 months ago (2013-08-08 22:00:16 UTC) #2
juanlang
On 2013/08/08 22:00:16, Ryan Sleevi wrote: > On 2013/08/08 20:53:30, juanlang wrote: > > Ryan, ...
7 years, 4 months ago (2013-08-08 23:02:41 UTC) #3
juanlang
On 2013/08/08 23:02:41, juanlang wrote: > On 2013/08/08 22:00:16, Ryan Sleevi wrote: > > On ...
7 years, 4 months ago (2013-08-08 23:14:01 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/22702003/diff/8001/net/ssl/server_bound_cert_service_unittest.cc File net/ssl/server_bound_cert_service_unittest.cc (right): https://codereview.chromium.org/22702003/diff/8001/net/ssl/server_bound_cert_service_unittest.cc#newcode537 net/ssl/server_bound_cert_service_unittest.cc:537: base::MessageLoop::current()->RunUntilIdle(); Consider updating the comments to be more descriptive ...
7 years, 4 months ago (2013-08-08 23:18:46 UTC) #5
juanlang
Thanks, Ryan. https://codereview.chromium.org/22702003/diff/8001/net/ssl/server_bound_cert_service_unittest.cc File net/ssl/server_bound_cert_service_unittest.cc (right): https://codereview.chromium.org/22702003/diff/8001/net/ssl/server_bound_cert_service_unittest.cc#newcode537 net/ssl/server_bound_cert_service_unittest.cc:537: base::MessageLoop::current()->RunUntilIdle(); On 2013/08/08 23:18:46, Ryan Sleevi wrote: ...
7 years, 4 months ago (2013-08-08 23:51:08 UTC) #6
Ryan Sleevi
Apologies for being asleep at the wheel with the mock bit - it works, but ...
7 years, 4 months ago (2013-08-09 00:45:10 UTC) #7
juanlang
https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc File net/ssl/server_bound_cert_service_unittest.cc (right): https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc#newcode547 net/ssl/server_bound_cert_service_unittest.cc:547: sequenced_worker_pool_->FlushForTesting(); On 2013/08/09 00:45:10, Ryan Sleevi wrote: > I ...
7 years, 4 months ago (2013-08-09 04:48:52 UTC) #8
juanlang
On 2013/08/09 04:48:52, juanlang wrote: > https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc > File net/ssl/server_bound_cert_service_unittest.cc (right): > > https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc#newcode547 > ...
7 years, 4 months ago (2013-08-09 13:33:52 UTC) #9
juanlang
Thanks for putting me on the right track, Ryan. https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc File net/ssl/server_bound_cert_service_unittest.cc (right): https://codereview.chromium.org/22702003/diff/13001/net/ssl/server_bound_cert_service_unittest.cc#newcode547 net/ssl/server_bound_cert_service_unittest.cc:547: ...
7 years, 4 months ago (2013-08-09 16:25:28 UTC) #10
juanlang
On 2013/08/09 16:25:28, juanlang wrote: > Thanks for putting me on the right track, Ryan. ...
7 years, 4 months ago (2013-08-12 15:57:37 UTC) #11
Ryan Sleevi
lgtm
7 years, 4 months ago (2013-08-12 19:42:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juanlang@google.com/22702003/23001
7 years, 4 months ago (2013-08-12 19:53:08 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 23:36:36 UTC) #14
Message was sent while issue was closed.
Change committed as 217115

Powered by Google App Engine
This is Rietveld 408576698