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

Unified Diff: base/win/sampling_profiler_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/threading/worker_pool_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/sampling_profiler_unittest.cc
diff --git a/base/win/sampling_profiler_unittest.cc b/base/win/sampling_profiler_unittest.cc
index b11e9ea22bb23c1bdb7f33ec7cfb644c1ec32cb1..d0220263425ab9916ad12f7d0c90bf4d0340fa04 100644
--- a/base/win/sampling_profiler_unittest.cc
+++ b/base/win/sampling_profiler_unittest.cc
@@ -78,8 +78,7 @@ TEST_F(SamplingProfilerTest, Sample) {
// allotted to our process in this wall-clock time duration,
// and samples will only accrue while this thread is busy on
// a CPU core.
- base::TimeDelta spin_time =
- base::TimeDelta::FromMilliseconds(TestTimeouts::action_timeout_ms());
+ base::TimeDelta spin_time = TestTimeouts::action_timeout();
base::TimeDelta save_sampling_interval;
ASSERT_TRUE(SamplingProfiler::GetSamplingInterval(&save_sampling_interval));
« no previous file with comments | « base/threading/worker_pool_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698