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

Issue 9055001: Change code in base (primarily unit tests) to use Sleep(TimeDelta). (Closed)

Created:
8 years, 11 months ago by Ted Vessenes
Modified:
8 years, 11 months ago
Reviewers:
brettw
CC:
chromium-reviews, Paweł Hajdan Jr., sadrul
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Change code in base (primarily unit tests) to use Sleep(TimeDelta). BUG=108171 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116065

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove const qualifiers and needless initialization. #

Patch Set 3 : Qualify windows Sleep calls to go through PlatformThread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -71 lines) Patch
M base/debug/debugger.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/debug/debugger_posix.cc View 1 chunk +3 lines, -1 line 0 comments Download
M base/debug/trace_event_unittest.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M base/lazy_instance_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/message_loop_unittest.cc View 1 2 14 chunks +24 lines, -19 lines 0 comments Download
M base/process_util_posix.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M base/process_util_unittest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M base/shared_memory_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/shared_memory_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M base/spin_wait.h View 1 chunk +1 line, -1 line 0 comments Download
M base/synchronization/condition_variable_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/synchronization/lock_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M base/synchronization/waitable_event_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/synchronization/waitable_event_watcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/threading/platform_thread_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/threading/thread_collision_warner_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M base/threading/thread_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M base/threading/watchdog_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M base/time_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/time_win_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/timer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/tools_sanity_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Ted Vessenes
This is a conversion of the Sleep() interface for most code under base. Changes were ...
8 years, 11 months ago (2011-12-30 22:09:56 UTC) #1
brettw
http://codereview.chromium.org/9055001/diff/1/base/process_util_unittest.cc File base/process_util_unittest.cc (right): http://codereview.chromium.org/9055001/diff/1/base/process_util_unittest.cc#newcode99 base/process_util_unittest.cc:99: base::TimeDelta waited = base::TimeDelta::FromMilliseconds(0); You can omit the "= ...
8 years, 11 months ago (2011-12-31 17:52:05 UTC) #2
Ted Vessenes
I had some compilation errors that seemed I thought were caused by the lack of ...
8 years, 11 months ago (2011-12-31 18:45:39 UTC) #3
brettw
okay, LGTM with that
8 years, 11 months ago (2011-12-31 18:52:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedvessenes@gmail.com/9055001/3002
8 years, 11 months ago (2011-12-31 19:17:32 UTC) #5
commit-bot: I haz the power
Try job failure for 9055001-3002 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 11 months ago (2011-12-31 19:35:40 UTC) #6
Ted Vessenes
Compilation error was caused by windows specific code that directly called Sleep() rather than PlatformThread::Sleep(). ...
8 years, 11 months ago (2011-12-31 20:09:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tedvessenes@gmail.com/9055001/8001
8 years, 11 months ago (2011-12-31 21:11:43 UTC) #8
commit-bot: I haz the power
8 years, 11 months ago (2011-12-31 22:53:54 UTC) #9
Change committed as 116065

Powered by Google App Engine
This is Rietveld 408576698