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

Side by Side Diff: test/mock_voice_engine.h

Issue 3019433002: Remove VoECodec (Closed)
Patch Set: rebase Created 3 years, 3 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
« no previous file with comments | « media/engine/webrtcvoe.h ('k') | voice_engine/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 MOCK_METHOD0(Terminate, int()); 106 MOCK_METHOD0(Terminate, int());
107 MOCK_METHOD0(CreateChannel, int()); 107 MOCK_METHOD0(CreateChannel, int());
108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); 108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config));
109 MOCK_METHOD1(DeleteChannel, int(int channel)); 109 MOCK_METHOD1(DeleteChannel, int(int channel));
110 MOCK_METHOD1(StartPlayout, int(int channel)); 110 MOCK_METHOD1(StartPlayout, int(int channel));
111 MOCK_METHOD1(StopPlayout, int(int channel)); 111 MOCK_METHOD1(StopPlayout, int(int channel));
112 MOCK_METHOD1(StartSend, int(int channel)); 112 MOCK_METHOD1(StartSend, int(int channel));
113 MOCK_METHOD1(StopSend, int(int channel)); 113 MOCK_METHOD1(StopSend, int(int channel));
114 MOCK_METHOD0(audio_transport, AudioTransport*()); 114 MOCK_METHOD0(audio_transport, AudioTransport*());
115 115
116 // VoECodec
117 MOCK_METHOD0(NumOfCodecs, int());
118 MOCK_METHOD2(GetCodec, int(int index, CodecInst& codec));
119 MOCK_METHOD2(SetSendCodec, int(int channel, const CodecInst& codec));
120 MOCK_METHOD2(GetSendCodec, int(int channel, CodecInst& codec));
121 MOCK_METHOD2(SetBitRate, int(int channel, int bitrate_bps));
122 MOCK_METHOD2(GetRecCodec, int(int channel, CodecInst& codec));
123 MOCK_METHOD2(SetRecPayloadType, int(int channel, const CodecInst& codec));
124 MOCK_METHOD2(GetRecPayloadType, int(int channel, CodecInst& codec));
125 MOCK_METHOD3(SetSendCNPayloadType,
126 int(int channel, int type, PayloadFrequencies frequency));
127 MOCK_METHOD2(SetFECStatus, int(int channel, bool enable));
128 MOCK_METHOD2(GetFECStatus, int(int channel, bool& enabled));
129 MOCK_METHOD4(SetVADStatus,
130 int(int channel, bool enable, VadModes mode, bool disableDTX));
131 MOCK_METHOD4(
132 GetVADStatus,
133 int(int channel, bool& enabled, VadModes& mode, bool& disabledDTX));
134 MOCK_METHOD2(SetOpusMaxPlaybackRate, int(int channel, int frequency_hz));
135 MOCK_METHOD2(SetOpusDtx, int(int channel, bool enable_dtx));
136
137 // VoENetwork 116 // VoENetwork
138 MOCK_METHOD2(RegisterExternalTransport, 117 MOCK_METHOD2(RegisterExternalTransport,
139 int(int channel, Transport& transport)); 118 int(int channel, Transport& transport));
140 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel)); 119 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel));
141 MOCK_METHOD3(ReceivedRTPPacket, 120 MOCK_METHOD3(ReceivedRTPPacket,
142 int(int channel, const void* data, size_t length)); 121 int(int channel, const void* data, size_t length));
143 MOCK_METHOD4(ReceivedRTPPacket, 122 MOCK_METHOD4(ReceivedRTPPacket,
144 int(int channel, 123 int(int channel,
145 const void* data, 124 const void* data,
146 size_t length, 125 size_t length,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 176
198 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; 177 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_;
199 178
200 MockAudioDeviceModule mock_audio_device_; 179 MockAudioDeviceModule mock_audio_device_;
201 MockAudioTransport mock_audio_transport_; 180 MockAudioTransport mock_audio_transport_;
202 }; 181 };
203 } // namespace test 182 } // namespace test
204 } // namespace webrtc 183 } // namespace webrtc
205 184
206 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ 185 #endif // AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW
« no previous file with comments | « media/engine/webrtcvoe.h ('k') | voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698