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

Unified Diff: components/copresence/handlers/audio/tick_clock_ref_counted.cc

Issue 665353002: Add AudioDirectiveHandler timed tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: build fix. Created 6 years, 2 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 | « components/copresence/handlers/audio/tick_clock_ref_counted.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/handlers/audio/tick_clock_ref_counted.cc
diff --git a/components/copresence/handlers/audio/tick_clock_ref_counted.cc b/components/copresence/handlers/audio/tick_clock_ref_counted.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3e7e28d3f5d9c2c4fbe81f12e0c8da3c39f61676
--- /dev/null
+++ b/components/copresence/handlers/audio/tick_clock_ref_counted.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 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 "components/copresence/handlers/audio/tick_clock_ref_counted.h"
+
+#include "base/time/tick_clock.h"
+
+namespace copresence {
+
+TickClockRefCounted::TickClockRefCounted(scoped_ptr<base::TickClock> clock)
+ : clock_(clock.Pass()) {
+}
+
+base::TimeTicks TickClockRefCounted::NowTicks() {
+ return clock_->NowTicks();
+}
+
+TickClockRefCounted::~TickClockRefCounted() {
+}
+
+} // namespace copresence
« no previous file with comments | « components/copresence/handlers/audio/tick_clock_ref_counted.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698