fake_receiver_time_offset_estimator.cc 987 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "media/cast/test/fake_receiver_time_offset_estimator.h"
  5. namespace media {
  6. namespace cast {
  7. namespace test {
  8. FakeReceiverTimeOffsetEstimator::FakeReceiverTimeOffsetEstimator(
  9. base::TimeDelta offset)
  10. : offset_(offset) {}
  11. FakeReceiverTimeOffsetEstimator::~FakeReceiverTimeOffsetEstimator() = default;
  12. void FakeReceiverTimeOffsetEstimator::OnReceiveFrameEvent(
  13. const FrameEvent& frame_event) {
  14. // Do nothing.
  15. }
  16. void FakeReceiverTimeOffsetEstimator::OnReceivePacketEvent(
  17. const PacketEvent& packet_event) {
  18. // Do nothing.
  19. }
  20. bool FakeReceiverTimeOffsetEstimator::GetReceiverOffsetBounds(
  21. base::TimeDelta* lower_bound,
  22. base::TimeDelta* upper_bound) {
  23. *lower_bound = offset_;
  24. *upper_bound = offset_;
  25. return true;
  26. }
  27. } // namespace test
  28. } // namespace cast
  29. } // namespace media