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

Unified Diff: base/time/default_tick_clock.cc

Issue 11607003: Add a Clock and TickClock interface for mocking out time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix warnings Created 7 years, 10 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/time/default_tick_clock.h ('k') | base/time/tick_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/default_tick_clock.cc
diff --git a/base/message_loop_proxy.cc b/base/time/default_tick_clock.cc
similarity index 58%
copy from base/message_loop_proxy.cc
copy to base/time/default_tick_clock.cc
index 755564b9c5d915d71e2fc46f335ec8428db3c769..ce62fcc3d1b33a29fedca396786fe0a3ad1c4c8e 100644
--- a/base/message_loop_proxy.cc
+++ b/base/time/default_tick_clock.cc
@@ -2,16 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/message_loop_proxy.h"
-
-#include "base/bind.h"
+#include "base/time/default_tick_clock.h"
namespace base {
-MessageLoopProxy::MessageLoopProxy() {
-}
+DefaultTickClock::~DefaultTickClock() {}
-MessageLoopProxy::~MessageLoopProxy() {
+TimeTicks DefaultTickClock::NowTicks() {
+ return TimeTicks::Now();
}
} // namespace base
« no previous file with comments | « base/time/default_tick_clock.h ('k') | base/time/tick_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698