OLD | NEW |
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/test/gmock.h" | |
19 | |
20 #include "webrtc/modules/include/module.h" | 18 #include "webrtc/modules/include/module.h" |
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 22 #include "webrtc/test/gmock.h" |
24 | 23 |
25 namespace webrtc { | 24 namespace webrtc { |
26 | 25 |
27 class MockRtpData : public RtpData { | 26 class MockRtpData : public RtpData { |
28 public: | 27 public: |
29 MOCK_METHOD3(OnReceivedPayloadData, | 28 MOCK_METHOD3(OnReceivedPayloadData, |
30 int32_t(const uint8_t* payload_data, | 29 int32_t(const uint8_t* payload_data, |
31 size_t payload_size, | 30 size_t payload_size, |
32 const WebRtcRTPHeader* rtp_header)); | 31 const WebRtcRTPHeader* rtp_header)); |
33 | 32 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void(StreamDataCountersCallback*)); | 207 void(StreamDataCountersCallback*)); |
209 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, | 208 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, |
210 StreamDataCountersCallback*(void)); | 209 StreamDataCountersCallback*(void)); |
211 // Members. | 210 // Members. |
212 unsigned int remote_ssrc_; | 211 unsigned int remote_ssrc_; |
213 }; | 212 }; |
214 | 213 |
215 } // namespace webrtc | 214 } // namespace webrtc |
216 | 215 |
217 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ | 216 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ |
OLD | NEW |