Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: media/cast/test/fake_receiver_time_offset_estimator.cc

Issue 236123003: Cast: Provide more meaningful stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/test/fake_receiver_time_offset_estimator.h ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
7 namespace media {
8 namespace cast {
9 namespace test {
10
11 FakeReceiverTimeOffsetEstimator::FakeReceiverTimeOffsetEstimator(
12 base::TimeDelta offset)
13 : offset_(offset) {}
14
15 FakeReceiverTimeOffsetEstimator::~FakeReceiverTimeOffsetEstimator() {}
16
17 void FakeReceiverTimeOffsetEstimator::OnReceiveFrameEvent(
18 const FrameEvent& frame_event) {
19 // Do nothing.
20 }
21
22 void FakeReceiverTimeOffsetEstimator::OnReceivePacketEvent(
23 const PacketEvent& packet_event) {
24 // Do nothing.
25 }
26
27 bool 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
OLDNEW
« no previous file with comments | « media/cast/test/fake_receiver_time_offset_estimator.h ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698