| OLD | NEW |
| (Empty) |
| 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 | |
| 11 #ifndef WEBRTC_MODULES_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_ | |
| 12 #define WEBRTC_MODULES_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_ | |
| 13 | |
| 14 #include "testing/gmock/include/gmock/gmock.h" | |
| 15 | |
| 16 #include <vector> | |
| 17 | |
| 18 #include "webrtc/modules/pacing/include/paced_sender.h" | |
| 19 #include "webrtc/system_wrappers/include/clock.h" | |
| 20 | |
| 21 namespace webrtc { | |
| 22 | |
| 23 class MockPacedSender : public PacedSender { | |
| 24 public: | |
| 25 MockPacedSender() : PacedSender(Clock::GetRealTimeClock(), NULL, 0, 0, 0) {} | |
| 26 MOCK_METHOD6(SendPacket, bool(Priority priority, | |
| 27 uint32_t ssrc, | |
| 28 uint16_t sequence_number, | |
| 29 int64_t capture_time_ms, | |
| 30 size_t bytes, | |
| 31 bool retransmission)); | |
| 32 MOCK_CONST_METHOD0(QueueInMs, int64_t()); | |
| 33 MOCK_CONST_METHOD0(QueueInPackets, int()); | |
| 34 }; | |
| 35 | |
| 36 } // namespace webrtc | |
| 37 | |
| 38 #endif // WEBRTC_MODULES_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_ | |
| OLD | NEW |