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

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

Issue 3013033002: Remove VoEFile (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 | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | webrtc/voice_engine/channel.cc » ('J')
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 MOCK_METHOD2(SetFECStatus, int(int channel, bool enable)); 133 MOCK_METHOD2(SetFECStatus, int(int channel, bool enable));
134 MOCK_METHOD2(GetFECStatus, int(int channel, bool& enabled)); 134 MOCK_METHOD2(GetFECStatus, int(int channel, bool& enabled));
135 MOCK_METHOD4(SetVADStatus, 135 MOCK_METHOD4(SetVADStatus,
136 int(int channel, bool enable, VadModes mode, bool disableDTX)); 136 int(int channel, bool enable, VadModes mode, bool disableDTX));
137 MOCK_METHOD4( 137 MOCK_METHOD4(
138 GetVADStatus, 138 GetVADStatus,
139 int(int channel, bool& enabled, VadModes& mode, bool& disabledDTX)); 139 int(int channel, bool& enabled, VadModes& mode, bool& disabledDTX));
140 MOCK_METHOD2(SetOpusMaxPlaybackRate, int(int channel, int frequency_hz)); 140 MOCK_METHOD2(SetOpusMaxPlaybackRate, int(int channel, int frequency_hz));
141 MOCK_METHOD2(SetOpusDtx, int(int channel, bool enable_dtx)); 141 MOCK_METHOD2(SetOpusDtx, int(int channel, bool enable_dtx));
142 142
143 // VoEFile
144 MOCK_METHOD7(StartPlayingFileLocally,
145 int(int channel,
146 const char fileNameUTF8[1024],
147 bool loop,
148 FileFormats format,
149 float volumeScaling,
150 int startPointMs,
151 int stopPointMs));
152 MOCK_METHOD6(StartPlayingFileLocally,
153 int(int channel,
154 InStream* stream,
155 FileFormats format,
156 float volumeScaling,
157 int startPointMs,
158 int stopPointMs));
159 MOCK_METHOD1(StopPlayingFileLocally, int(int channel));
160 MOCK_METHOD1(IsPlayingFileLocally, int(int channel));
161 MOCK_METHOD6(StartPlayingFileAsMicrophone,
162 int(int channel,
163 const char fileNameUTF8[1024],
164 bool loop,
165 bool mixWithMicrophone,
166 FileFormats format,
167 float volumeScaling));
168 MOCK_METHOD5(StartPlayingFileAsMicrophone,
169 int(int channel,
170 InStream* stream,
171 bool mixWithMicrophone,
172 FileFormats format,
173 float volumeScaling));
174 MOCK_METHOD1(StopPlayingFileAsMicrophone, int(int channel));
175 MOCK_METHOD1(IsPlayingFileAsMicrophone, int(int channel));
176 MOCK_METHOD4(StartRecordingPlayout,
177 int(int channel,
178 const char* fileNameUTF8,
179 CodecInst* compression,
180 int maxSizeBytes));
181 MOCK_METHOD1(StopRecordingPlayout, int(int channel));
182 MOCK_METHOD3(StartRecordingPlayout,
183 int(int channel, OutStream* stream, CodecInst* compression));
184 MOCK_METHOD3(StartRecordingMicrophone,
185 int(const char* fileNameUTF8,
186 CodecInst* compression,
187 int maxSizeBytes));
188 MOCK_METHOD2(StartRecordingMicrophone,
189 int(OutStream* stream, CodecInst* compression));
190 MOCK_METHOD0(StopRecordingMicrophone, int());
191
192 // VoENetwork 143 // VoENetwork
193 MOCK_METHOD2(RegisterExternalTransport, 144 MOCK_METHOD2(RegisterExternalTransport,
194 int(int channel, Transport& transport)); 145 int(int channel, Transport& transport));
195 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel)); 146 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel));
196 MOCK_METHOD3(ReceivedRTPPacket, 147 MOCK_METHOD3(ReceivedRTPPacket,
197 int(int channel, const void* data, size_t length)); 148 int(int channel, const void* data, size_t length));
198 MOCK_METHOD4(ReceivedRTPPacket, 149 MOCK_METHOD4(ReceivedRTPPacket,
199 int(int channel, 150 int(int channel,
200 const void* data, 151 const void* data,
201 size_t length, 152 size_t length,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 203
253 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; 204 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_;
254 205
255 MockAudioDeviceModule mock_audio_device_; 206 MockAudioDeviceModule mock_audio_device_;
256 MockAudioTransport mock_audio_transport_; 207 MockAudioTransport mock_audio_transport_;
257 }; 208 };
258 } // namespace test 209 } // namespace test
259 } // namespace webrtc 210 } // namespace webrtc
260 211
261 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ 212 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | webrtc/voice_engine/channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698