Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / media / cast / net / pacing / mock_paced_packet_sender.h
blob1920ef23aea109ea533ddeddf2fc373b5a16ef54
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.
5 #ifndef MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_
6 #define MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_
8 #include "media/cast/net/pacing/paced_sender.h"
9 #include "testing/gmock/include/gmock/gmock.h"
11 namespace media {
12 namespace cast {
14 class MockPacedPacketSender : public PacedPacketSender {
15 public:
16 MockPacedPacketSender();
17 virtual ~MockPacedPacketSender();
19 MOCK_METHOD1(SendPackets, bool(const SendPacketVector& packets));
20 MOCK_METHOD2(ResendPackets, bool(const SendPacketVector& packets,
21 const DedupInfo& dedup_info));
22 MOCK_METHOD2(SendRtcpPacket, bool(unsigned int ssrc, PacketRef packet));
23 MOCK_METHOD1(CancelSendingPacket, void(const PacketKey& packet_key));
26 } // namespace cast
27 } // namespace media
29 #endif // MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_