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.
5 #include "media/cast/test/fake_receiver_time_offset_estimator.h"
11 FakeReceiverTimeOffsetEstimator::FakeReceiverTimeOffsetEstimator(
12 base::TimeDelta offset
)
15 FakeReceiverTimeOffsetEstimator::~FakeReceiverTimeOffsetEstimator() {}
17 void FakeReceiverTimeOffsetEstimator::OnReceiveFrameEvent(
18 const FrameEvent
& frame_event
) {
22 void FakeReceiverTimeOffsetEstimator::OnReceivePacketEvent(
23 const PacketEvent
& packet_event
) {
27 bool FakeReceiverTimeOffsetEstimator::GetReceiverOffsetBounds(
28 base::TimeDelta
* lower_bound
,
29 base::TimeDelta
* upper_bound
) {
30 *lower_bound
= offset_
;
31 *upper_bound
= offset_
;