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

Side by Side Diff: media/cast/rtcp/rtcp_sender_unittest.cc

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 years, 6 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/logging/proto/raw_events.proto ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/test/simple_test_tick_clock.h" 6 #include "base/test/simple_test_tick_clock.h"
7 #include "media/cast/cast_defines.h" 7 #include "media/cast/cast_defines.h"
8 #include "media/cast/cast_environment.h" 8 #include "media/cast/cast_environment.h"
9 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" 9 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h"
10 #include "media/cast/rtcp/rtcp_sender.h" 10 #include "media/cast/rtcp/rtcp_sender.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 packet->data.size())); 52 packet->data.size()));
53 packet_count_++; 53 packet_count_++;
54 return true; 54 return true;
55 } 55 }
56 56
57 virtual bool SendPackets( 57 virtual bool SendPackets(
58 const transport::SendPacketVector& packets) OVERRIDE { 58 const transport::SendPacketVector& packets) OVERRIDE {
59 return false; 59 return false;
60 } 60 }
61 virtual bool ResendPackets( 61 virtual bool ResendPackets(
62 const transport::SendPacketVector& packets) OVERRIDE { 62 const transport::SendPacketVector& packets,
63 base::TimeDelta dedupe_window) OVERRIDE {
63 return false; 64 return false;
64 } 65 }
65 66
66 virtual void CancelSendingPacket( 67 virtual void CancelSendingPacket(
67 const transport::PacketKey& packet_key) OVERRIDE { 68 const transport::PacketKey& packet_key) OVERRIDE {
68 } 69 }
69 70
70 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) { 71 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) {
71 expected_packet_.swap(*packet); 72 expected_packet_.swap(*packet);
72 } 73 }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 testing_clock.Advance( 547 testing_clock.Advance(
547 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs)); 548 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs));
548 time_base_ms += kTimeBetweenEventsMs; 549 time_base_ms += kTimeBetweenEventsMs;
549 } 550 }
550 551
551 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count()); 552 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count());
552 } 553 }
553 554
554 } // namespace cast 555 } // namespace cast
555 } // namespace media 556 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/proto/raw_events.proto ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698