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

Side by Side Diff: webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h

Issue 2772773002: Adding cbr support for Opus (Closed)
Patch Set: Merge opus dtx and cbr testing. Other review comments adressed as well Created 3 years, 8 months 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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
(...skipping 18 matching lines...) Expand all
29 MOCK_METHOD0(Die, void()); 29 MOCK_METHOD0(Die, void());
30 MOCK_METHOD1(Mark, void(std::string desc)); 30 MOCK_METHOD1(Mark, void(std::string desc));
31 MOCK_CONST_METHOD0(SampleRateHz, int()); 31 MOCK_CONST_METHOD0(SampleRateHz, int());
32 MOCK_CONST_METHOD0(NumChannels, size_t()); 32 MOCK_CONST_METHOD0(NumChannels, size_t());
33 MOCK_CONST_METHOD0(RtpTimestampRateHz, int()); 33 MOCK_CONST_METHOD0(RtpTimestampRateHz, int());
34 MOCK_CONST_METHOD0(Num10MsFramesInNextPacket, size_t()); 34 MOCK_CONST_METHOD0(Num10MsFramesInNextPacket, size_t());
35 MOCK_CONST_METHOD0(Max10MsFramesInAPacket, size_t()); 35 MOCK_CONST_METHOD0(Max10MsFramesInAPacket, size_t());
36 MOCK_CONST_METHOD0(GetTargetBitrate, int()); 36 MOCK_CONST_METHOD0(GetTargetBitrate, int());
37 MOCK_METHOD0(Reset, void()); 37 MOCK_METHOD0(Reset, void());
38 MOCK_METHOD1(SetFec, bool(bool enable)); 38 MOCK_METHOD1(SetFec, bool(bool enable));
39 MOCK_METHOD1(SetCbr, bool(bool enable));
39 MOCK_METHOD1(SetDtx, bool(bool enable)); 40 MOCK_METHOD1(SetDtx, bool(bool enable));
40 MOCK_METHOD1(SetApplication, bool(Application application)); 41 MOCK_METHOD1(SetApplication, bool(Application application));
41 MOCK_METHOD1(SetMaxPlaybackRate, void(int frequency_hz)); 42 MOCK_METHOD1(SetMaxPlaybackRate, void(int frequency_hz));
42 MOCK_METHOD1(SetMaxBitrate, void(int max_bps)); 43 MOCK_METHOD1(SetMaxBitrate, void(int max_bps));
43 MOCK_METHOD1(SetMaxPayloadSize, void(int max_payload_size_bytes)); 44 MOCK_METHOD1(SetMaxPayloadSize, void(int max_payload_size_bytes));
44 MOCK_METHOD2(OnReceivedUplinkBandwidth, 45 MOCK_METHOD2(OnReceivedUplinkBandwidth,
45 void(int target_audio_bitrate_bps, 46 void(int target_audio_bitrate_bps,
46 rtc::Optional<int64_t> probing_interval_ms)); 47 rtc::Optional<int64_t> probing_interval_ms));
47 MOCK_METHOD1(OnReceivedUplinkPacketLossFraction, 48 MOCK_METHOD1(OnReceivedUplinkPacketLossFraction,
48 void(float uplink_packet_loss_fraction)); 49 void(float uplink_packet_loss_fraction));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 private: 94 private:
94 AudioEncoder::EncodedInfo info_; 95 AudioEncoder::EncodedInfo info_;
95 rtc::ArrayView<const uint8_t> payload_; 96 rtc::ArrayView<const uint8_t> payload_;
96 }; 97 };
97 }; 98 };
98 99
99 } // namespace webrtc 100 } // namespace webrtc
100 101
101 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_MOCK_MOCK_AUDIO_ENCODER_H_ 102 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_MOCK_MOCK_AUDIO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698