summaryrefslogtreecommitdiff
path: root/chromium/media/cast/net/pacing/mock_paced_packet_sender.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/cast/net/pacing/mock_paced_packet_sender.h')
-rw-r--r--chromium/media/cast/net/pacing/mock_paced_packet_sender.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/media/cast/net/pacing/mock_paced_packet_sender.h b/chromium/media/cast/net/pacing/mock_paced_packet_sender.h
new file mode 100644
index 00000000000..9933516f14c
--- /dev/null
+++ b/chromium/media/cast/net/pacing/mock_paced_packet_sender.h
@@ -0,0 +1,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_