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

Issue 10786013: Change explicit usage of each type of message loop in TimerTest to instead loop through an array of… (Closed)

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

Description

Change explicit usage of each type of message loop in TimerTest to instead loop through an array of message loop types. This allows for easier-to-read code while including a platform that cannot run the tests on every kind of message loop. Specifically, iOS cannot run the UI loop for unit tests. Un-exclude timer_unittest.cc on ios in base.gyp. BUG=b/6825060 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146980

Patch Set 1 #

Patch Set 2 : Better #if-def & array usage #

Total comments: 2

Patch Set 3 : removed #endif comment. #

Total comments: 2

Patch Set 4 : Added const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -28 lines) Patch
M base/base.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M base/timer_unittest.cc View 1 2 3 2 chunks +38 lines, -27 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
leng
8 years, 5 months ago (2012-07-16 14:53:17 UTC) #1
leng
Better array size determination as we discussed. PTAL, thanks!
8 years, 5 months ago (2012-07-16 15:40:55 UTC) #2
stuartmorgan
LGTM with nit https://chromiumcodereview.appspot.com/10786013/diff/2001/base/timer_unittest.cc File base/timer_unittest.cc (right): https://chromiumcodereview.appspot.com/10786013/diff/2001/base/timer_unittest.cc#newcode20 base/timer_unittest.cc:20: #endif // !OS_IOS No need for ...
8 years, 5 months ago (2012-07-16 15:56:14 UTC) #3
leng
https://chromiumcodereview.appspot.com/10786013/diff/2001/base/timer_unittest.cc File base/timer_unittest.cc (right): https://chromiumcodereview.appspot.com/10786013/diff/2001/base/timer_unittest.cc#newcode20 base/timer_unittest.cc:20: #endif // !OS_IOS On 2012/07/16 15:56:15, stuartmorgan wrote: > ...
8 years, 5 months ago (2012-07-16 16:01:28 UTC) #4
leng
8 years, 5 months ago (2012-07-16 16:01:46 UTC) #5
Mark Mentovai
https://chromiumcodereview.appspot.com/10786013/diff/2002/base/timer_unittest.cc File base/timer_unittest.cc (right): https://chromiumcodereview.appspot.com/10786013/diff/2002/base/timer_unittest.cc#newcode15 base/timer_unittest.cc:15: MessageLoop::Type testing_message_loops[] = { const?
8 years, 5 months ago (2012-07-16 16:04:04 UTC) #6
leng
PTAL, Thanks! https://chromiumcodereview.appspot.com/10786013/diff/2002/base/timer_unittest.cc File base/timer_unittest.cc (right): https://chromiumcodereview.appspot.com/10786013/diff/2002/base/timer_unittest.cc#newcode15 base/timer_unittest.cc:15: MessageLoop::Type testing_message_loops[] = { On 2012/07/16 16:04:04, ...
8 years, 5 months ago (2012-07-16 16:10:10 UTC) #7
Mark Mentovai
LGTM
8 years, 5 months ago (2012-07-16 16:38:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/10786013/5
8 years, 5 months ago (2012-07-16 17:13:39 UTC) #9
commit-bot: I haz the power
Try job failure for 10786013-5 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-16 18:12:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/10786013/5
8 years, 5 months ago (2012-07-17 10:03:53 UTC) #11
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 11:23:01 UTC) #12
Change committed as 146980

Powered by Google App Engine
This is Rietveld 408576698