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_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ |
13 | 13 |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "webrtc/modules/rtp_rtcp/interface/rtp_payload_registry.h" | 15 #include "webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class MockRTPPayloadStrategy : public RTPPayloadStrategy { | 19 class MockRTPPayloadStrategy : public RTPPayloadStrategy { |
20 public: | 20 public: |
21 MOCK_CONST_METHOD0(CodecsMustBeUnique, | 21 MOCK_CONST_METHOD0(CodecsMustBeUnique, |
22 bool()); | 22 bool()); |
23 MOCK_CONST_METHOD4(PayloadIsCompatible, | 23 MOCK_CONST_METHOD4(PayloadIsCompatible, |
24 bool(const RtpUtility::Payload& payload, | 24 bool(const RtpUtility::Payload& payload, |
25 const uint32_t frequency, | 25 const uint32_t frequency, |
26 const uint8_t channels, | 26 const uint8_t channels, |
27 const uint32_t rate)); | 27 const uint32_t rate)); |
28 MOCK_CONST_METHOD2(UpdatePayloadRate, | 28 MOCK_CONST_METHOD2(UpdatePayloadRate, |
29 void(RtpUtility::Payload* payload, const uint32_t rate)); | 29 void(RtpUtility::Payload* payload, const uint32_t rate)); |
30 MOCK_CONST_METHOD1(GetPayloadTypeFrequency, | 30 MOCK_CONST_METHOD1(GetPayloadTypeFrequency, |
31 int(const RtpUtility::Payload& payload)); | 31 int(const RtpUtility::Payload& payload)); |
32 MOCK_CONST_METHOD5( | 32 MOCK_CONST_METHOD5( |
33 CreatePayloadType, | 33 CreatePayloadType, |
34 RtpUtility::Payload*(const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 34 RtpUtility::Payload*(const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
35 const int8_t payloadType, | 35 const int8_t payloadType, |
36 const uint32_t frequency, | 36 const uint32_t frequency, |
37 const uint8_t channels, | 37 const uint8_t channels, |
38 const uint32_t rate)); | 38 const uint32_t rate)); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace webrtc | 41 } // namespace webrtc |
42 | 42 |
43 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ | 43 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_ |
OLD | NEW |