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

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: 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
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..791c1966dda69e21d8522bfcdaf9e04b642996b3
--- /dev/null
+++ b/components/copresence/handlers/audio/tick_clock_ref_counted.cc
@@ -0,0 +1,20 @@
+// 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(base::TickClock* clock)
+ : clock_(clock) {
+}
+base::TimeTicks TickClockRefCounted::NowTicks() {
+ return clock_->NowTicks();
+}
+TickClockRefCounted::~TickClockRefCounted() {
+}
+
+} // namespace copresence

Powered by Google App Engine
This is Rietveld 408576698