1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37

media / cast / test / fake_receiver_time_offset_estimator.cc [blame]

// Copyright 2014 The Chromium Authors
// 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() = default;

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