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

Unified Diff: base/message_loop/message_pump_perftest.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/debug/trace_event_unittest.cc ('k') | base/rand_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_pump_perftest.cc
diff --git a/base/message_loop/message_pump_perftest.cc b/base/message_loop/message_pump_perftest.cc
index 39ed5a8e3b19655b50389c539a8260d1696ed707..b3e5604c8133a4576b872861b1a67b6e8595bb36 100644
--- a/base/message_loop/message_pump_perftest.cc
+++ b/base/message_loop/message_pump_perftest.cc
@@ -29,7 +29,7 @@ class ScheduleWorkTest : public testing::Test {
void Increment(uint64_t amount) { counter_ += amount; }
void Schedule(int index) {
- base::TimeTicks start = base::TimeTicks::HighResNow();
+ base::TimeTicks start = base::TimeTicks::Now();
base::TimeTicks thread_start;
if (TimeTicks::IsThreadNowSupported())
thread_start = base::TimeTicks::ThreadNow();
@@ -42,7 +42,7 @@ class ScheduleWorkTest : public testing::Test {
target_message_loop()->ScheduleWork();
schedule_calls++;
}
- now = base::TimeTicks::HighResNow();
+ now = base::TimeTicks::Now();
base::TimeDelta laptime = now - lastnow;
lastnow = now;
minimum = std::min(minimum, laptime);
@@ -242,7 +242,7 @@ class FakeMessagePump : public MessagePump {
class PostTaskTest : public testing::Test {
public:
void Run(int batch_size, int tasks_per_reload) {
- base::TimeTicks start = base::TimeTicks::HighResNow();
+ base::TimeTicks start = base::TimeTicks::Now();
base::TimeTicks now;
MessageLoop loop(scoped_ptr<MessagePump>(new FakeMessagePump));
scoped_refptr<internal::IncomingTaskQueue> queue(
@@ -264,7 +264,7 @@ class PostTaskTest : public testing::Test {
}
}
- now = base::TimeTicks::HighResNow();
+ now = base::TimeTicks::Now();
} while (now - start < base::TimeDelta::FromSeconds(5));
std::string trace = StringPrintf("%d_tasks_per_reload", tasks_per_reload);
perf_test::PrintResult(
« no previous file with comments | « base/debug/trace_event_unittest.cc ('k') | base/rand_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698