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

Issue 1634803004: Convert CookieMonster tests to use base::RunLoop (Closed)

Created:
4 years, 11 months ago by xunjieli
Modified:
4 years, 10 months ago
Reviewers:
dmoneysligh, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert CookieMonster tests to use base::RunLoop CookieMonster tests post a base::MessageLoop::QuitWhenIdleClosure task which could be run at the start of some other test, since the unit tests are invoked in the same fixture on Android. This CL converts these CookieMonster tests to use base::RunLoop so they don't influence other tests. BUG=568282 Committed: https://crrev.com/b2bec813bb029f85f709860cd3eecce647df8cc1 Cr-Commit-Position: refs/heads/master@{#371908}

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Add an out-of-line destructor #

Total comments: 19

Patch Set 4 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -147 lines) Patch
M net/cookies/cookie_monster_unittest.cc View 1 2 3 41 chunks +98 lines, -95 lines 0 comments Download
M net/cookies/cookie_store_test_callbacks.h View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M net/cookies/cookie_store_test_callbacks.cc View 1 2 3 2 chunks +9 lines, -13 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 2 3 14 chunks +13 lines, -32 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
xunjieli
Hi Matt, I am still finishing up try jobs, but converting CookieMonster seems to fix ...
4 years, 11 months ago (2016-01-26 22:08:50 UTC) #5
mmenke
https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_monster_unittest.cc File net/cookies/cookie_monster_unittest.cc (right): https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_monster_unittest.cc#newcode837 net/cookies/cookie_monster_unittest.cc:837: // saving the provided callback and sending a quit ...
4 years, 11 months ago (2016-01-27 16:55:42 UTC) #6
xunjieli
PTAL. thanks https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_monster_unittest.cc File net/cookies/cookie_monster_unittest.cc (right): https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_monster_unittest.cc#newcode837 net/cookies/cookie_monster_unittest.cc:837: // saving the provided callback and sending ...
4 years, 11 months ago (2016-01-27 18:35:02 UTC) #7
mmenke
https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc File net/cookies/cookie_store_test_callbacks.cc (right): https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc#newcode25 net/cookies/cookie_store_test_callbacks.cc:25: loop_to_quit_(new base::RunLoop) {} On 2016/01/27 18:35:02, xunjieli wrote: > ...
4 years, 11 months ago (2016-01-27 18:52:17 UTC) #8
xunjieli
https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc File net/cookies/cookie_store_test_callbacks.cc (right): https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc#newcode25 net/cookies/cookie_store_test_callbacks.cc:25: loop_to_quit_(new base::RunLoop) {} On 2016/01/27 18:52:17, mmenke wrote: > ...
4 years, 11 months ago (2016-01-27 18:54:53 UTC) #9
mmenke
LGTM, thanks for tackling this issue so aggressively! https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc File net/cookies/cookie_store_test_callbacks.cc (right): https://codereview.chromium.org/1634803004/diff/2/net/cookies/cookie_store_test_callbacks.cc#newcode25 net/cookies/cookie_store_test_callbacks.cc:25: loop_to_quit_(new ...
4 years, 11 months ago (2016-01-27 21:36:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634803004/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634803004/50001
4 years, 11 months ago (2016-01-27 22:19:42 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:50001)
4 years, 11 months ago (2016-01-27 23:08:19 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b2bec813bb029f85f709860cd3eecce647df8cc1 Cr-Commit-Position: refs/heads/master@{#371908}
4 years, 11 months ago (2016-01-27 23:09:30 UTC) #16
dmoneysligh
lgtm
4 years, 11 months ago (2016-01-28 00:02:00 UTC) #18
dmoneysligh
4 years, 11 months ago (2016-01-28 00:02:04 UTC) #19
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698