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

Side by Side Diff: media/cast/transport/pacing/mock_paced_packet_sender.h

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
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 #ifndef MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_
6 #define MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_ 6 #define MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_
7 7
8 #include "media/cast/transport/pacing/paced_sender.h" 8 #include "media/cast/transport/pacing/paced_sender.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace media { 11 namespace media {
12 namespace cast { 12 namespace cast {
13 namespace transport { 13 namespace transport {
14 14
15 class MockPacedPacketSender : public PacedPacketSender { 15 class MockPacedPacketSender : public PacedPacketSender {
16 public: 16 public:
17 MockPacedPacketSender(); 17 MockPacedPacketSender();
18 virtual ~MockPacedPacketSender(); 18 virtual ~MockPacedPacketSender();
19 19
20 MOCK_METHOD1(SendPackets, bool(const SendPacketVector& packets)); 20 MOCK_METHOD1(SendPackets, bool(const SendPacketVector& packets));
21 MOCK_METHOD1(ResendPackets, bool(const SendPacketVector& packets)); 21 MOCK_METHOD2(ResendPackets, bool(const SendPacketVector& packets,
22 base::TimeDelta dedupe_window));
22 MOCK_METHOD2(SendRtcpPacket, bool(unsigned int ssrc, PacketRef packet)); 23 MOCK_METHOD2(SendRtcpPacket, bool(unsigned int ssrc, PacketRef packet));
23 MOCK_METHOD1(CancelSendingPacket, void(const PacketKey& packet_key)); 24 MOCK_METHOD1(CancelSendingPacket, void(const PacketKey& packet_key));
24 }; 25 };
25 26
26 } // namespace transport 27 } // namespace transport
27 } // namespace cast 28 } // namespace cast
28 } // namespace media 29 } // namespace media
29 30
30 #endif // MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_ 31 #endif // MEDIA_CAST_TRANSPORT_PACING_MOCK_PACED_PACKET_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/cast_transport_sender_impl.cc ('k') | media/cast/transport/pacing/paced_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698