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

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

Issue 2335633002: This CL renames variables and method and removes some one-line methods inside the APM (Closed)
Patch Set: Re-adding missing initialization Created 4 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 | « webrtc/modules/audio_processing/include/audio_processing.h ('k') | no next file » | 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) 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 noise_suppression_(new MockNoiseSuppression), 175 noise_suppression_(new MockNoiseSuppression),
176 voice_detection_(new MockVoiceDetection) { 176 voice_detection_(new MockVoiceDetection) {
177 } 177 }
178 178
179 virtual ~MockAudioProcessing() { 179 virtual ~MockAudioProcessing() {
180 } 180 }
181 181
182 MOCK_METHOD0(Initialize, 182 MOCK_METHOD0(Initialize,
183 int()); 183 int());
184 MOCK_METHOD6(Initialize, 184 MOCK_METHOD6(Initialize,
185 int(int sample_rate_hz, 185 int(int capture_input_sample_rate_hz,
186 int output_sample_rate_hz, 186 int capture_output_sample_rate_hz,
187 int reverse_sample_rate_hz, 187 int render_sample_rate_hz,
188 ChannelLayout input_layout, 188 ChannelLayout capture_input_layout,
189 ChannelLayout output_layout, 189 ChannelLayout capture_output_layout,
190 ChannelLayout reverse_layout)); 190 ChannelLayout render_input_layout));
191 MOCK_METHOD1(Initialize, 191 MOCK_METHOD1(Initialize,
192 int(const ProcessingConfig& processing_config)); 192 int(const ProcessingConfig& processing_config));
193 MOCK_METHOD1(ApplyConfig, void(const Config& config)); 193 MOCK_METHOD1(ApplyConfig, void(const Config& config));
194 MOCK_METHOD1(SetExtraOptions, void(const webrtc::Config& config)); 194 MOCK_METHOD1(SetExtraOptions, void(const webrtc::Config& config));
195 MOCK_METHOD1(set_sample_rate_hz, 195 MOCK_METHOD1(set_sample_rate_hz,
196 int(int rate)); 196 int(int rate));
197 MOCK_CONST_METHOD0(input_sample_rate_hz, 197 MOCK_CONST_METHOD0(input_sample_rate_hz,
198 int()); 198 int());
199 MOCK_CONST_METHOD0(sample_rate_hz, 199 MOCK_CONST_METHOD0(sample_rate_hz,
200 int()); 200 int());
(...skipping 23 matching lines...) Expand all
224 float* const* dest)); 224 float* const* dest));
225 MOCK_METHOD4(ProcessStream, 225 MOCK_METHOD4(ProcessStream,
226 int(const float* const* src, 226 int(const float* const* src,
227 const StreamConfig& input_config, 227 const StreamConfig& input_config,
228 const StreamConfig& output_config, 228 const StreamConfig& output_config,
229 float* const* dest)); 229 float* const* dest));
230 MOCK_METHOD1(AnalyzeReverseStream, 230 MOCK_METHOD1(AnalyzeReverseStream,
231 int(AudioFrame* frame)); 231 int(AudioFrame* frame));
232 MOCK_METHOD1(ProcessReverseStream, int(AudioFrame* frame)); 232 MOCK_METHOD1(ProcessReverseStream, int(AudioFrame* frame));
233 MOCK_METHOD4(AnalyzeReverseStream, 233 MOCK_METHOD4(AnalyzeReverseStream,
234 int(const float* const* data, size_t frames, int sample_rate_hz, 234 int(const float* const* data,
235 ChannelLayout input_layout)); 235 size_t samples_per_channel,
236 int sample_rate_hz,
237 ChannelLayout layout));
236 MOCK_METHOD4(ProcessReverseStream, 238 MOCK_METHOD4(ProcessReverseStream,
237 int(const float* const* src, 239 int(const float* const* src,
238 const StreamConfig& input_config, 240 const StreamConfig& input_config,
239 const StreamConfig& output_config, 241 const StreamConfig& output_config,
240 float* const* dest)); 242 float* const* dest));
241 MOCK_METHOD1(set_stream_delay_ms, 243 MOCK_METHOD1(set_stream_delay_ms,
242 int(int delay)); 244 int(int delay));
243 MOCK_CONST_METHOD0(stream_delay_ms, 245 MOCK_CONST_METHOD0(stream_delay_ms,
244 int()); 246 int());
245 MOCK_CONST_METHOD0(was_stream_delay_set, 247 MOCK_CONST_METHOD0(was_stream_delay_set,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 std::unique_ptr<MockGainControl> gain_control_; 290 std::unique_ptr<MockGainControl> gain_control_;
289 std::unique_ptr<MockHighPassFilter> high_pass_filter_; 291 std::unique_ptr<MockHighPassFilter> high_pass_filter_;
290 std::unique_ptr<MockLevelEstimator> level_estimator_; 292 std::unique_ptr<MockLevelEstimator> level_estimator_;
291 std::unique_ptr<MockNoiseSuppression> noise_suppression_; 293 std::unique_ptr<MockNoiseSuppression> noise_suppression_;
292 std::unique_ptr<MockVoiceDetection> voice_detection_; 294 std::unique_ptr<MockVoiceDetection> voice_detection_;
293 }; 295 };
294 296
295 } // namespace webrtc 297 } // namespace webrtc
296 298
297 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ 299 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/include/audio_processing.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698