pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 1 | /* |
| 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 Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 11 | #ifndef WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ |
| 12 | #define WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 13 | |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 14 | #include <vector> |
| 15 | |
Henrik Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 16 | #include "webrtc/modules/pacing/paced_sender.h" |
Henrik Kjellander | 98f5351 | 2015-10-28 18:17:40 +0100 | [diff] [blame] | 17 | #include "webrtc/system_wrappers/include/clock.h" |
kwiberg | ac9f876 | 2016-09-30 22:29:43 -0700 | [diff] [blame] | 18 | #include "webrtc/test/gmock.h" |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class MockPacedSender : public PacedSender { |
| 23 | public: |
philipel | c3b3f7a | 2017-03-29 01:23:13 -0700 | [diff] [blame] | 24 | MockPacedSender() |
| 25 | : PacedSender(Clock::GetRealTimeClock(), nullptr, nullptr) {} |
stefan@webrtc.org | 9b82f5a | 2013-11-13 15:29:21 +0000 | [diff] [blame] | 26 | MOCK_METHOD6(SendPacket, bool(Priority priority, |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 27 | uint32_t ssrc, |
| 28 | uint16_t sequence_number, |
| 29 | int64_t capture_time_ms, |
pkasting@chromium.org | 4591fbd | 2014-11-20 22:28:14 +0000 | [diff] [blame] | 30 | size_t bytes, |
stefan@webrtc.org | 9b82f5a | 2013-11-13 15:29:21 +0000 | [diff] [blame] | 31 | bool retransmission)); |
philipel | fd58b61 | 2017-01-04 07:05:25 -0800 | [diff] [blame] | 32 | MOCK_METHOD1(CreateProbeCluster, void(int)); |
perkj | ec81bcd | 2016-05-11 06:01:13 -0700 | [diff] [blame] | 33 | MOCK_METHOD1(SetEstimatedBitrate, void(uint32_t)); |
pkasting@chromium.org | 0b1534c | 2014-12-15 22:09:40 +0000 | [diff] [blame] | 34 | MOCK_CONST_METHOD0(QueueInMs, int64_t()); |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 35 | MOCK_CONST_METHOD0(QueueInPackets, int()); |
perkj | ec81bcd | 2016-05-11 06:01:13 -0700 | [diff] [blame] | 36 | MOCK_CONST_METHOD0(ExpectedQueueTimeMs, int64_t()); |
sergeyu | 80ed35e | 2016-11-28 13:11:13 -0800 | [diff] [blame] | 37 | MOCK_CONST_METHOD0(GetApplicationLimitedRegionStartTime, |
| 38 | rtc::Optional<int64_t>()); |
Stefan Holmer | 5c8942a | 2017-08-22 16:16:44 +0200 | [diff] [blame] | 39 | MOCK_METHOD0(Process, void()); |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // namespace webrtc |
| 43 | |
Henrik Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 44 | #endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ |