summaryrefslogtreecommitdiff
path: root/chromium/media/cast/net/pacing/mock_paced_packet_sender.h
blob: 9933516f14cbb1e9dc07106c0e3e24b5535a6e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_
#define MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_

#include "media/cast/net/pacing/paced_sender.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace media {
namespace cast {

class MockPacedPacketSender : public PacedPacketSender {
 public:
  MockPacedPacketSender();
  virtual ~MockPacedPacketSender();

  MOCK_METHOD1(SendPackets, bool(const PacketList& packets));
  MOCK_METHOD1(ResendPackets, bool(const PacketList& packets));
  MOCK_METHOD1(SendRtcpPacket, bool(const Packet& packet));
};

}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_NET_PACING_MOCK_PACED_PACKET_SENDER_H_