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 5#include "media/cast/test/fake_receiver_time_offset_estimator.h" 6 7namespace media { 8namespace cast { 9namespace test { 10 11FakeReceiverTimeOffsetEstimator::FakeReceiverTimeOffsetEstimator( 12 base::TimeDelta offset) 13 : offset_(offset) {} 14 15FakeReceiverTimeOffsetEstimator::~FakeReceiverTimeOffsetEstimator() {} 16 17void FakeReceiverTimeOffsetEstimator::OnReceiveFrameEvent( 18 const FrameEvent& frame_event) { 19 // Do nothing. 20} 21 22void FakeReceiverTimeOffsetEstimator::OnReceivePacketEvent( 23 const PacketEvent& packet_event) { 24 // Do nothing. 25} 26 27bool FakeReceiverTimeOffsetEstimator::GetReceiverOffsetBounds( 28 base::TimeDelta* lower_bound, 29 base::TimeDelta* upper_bound) { 30 *lower_bound = offset_; 31 *upper_bound = offset_; 32 return true; 33} 34 35} // namespace test 36} // namespace cast 37} // namespace media 38