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

Unified Diff: media/cast/test/fake_receiver_time_offset_estimator.cc

Issue 236123003: Cast: Provide more meaningful stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 6 years, 8 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 | « media/cast/test/fake_receiver_time_offset_estimator.h ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/fake_receiver_time_offset_estimator.cc
diff --git a/media/cast/test/fake_receiver_time_offset_estimator.cc b/media/cast/test/fake_receiver_time_offset_estimator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3cc5f721f8e479699f67a41af04fea9dfbfea0a5
--- /dev/null
+++ b/media/cast/test/fake_receiver_time_offset_estimator.cc
@@ -0,0 +1,37 @@
+// 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 "media/cast/test/fake_receiver_time_offset_estimator.h"
+
+namespace media {
+namespace cast {
+namespace test {
+
+FakeReceiverTimeOffsetEstimator::FakeReceiverTimeOffsetEstimator(
+ base::TimeDelta offset)
+ : offset_(offset) {}
+
+FakeReceiverTimeOffsetEstimator::~FakeReceiverTimeOffsetEstimator() {}
+
+void FakeReceiverTimeOffsetEstimator::OnReceiveFrameEvent(
+ const FrameEvent& frame_event) {
+ // Do nothing.
+}
+
+void FakeReceiverTimeOffsetEstimator::OnReceivePacketEvent(
+ const PacketEvent& packet_event) {
+ // Do nothing.
+}
+
+bool FakeReceiverTimeOffsetEstimator::GetReceiverOffsetBounds(
+ base::TimeDelta* lower_bound,
+ base::TimeDelta* upper_bound) {
+ *lower_bound = offset_;
+ *upper_bound = offset_;
+ return true;
+}
+
+} // namespace test
+} // namespace cast
+} // namespace media
« no previous file with comments | « media/cast/test/fake_receiver_time_offset_estimator.h ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698