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

Unified Diff: base/test/trace_event_analyzer_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: More changes based on review comments. 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
« no previous file with comments | « base/rand_util_unittest.cc ('k') | base/threading/thread_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/trace_event_analyzer_unittest.cc
diff --git a/base/test/trace_event_analyzer_unittest.cc b/base/test/trace_event_analyzer_unittest.cc
index 0edeb141eafafa4061df6d2c74ec9c6eb71ce975..cc1f8a3cf5c917661d63440e50a3775f40373db7 100644
--- a/base/test/trace_event_analyzer_unittest.cc
+++ b/base/test/trace_event_analyzer_unittest.cc
@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include "base/bind.h"
-#include "base/debug/trace_event_unittest.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/trace_event_analyzer.h"
+#include "base/threading/platform_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -409,7 +409,7 @@ TEST_F(TraceEventAnalyzerTest, BeginEndDuration) {
TRACE_EVENT_BEGIN0("cat2", "name3"); // found by duration query
// next event not searched for, just noise
TRACE_EVENT_INSTANT0("noise", "name4", TRACE_EVENT_SCOPE_THREAD);
- base::debug::HighResSleepForTraceTest(kSleepTime);
+ base::PlatformThread::Sleep(kSleepTime);
TRACE_EVENT_BEGIN0("cat2", "name5"); // not found (duration too short)
TRACE_EVENT_END0("cat2", "name5"); // not found (duration too short)
TRACE_EVENT_END0("cat2", "name3"); // found by duration query
@@ -455,7 +455,7 @@ TEST_F(TraceEventAnalyzerTest, CompleteDuration) {
TRACE_EVENT0("cat2", "name3"); // found by duration query
// next event not searched for, just noise
TRACE_EVENT_INSTANT0("noise", "name4", TRACE_EVENT_SCOPE_THREAD);
- base::debug::HighResSleepForTraceTest(kSleepTime);
+ base::PlatformThread::Sleep(kSleepTime);
TRACE_EVENT0("cat2", "name5"); // not found (duration too short)
}
}
« no previous file with comments | « base/rand_util_unittest.cc ('k') | base/threading/thread_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698