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 |