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