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

Side by Side Diff: webrtc/test/mock_voe_channel_proxy.h

Issue 2705093002: Injectable audio encoders: WebRtcVoiceEngine and company (Closed)
Patch Set: audio_send_spec made optional<>, EnableAudioNetworkAdapter now called directly on encoder, VAD supp… Created 3 years, 9 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 MOCK_METHOD1(SetInputMute, void(bool muted)); 62 MOCK_METHOD1(SetInputMute, void(bool muted));
63 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport)); 63 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport));
64 MOCK_METHOD0(DeRegisterExternalTransport, void()); 64 MOCK_METHOD0(DeRegisterExternalTransport, void());
65 MOCK_METHOD1(OnRtpPacket, void(const RtpPacketReceived& packet)); 65 MOCK_METHOD1(OnRtpPacket, void(const RtpPacketReceived& packet));
66 MOCK_METHOD2(ReceivedRTCPPacket, bool(const uint8_t* packet, size_t length)); 66 MOCK_METHOD2(ReceivedRTCPPacket, bool(const uint8_t* packet, size_t length));
67 MOCK_CONST_METHOD0(GetAudioDecoderFactory, 67 MOCK_CONST_METHOD0(GetAudioDecoderFactory,
68 const rtc::scoped_refptr<AudioDecoderFactory>&()); 68 const rtc::scoped_refptr<AudioDecoderFactory>&());
69 MOCK_METHOD1(SetChannelOutputVolumeScaling, void(float scaling)); 69 MOCK_METHOD1(SetChannelOutputVolumeScaling, void(float scaling));
70 MOCK_METHOD1(SetRtcEventLog, void(RtcEventLog* event_log)); 70 MOCK_METHOD1(SetRtcEventLog, void(RtcEventLog* event_log));
71 MOCK_METHOD1(SetRtcpRttStats, void(RtcpRttStats* rtcp_rtt_stats)); 71 MOCK_METHOD1(SetRtcpRttStats, void(RtcpRttStats* rtcp_rtt_stats));
72 MOCK_METHOD1(EnableAudioNetworkAdaptor,
73 void(const std::string& config_string));
74 MOCK_METHOD0(DisableAudioNetworkAdaptor, void());
75 MOCK_METHOD2(SetReceiverFrameLengthRange,
76 void(int min_frame_length_ms, int max_frame_length_ms));
77 MOCK_METHOD2(GetAudioFrameWithInfo, 72 MOCK_METHOD2(GetAudioFrameWithInfo,
78 AudioMixer::Source::AudioFrameInfo(int sample_rate_hz, 73 AudioMixer::Source::AudioFrameInfo(int sample_rate_hz,
79 AudioFrame* audio_frame)); 74 AudioFrame* audio_frame));
80 MOCK_CONST_METHOD0(NeededFrequency, int()); 75 MOCK_CONST_METHOD0(NeededFrequency, int());
81 MOCK_METHOD1(SetTransportOverhead, void(int transport_overhead_per_packet)); 76 MOCK_METHOD1(SetTransportOverhead, void(int transport_overhead_per_packet));
82 MOCK_METHOD1(AssociateSendChannel, 77 MOCK_METHOD1(AssociateSendChannel,
83 void(const ChannelProxy& send_channel_proxy)); 78 void(const ChannelProxy& send_channel_proxy));
84 MOCK_METHOD0(DisassociateSendChannel, void()); 79 MOCK_METHOD0(DisassociateSendChannel, void());
85 MOCK_CONST_METHOD2(GetRtpRtcp, void(RtpRtcp** rtp_rtcp, 80 MOCK_CONST_METHOD2(GetRtpRtcp, void(RtpRtcp** rtp_rtcp,
86 RtpReceiver** rtp_receiver)); 81 RtpReceiver** rtp_receiver));
87 MOCK_CONST_METHOD0(GetPlayoutTimestamp, uint32_t()); 82 MOCK_CONST_METHOD0(GetPlayoutTimestamp, uint32_t());
88 MOCK_METHOD1(SetMinimumPlayoutDelay, void(int delay_ms)); 83 MOCK_METHOD1(SetMinimumPlayoutDelay, void(int delay_ms));
89 MOCK_CONST_METHOD1(GetRecCodec, bool(CodecInst* codec_inst)); 84 MOCK_CONST_METHOD1(GetRecCodec, bool(CodecInst* codec_inst));
90 MOCK_CONST_METHOD1(GetSendCodec, bool(CodecInst* codec_inst));
91 MOCK_METHOD1(SetVADStatus, bool(bool enable));
92 MOCK_METHOD1(SetCodecFECStatus, bool(bool enable));
93 MOCK_METHOD1(SetOpusDtx, bool(bool enable));
94 MOCK_METHOD1(SetOpusMaxPlaybackRate, bool(int frequency_hz));
95 MOCK_METHOD1(SetSendCodec, bool(const CodecInst& codec_inst));
96 MOCK_METHOD2(SetSendCNPayloadType,
97 bool(int type, PayloadFrequencies frequency));
98 }; 85 };
99 } // namespace test 86 } // namespace test
100 } // namespace webrtc 87 } // namespace webrtc
101 88
102 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ 89 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698