Index: content/test/test_time_source.cc |
diff --git a/content/test/test_time_source.cc b/content/test/test_time_source.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ad602fd9448615bfea13b6e7e30d3cb07fd89ada |
--- /dev/null |
+++ b/content/test/test_time_source.cc |
@@ -0,0 +1,22 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/test/test_time_source.h" |
+ |
+#include "cc/test/test_now_source.h" |
+ |
+namespace content { |
+ |
+TestTimeSource::TestTimeSource(scoped_refptr<cc::TestNowSource> time_source) |
+ : time_source_(time_source) { |
+} |
+ |
+TestTimeSource::~TestTimeSource() { |
+} |
+ |
+base::TimeTicks TestTimeSource::Now() const { |
+ return time_source_->Now(); |
+} |
+ |
+} // namespace content |