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

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: 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
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..0efb82f25b8fa9754984da36dd2e33a16f24b146
--- /dev/null
+++ b/media/cast/test/fake_receiver_time_offset_estimator.cc
@@ -0,0 +1,42 @@
+// 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.
+}
+
+void FakeReceiverTimeOffsetEstimator::OnReceiveGenericEvent(
+ const GenericEvent& generic_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

Powered by Google App Engine
This is Rietveld 408576698