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

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

Issue 302913004: Cast: cancel re-sending if a later nack packet says the receiver doesn't want it anymore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: variable renamed + comment added 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 | « no previous file | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) OVERRIDE {
63 return false; 63 return false;
64 } 64 }
65 65
66 virtual void CancelSendingPacket(
67 const transport::PacketKey& packet_key) OVERRIDE {
68 }
69
66 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) { 70 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) {
67 expected_packet_.swap(*packet); 71 expected_packet_.swap(*packet);
68 } 72 }
69 73
70 int packet_count() const { return packet_count_; } 74 int packet_count() const { return packet_count_; }
71 75
72 private: 76 private:
73 Packet expected_packet_; 77 Packet expected_packet_;
74 int packet_count_; 78 int packet_count_;
75 79
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 testing_clock.Advance( 546 testing_clock.Advance(
543 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs)); 547 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs));
544 time_base_ms += kTimeBetweenEventsMs; 548 time_base_ms += kTimeBetweenEventsMs;
545 } 549 }
546 550
547 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count()); 551 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count());
548 } 552 }
549 553
550 } // namespace cast 554 } // namespace cast
551 } // namespace media 555 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698