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

Unified Diff: base/threading/worker_pool_unittest.cc

Issue 10694131: Switch to TimeDelta interface for process waiting functions in base. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process_util_win.cc ('k') | base/win/sampling_profiler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/worker_pool_unittest.cc
diff --git a/base/threading/worker_pool_unittest.cc b/base/threading/worker_pool_unittest.cc
index 5f94e7355678d20a235f301cf49a3e5d3e4cf87b..10ca4f151183415371d86e91bcae266791848f36 100644
--- a/base/threading/worker_pool_unittest.cc
+++ b/base/threading/worker_pool_unittest.cc
@@ -95,8 +95,7 @@ TEST_F(WorkerPoolTest, MAYBE_PostTaskAndReply) {
scoped_refptr<PostTaskAndReplyTester> tester(new PostTaskAndReplyTester());
tester->RunTest();
- const TimeDelta kMaxDuration =
- TimeDelta::FromMilliseconds(TestTimeouts::tiny_timeout_ms());
+ const TimeDelta kMaxDuration = TestTimeouts::tiny_timeout();
TimeTicks start = TimeTicks::Now();
while (!tester->finished() && TimeTicks::Now() - start < kMaxDuration) {
MessageLoop::current()->RunAllPending();
« no previous file with comments | « base/process_util_win.cc ('k') | base/win/sampling_profiler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698