Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: webrtc/modules/rtp_rtcp/mocks/mock_transport_feedback.h

Issue 2579613003: Add TransportFeedbackPacketLossTracker. (Closed)
Patch Set: adding a missing file (continuation of PS7) Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698