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

Side by Side Diff: webrtc/modules/audio_processing/include/mock_audio_processing.h

Issue 1226093007: Allow more than 2 input channels in AudioProcessing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix docs Created 5 years, 5 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 MOCK_METHOD0(Initialize, 180 MOCK_METHOD0(Initialize,
181 int()); 181 int());
182 MOCK_METHOD6(Initialize, 182 MOCK_METHOD6(Initialize,
183 int(int sample_rate_hz, 183 int(int sample_rate_hz,
184 int output_sample_rate_hz, 184 int output_sample_rate_hz,
185 int reverse_sample_rate_hz, 185 int reverse_sample_rate_hz,
186 ChannelLayout input_layout, 186 ChannelLayout input_layout,
187 ChannelLayout output_layout, 187 ChannelLayout output_layout,
188 ChannelLayout reverse_layout)); 188 ChannelLayout reverse_layout));
189 MOCK_METHOD1(Initialize,
190 int(const ProcessingConfig& processing_config));
189 MOCK_METHOD1(SetExtraOptions, 191 MOCK_METHOD1(SetExtraOptions,
190 void(const Config& config)); 192 void(const Config& config));
191 MOCK_METHOD1(set_sample_rate_hz, 193 MOCK_METHOD1(set_sample_rate_hz,
192 int(int rate)); 194 int(int rate));
193 MOCK_CONST_METHOD0(input_sample_rate_hz, 195 MOCK_CONST_METHOD0(input_sample_rate_hz,
194 int()); 196 int());
195 MOCK_CONST_METHOD0(sample_rate_hz, 197 MOCK_CONST_METHOD0(sample_rate_hz,
196 int()); 198 int());
197 MOCK_CONST_METHOD0(proc_sample_rate_hz, 199 MOCK_CONST_METHOD0(proc_sample_rate_hz,
198 int()); 200 int());
(...skipping 12 matching lines...) Expand all
211 MOCK_METHOD1(ProcessStream, 213 MOCK_METHOD1(ProcessStream,
212 int(AudioFrame* frame)); 214 int(AudioFrame* frame));
213 MOCK_METHOD7(ProcessStream, 215 MOCK_METHOD7(ProcessStream,
214 int(const float* const* src, 216 int(const float* const* src,
215 int samples_per_channel, 217 int samples_per_channel,
216 int input_sample_rate_hz, 218 int input_sample_rate_hz,
217 ChannelLayout input_layout, 219 ChannelLayout input_layout,
218 int output_sample_rate_hz, 220 int output_sample_rate_hz,
219 ChannelLayout output_layout, 221 ChannelLayout output_layout,
220 float* const* dest)); 222 float* const* dest));
223 MOCK_METHOD4(ProcessStream,
224 int(const float* const* src,
225 const StreamConfig& input_config,
226 const StreamConfig& output_config,
227 float* const* dest));
221 MOCK_METHOD1(AnalyzeReverseStream, 228 MOCK_METHOD1(AnalyzeReverseStream,
222 int(AudioFrame* frame)); 229 int(AudioFrame* frame));
223 MOCK_METHOD4(AnalyzeReverseStream, 230 MOCK_METHOD4(AnalyzeReverseStream,
224 int(const float* const* data, int frames, int sample_rate_hz, 231 int(const float* const* data, int frames, int sample_rate_hz,
225 ChannelLayout input_layout)); 232 ChannelLayout input_layout));
233 MOCK_METHOD2(AnalyzeReverseStream,
234 int(const float* const* data, const StreamConfig& reverse_config));
226 MOCK_METHOD1(set_stream_delay_ms, 235 MOCK_METHOD1(set_stream_delay_ms,
227 int(int delay)); 236 int(int delay));
228 MOCK_CONST_METHOD0(stream_delay_ms, 237 MOCK_CONST_METHOD0(stream_delay_ms,
229 int()); 238 int());
230 MOCK_CONST_METHOD0(was_stream_delay_set, 239 MOCK_CONST_METHOD0(was_stream_delay_set,
231 bool()); 240 bool());
232 MOCK_METHOD1(set_stream_key_pressed, 241 MOCK_METHOD1(set_stream_key_pressed,
233 void(bool key_pressed)); 242 void(bool key_pressed));
234 MOCK_CONST_METHOD0(stream_key_pressed, 243 MOCK_CONST_METHOD0(stream_key_pressed,
235 bool()); 244 bool());
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 rtc::scoped_ptr<MockGainControl> gain_control_; 281 rtc::scoped_ptr<MockGainControl> gain_control_;
273 rtc::scoped_ptr<MockHighPassFilter> high_pass_filter_; 282 rtc::scoped_ptr<MockHighPassFilter> high_pass_filter_;
274 rtc::scoped_ptr<MockLevelEstimator> level_estimator_; 283 rtc::scoped_ptr<MockLevelEstimator> level_estimator_;
275 rtc::scoped_ptr<MockNoiseSuppression> noise_suppression_; 284 rtc::scoped_ptr<MockNoiseSuppression> noise_suppression_;
276 rtc::scoped_ptr<MockVoiceDetection> voice_detection_; 285 rtc::scoped_ptr<MockVoiceDetection> voice_detection_;
277 }; 286 };
278 287
279 } // namespace webrtc 288 } // namespace webrtc
280 289
281 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ 290 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698