OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2016 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_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |
| 13 |
| 14 #include <vector> |
| 15 |
| 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 17 #include "webrtc/test/gmock.h" |
| 18 |
| 19 namespace webrtc { |
| 20 namespace rtcp { |
| 21 |
| 22 class MockTransportFeedback : public TransportFeedbackInterface { |
| 23 public: |
| 24 MOCK_METHOD2(SetBase, void(uint16_t base_sequence, int64_t ref_timestamp_us)); |
| 25 MOCK_METHOD1(SetFeedbackSequenceNumber, void(uint8_t feedback_sequence)); |
| 26 MOCK_METHOD2(AddReceivedPacket, |
| 27 bool(uint16_t sequence_number, int64_t timestamp_us)); |
| 28 MOCK_CONST_METHOD0(GetBaseSequence, uint16_t()); |
| 29 MOCK_CONST_METHOD0(GetStatusVector, std::vector<StatusSymbol>()); |
| 30 MOCK_CONST_METHOD0(GetReceiveDeltas, std::vector<int16_t>()); |
| 31 MOCK_CONST_METHOD0(GetBaseTimeUs, int64_t()); |
| 32 MOCK_CONST_METHOD0(GetReceiveDeltasUs, std::vector<int64_t>()); |
| 33 }; |
| 34 |
| 35 } // namespace rtcp |
| 36 } // namespace webrtc |
| 37 |
| 38 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |
OLD | NEW |