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"
14 class MockPacedPacketSender
: public PacedPacketSender
{
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
));
29 #endif // MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_