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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/mock/mock_rtp_payload_strategy.h

Issue 2531043002: Reland of move RTPPayloadStrategy and simplify RTPPayloadRegistry (Closed)
Patch Set: Remove deprecated RegisterReceivePayload function in RtpReceiver Created 4 years 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) 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_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/rtp_receiver.h ('k') | webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698