Index: webrtc/modules/rtp_rtcp/mocks/mock_transport_feedback.h |
diff --git a/webrtc/modules/rtp_rtcp/mocks/mock_transport_feedback.h b/webrtc/modules/rtp_rtcp/mocks/mock_transport_feedback.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbd7911ce402884a76399523e2a00b89c24d05e9 |
--- /dev/null |
+++ b/webrtc/modules/rtp_rtcp/mocks/mock_transport_feedback.h |
@@ -0,0 +1,38 @@ |
+/* |
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |
+#define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |
+ |
+#include <vector> |
+ |
+#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
+#include "webrtc/test/gmock.h" |
+ |
+namespace webrtc { |
+namespace rtcp { |
+ |
+class MockTransportFeedback : public TransportFeedbackInterface { |
+ public: |
+ MOCK_METHOD2(SetBase, void(uint16_t base_sequence, int64_t ref_timestamp_us)); |
+ MOCK_METHOD1(SetFeedbackSequenceNumber, void(uint8_t feedback_sequence)); |
+ MOCK_METHOD2(AddReceivedPacket, |
+ bool(uint16_t sequence_number, int64_t timestamp_us)); |
+ MOCK_CONST_METHOD0(GetBaseSequence, uint16_t()); |
+ MOCK_CONST_METHOD0(GetStatusVector, std::vector<StatusSymbol>()); |
+ MOCK_CONST_METHOD0(GetReceiveDeltas, std::vector<int16_t>()); |
+ MOCK_CONST_METHOD0(GetBaseTimeUs, int64_t()); |
+ MOCK_CONST_METHOD0(GetReceiveDeltasUs, std::vector<int64_t>()); |
+}; |
+ |
+} // namespace rtcp |
+} // namespace webrtc |
+ |
+#endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_TRANSPORT_FEEDBACK_H_ |