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 |