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

Unified Diff: base/debug/trace_event_unittest.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: base/debug/trace_event_unittest.cc
diff --git a/base/debug/trace_event_unittest.cc b/base/debug/trace_event_unittest.cc
index 30ad797e060d96f023da990d15bb6c228a42b5d4..b2e10d3f3c2bddff3173764e7abb3b290f212e57 100644
--- a/base/debug/trace_event_unittest.cc
+++ b/base/debug/trace_event_unittest.cc
@@ -872,10 +872,10 @@ void ValidateInstantEventPresentOnEveryThread(const ListValue& trace_parsed,
} // namespace
void HighResSleepForTraceTest(base::TimeDelta elapsed) {
- base::TimeTicks end_time = base::TimeTicks::HighResNow() + elapsed;
+ base::TimeTicks end_time = base::TimeTicks::Now() + elapsed;
miu 2015/01/21 23:52:51 This is identical to the PlatformThread::Sleep() i
charliea_google.com 2015/01/22 15:20:45 Done.
do {
base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(1));
- } while (base::TimeTicks::HighResNow() < end_time);
+ } while (base::TimeTicks::Now() < end_time);
}
// Simple Test for emitting data and validating it was received.

Powered by Google App Engine
This is Rietveld 408576698