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

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

Issue 2491293002: Make FlexFEC packets paceable through RTPSender. (Closed)
Patch Set: Feedback response 3. Created 4 years, 1 month 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
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
12 #define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
13 13
14 #include <set> 14 #include <set>
15 #include <utility> 15 #include <utility>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/optional.h"
18 #include "webrtc/modules/include/module.h" 19 #include "webrtc/modules/include/module.h"
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
22 #include "webrtc/test/gmock.h" 23 #include "webrtc/test/gmock.h"
23 24
24 namespace webrtc { 25 namespace webrtc {
25 26
26 class MockRtpData : public RtpData { 27 class MockRtpData : public RtpData {
27 public: 28 public:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MOCK_CONST_METHOD0(GetRtxState, RtpState()); 78 MOCK_CONST_METHOD0(GetRtxState, RtpState());
78 MOCK_CONST_METHOD0(SSRC, uint32_t()); 79 MOCK_CONST_METHOD0(SSRC, uint32_t());
79 MOCK_METHOD1(SetSSRC, void(uint32_t ssrc)); 80 MOCK_METHOD1(SetSSRC, void(uint32_t ssrc));
80 MOCK_CONST_METHOD1(CSRCs, int32_t(uint32_t csrcs[kRtpCsrcSize])); 81 MOCK_CONST_METHOD1(CSRCs, int32_t(uint32_t csrcs[kRtpCsrcSize]));
81 MOCK_METHOD1(SetCsrcs, void(const std::vector<uint32_t>& csrcs)); 82 MOCK_METHOD1(SetCsrcs, void(const std::vector<uint32_t>& csrcs));
82 MOCK_METHOD1(SetCSRCStatus, int32_t(bool include)); 83 MOCK_METHOD1(SetCSRCStatus, int32_t(bool include));
83 MOCK_METHOD1(SetRtxSendStatus, void(int modes)); 84 MOCK_METHOD1(SetRtxSendStatus, void(int modes));
84 MOCK_CONST_METHOD0(RtxSendStatus, int()); 85 MOCK_CONST_METHOD0(RtxSendStatus, int());
85 MOCK_METHOD1(SetRtxSsrc, void(uint32_t)); 86 MOCK_METHOD1(SetRtxSsrc, void(uint32_t));
86 MOCK_METHOD2(SetRtxSendPayloadType, void(int, int)); 87 MOCK_METHOD2(SetRtxSendPayloadType, void(int, int));
88 MOCK_CONST_METHOD0(FlexfecSsrc, rtc::Optional<uint32_t>());
87 MOCK_CONST_METHOD0(RtxSendPayloadType, std::pair<int, int>()); 89 MOCK_CONST_METHOD0(RtxSendPayloadType, std::pair<int, int>());
88 MOCK_METHOD1(SetSendingStatus, int32_t(bool sending)); 90 MOCK_METHOD1(SetSendingStatus, int32_t(bool sending));
89 MOCK_CONST_METHOD0(Sending, bool()); 91 MOCK_CONST_METHOD0(Sending, bool());
90 MOCK_METHOD1(SetSendingMediaStatus, void(bool sending)); 92 MOCK_METHOD1(SetSendingMediaStatus, void(bool sending));
91 MOCK_CONST_METHOD0(SendingMedia, bool()); 93 MOCK_CONST_METHOD0(SendingMedia, bool());
92 MOCK_CONST_METHOD4(BitrateSent, 94 MOCK_CONST_METHOD4(BitrateSent,
93 void(uint32_t* total_rate, 95 void(uint32_t* total_rate,
94 uint32_t* video_rate, 96 uint32_t* video_rate,
95 uint32_t* fec_rate, 97 uint32_t* fec_rate,
96 uint32_t* nack_rate)); 98 uint32_t* nack_rate));
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void(StreamDataCountersCallback*)); 204 void(StreamDataCountersCallback*));
203 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, 205 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback,
204 StreamDataCountersCallback*(void)); 206 StreamDataCountersCallback*(void));
205 // Members. 207 // Members.
206 unsigned int remote_ssrc_; 208 unsigned int remote_ssrc_;
207 }; 209 };
208 210
209 } // namespace webrtc 211 } // namespace webrtc
210 212
211 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ 213 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698