blob: c710dbcbea581736f68cc6a60aadda7e6d9ac3ca [file] [log] [blame]
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010011#ifndef WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_
12#define WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000013
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000014#include <vector>
15
jbauchd2a22962016-02-08 23:18:25 -080016#include "testing/gmock/include/gmock/gmock.h"
17
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010018#include "webrtc/modules/pacing/paced_sender.h"
Henrik Kjellander98f53512015-10-28 18:17:40 +010019#include "webrtc/system_wrappers/include/clock.h"
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000020
21namespace webrtc {
22
23class MockPacedSender : public PacedSender {
24 public:
perkje30c2722016-05-09 04:57:11 -070025 MockPacedSender() : PacedSender(Clock::GetRealTimeClock(), NULL, 0, 0, 0) {}
stefan@webrtc.org9b82f5a2013-11-13 15:29:21 +000026 MOCK_METHOD6(SendPacket, bool(Priority priority,
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000027 uint32_t ssrc,
28 uint16_t sequence_number,
29 int64_t capture_time_ms,
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +000030 size_t bytes,
stefan@webrtc.org9b82f5a2013-11-13 15:29:21 +000031 bool retransmission));
pkasting@chromium.org0b1534c2014-12-15 22:09:40 +000032 MOCK_CONST_METHOD0(QueueInMs, int64_t());
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000033 MOCK_CONST_METHOD0(QueueInPackets, int());
34};
35
36} // namespace webrtc
37
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010038#endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_