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 | |
jbauch | d2a2296 | 2016-02-08 23:18:25 -0800 | [diff] [blame] | 16 | #include "testing/gmock/include/gmock/gmock.h" |
| 17 | |
Henrik Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 18 | #include "webrtc/modules/pacing/paced_sender.h" |
Henrik Kjellander | 98f5351 | 2015-10-28 18:17:40 +0100 | [diff] [blame] | 19 | #include "webrtc/system_wrappers/include/clock.h" |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | |
| 23 | class MockPacedSender : public PacedSender { |
| 24 | public: |
perkj | e30c272 | 2016-05-09 04:57:11 -0700 | [diff] [blame^] | 25 | MockPacedSender() : PacedSender(Clock::GetRealTimeClock(), NULL, 0, 0, 0) {} |
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)); |
pkasting@chromium.org | 0b1534c | 2014-12-15 22:09:40 +0000 | [diff] [blame] | 32 | MOCK_CONST_METHOD0(QueueInMs, int64_t()); |
pwestin@webrtc.org | b0061f9 | 2013-04-27 00:41:08 +0000 | [diff] [blame] | 33 | MOCK_CONST_METHOD0(QueueInPackets, int()); |
| 34 | }; |
| 35 | |
| 36 | } // namespace webrtc |
| 37 | |
Henrik Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 38 | #endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ |