blob: d6587b4b75d3472aea91bf52310b851df07b6a24 [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
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010016#include "webrtc/modules/pacing/paced_sender.h"
Henrik Kjellander98f53512015-10-28 18:17:40 +010017#include "webrtc/system_wrappers/include/clock.h"
kwibergac9f8762016-09-30 22:29:43 -070018#include "webrtc/test/gmock.h"
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000019
20namespace webrtc {
21
22class MockPacedSender : public PacedSender {
23 public:
philipelc3b3f7a2017-03-29 01:23:13 -070024 MockPacedSender()
25 : PacedSender(Clock::GetRealTimeClock(), nullptr, nullptr) {}
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));
philipelfd58b612017-01-04 07:05:25 -080032 MOCK_METHOD1(CreateProbeCluster, void(int));
perkjec81bcd2016-05-11 06:01:13 -070033 MOCK_METHOD1(SetEstimatedBitrate, void(uint32_t));
pkasting@chromium.org0b1534c2014-12-15 22:09:40 +000034 MOCK_CONST_METHOD0(QueueInMs, int64_t());
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000035 MOCK_CONST_METHOD0(QueueInPackets, int());
perkjec81bcd2016-05-11 06:01:13 -070036 MOCK_CONST_METHOD0(ExpectedQueueTimeMs, int64_t());
sergeyu80ed35e2016-11-28 13:11:13 -080037 MOCK_CONST_METHOD0(GetApplicationLimitedRegionStartTime,
38 rtc::Optional<int64_t>());
Stefan Holmer5c8942a2017-08-22 16:16:44 +020039 MOCK_METHOD0(Process, void());
pwestin@webrtc.orgb0061f92013-04-27 00:41:08 +000040};
41
42} // namespace webrtc
43
Henrik Kjellander0b9e29c2015-11-16 11:12:24 +010044#endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_