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

Issue 10701172: Replace MessagePumpForUI with MessagePumpDefault in unit tests. (Closed)

Created:
8 years, 5 months ago by rohitrao (ping after 24h)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Replace MessagePumpForUI with MessagePumpDefault in unit tests. Uses the MessagePumpFactory functionality to install a default message pump in unit tests. This allows us to stop hard-coding a default message pump in many separate tests and instead centralizes the logic. When tests ask for a MessageLoopForUI now, they will actually receive a message loop that is backed by a default message pump, which means that calling Run() and Quit() will work without crashing. BUG=None TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148384

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 6

Patch Set 3 : Review. #

Patch Set 4 : Maybe not a copy? #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 2 chunks +8 lines, -0 lines 0 comments Download
A base/test/test_support_ios.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A base/test/test_support_ios.mm View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rohitrao (ping after 24h)
One more CL for you, Pawel. This uses the same MessagePumpFactory that android does, but ...
8 years, 5 months ago (2012-07-13 14:55:38 UTC) #1
rohitrao (ping after 24h)
Over to Mark instead. Mark, do you feel ok with reviewing changes in base/test? Pawel ...
8 years, 5 months ago (2012-07-25 14:46:57 UTC) #2
Mark Mentovai
http://codereview.chromium.org/10701172/diff/3001/base/test/test_support_ios.h File base/test/test_support_ios.h (left): http://codereview.chromium.org/10701172/diff/3001/base/test/test_support_ios.h#oldcode5 base/test/test_support_ios.h:5: #include "base/message_loop_proxy.h" Don’t use svn copy to create a ...
8 years, 5 months ago (2012-07-25 15:22:00 UTC) #3
rohitrao (ping after 24h)
Gonna try and fix the A+ nonsense. Will report back. http://codereview.chromium.org/10701172/diff/3001/base/test/test_support_ios.h File base/test/test_support_ios.h (left): http://codereview.chromium.org/10701172/diff/3001/base/test/test_support_ios.h#oldcode5 ...
8 years, 5 months ago (2012-07-25 16:36:53 UTC) #4
Mark Mentovai
LGTM when you make it not look like a copy.
8 years, 5 months ago (2012-07-25 16:42:04 UTC) #5
rohitrao (ping after 24h)
On 2012/07/25 16:42:04, Mark Mentovai wrote: > LGTM when you make it not look like ...
8 years, 5 months ago (2012-07-25 16:47:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rohitrao@chromium.org/10701172/12002
8 years, 5 months ago (2012-07-25 16:48:01 UTC) #7
commit-bot: I haz the power
Try job failure for 10701172-12002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-25 18:23:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rohitrao@chromium.org/10701172/12002
8 years, 5 months ago (2012-07-25 18:25:16 UTC) #9
commit-bot: I haz the power
Try job failure for 10701172-12002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-25 19:30:00 UTC) #10
Paweł Hajdan Jr.
8 years, 3 months ago (2012-08-29 14:51:02 UTC) #11
LGTM

By the way, any base/ OWNER can review base/test changes (e.g. when I'm on
vacation).

Powered by Google App Engine
This is Rietveld 408576698