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

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

Powered by Google App Engine
This is Rietveld 408576698