| OLD | NEW |
| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual ~MockAudioProcessing() {} | 131 virtual ~MockAudioProcessing() {} |
| 132 | 132 |
| 133 MOCK_METHOD0(Initialize, int()); | 133 MOCK_METHOD0(Initialize, int()); |
| 134 MOCK_METHOD6(Initialize, int(int capture_input_sample_rate_hz, | 134 MOCK_METHOD6(Initialize, int(int capture_input_sample_rate_hz, |
| 135 int capture_output_sample_rate_hz, | 135 int capture_output_sample_rate_hz, |
| 136 int render_sample_rate_hz, | 136 int render_sample_rate_hz, |
| 137 ChannelLayout capture_input_layout, | 137 ChannelLayout capture_input_layout, |
| 138 ChannelLayout capture_output_layout, | 138 ChannelLayout capture_output_layout, |
| 139 ChannelLayout render_input_layout)); | 139 ChannelLayout render_input_layout)); |
| 140 MOCK_METHOD1(Initialize, int(const ProcessingConfig& processing_config)); | 140 MOCK_METHOD1(Initialize, int(const ProcessingConfig& processing_config)); |
| 141 MOCK_METHOD1(SetWorkerTaskQueue, void(rtc::TaskQueue* task_queue)); |
| 141 MOCK_METHOD1(ApplyConfig, void(const Config& config)); | 142 MOCK_METHOD1(ApplyConfig, void(const Config& config)); |
| 142 MOCK_METHOD1(SetExtraOptions, void(const webrtc::Config& config)); | 143 MOCK_METHOD1(SetExtraOptions, void(const webrtc::Config& config)); |
| 143 MOCK_CONST_METHOD0(proc_sample_rate_hz, int()); | 144 MOCK_CONST_METHOD0(proc_sample_rate_hz, int()); |
| 144 MOCK_CONST_METHOD0(proc_split_sample_rate_hz, int()); | 145 MOCK_CONST_METHOD0(proc_split_sample_rate_hz, int()); |
| 145 MOCK_CONST_METHOD0(num_input_channels, size_t()); | 146 MOCK_CONST_METHOD0(num_input_channels, size_t()); |
| 146 MOCK_CONST_METHOD0(num_proc_channels, size_t()); | 147 MOCK_CONST_METHOD0(num_proc_channels, size_t()); |
| 147 MOCK_CONST_METHOD0(num_output_channels, size_t()); | 148 MOCK_CONST_METHOD0(num_output_channels, size_t()); |
| 148 MOCK_CONST_METHOD0(num_reverse_channels, size_t()); | 149 MOCK_CONST_METHOD0(num_reverse_channels, size_t()); |
| 149 MOCK_METHOD1(set_output_will_be_muted, void(bool muted)); | 150 MOCK_METHOD1(set_output_will_be_muted, void(bool muted)); |
| 150 MOCK_METHOD1(ProcessStream, int(AudioFrame* frame)); | 151 MOCK_METHOD1(ProcessStream, int(AudioFrame* frame)); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 167 MOCK_METHOD4(ProcessReverseStream, int(const float* const* src, | 168 MOCK_METHOD4(ProcessReverseStream, int(const float* const* src, |
| 168 const StreamConfig& input_config, | 169 const StreamConfig& input_config, |
| 169 const StreamConfig& output_config, | 170 const StreamConfig& output_config, |
| 170 float* const* dest)); | 171 float* const* dest)); |
| 171 MOCK_METHOD1(set_stream_delay_ms, int(int delay)); | 172 MOCK_METHOD1(set_stream_delay_ms, int(int delay)); |
| 172 MOCK_CONST_METHOD0(stream_delay_ms, int()); | 173 MOCK_CONST_METHOD0(stream_delay_ms, int()); |
| 173 MOCK_CONST_METHOD0(was_stream_delay_set, bool()); | 174 MOCK_CONST_METHOD0(was_stream_delay_set, bool()); |
| 174 MOCK_METHOD1(set_stream_key_pressed, void(bool key_pressed)); | 175 MOCK_METHOD1(set_stream_key_pressed, void(bool key_pressed)); |
| 175 MOCK_METHOD1(set_delay_offset_ms, void(int offset)); | 176 MOCK_METHOD1(set_delay_offset_ms, void(int offset)); |
| 176 MOCK_CONST_METHOD0(delay_offset_ms, int()); | 177 MOCK_CONST_METHOD0(delay_offset_ms, int()); |
| 177 MOCK_METHOD2(StartDebugRecording, int(const char filename[kMaxFilenameSize], | 178 MOCK_METHOD3(StartDebugRecording, |
| 178 int64_t max_log_size_bytes)); | 179 int(const char filename[kMaxFilenameSize], |
| 179 MOCK_METHOD2(StartDebugRecording, int(FILE* handle, | 180 int64_t max_log_size_bytes, |
| 180 int64_t max_log_size_bytes)); | 181 rtc::TaskQueue* worker_queue)); |
| 181 MOCK_METHOD1(StartDebugRecording, int (FILE* handle)); | 182 MOCK_METHOD3(StartDebugRecording, |
| 182 MOCK_METHOD1(StartDebugRecordingForPlatformFile, | 183 int(FILE* handle, |
| 183 int(rtc::PlatformFile handle)); | 184 int64_t max_log_size_bytes, |
| 185 rtc::TaskQueue* worker_queue)); |
| 186 MOCK_METHOD2(StartDebugRecording, |
| 187 int(FILE* handle, rtc::TaskQueue* worker_queue)); |
| 188 MOCK_METHOD2(StartDebugRecordingForPlatformFile, |
| 189 int(rtc::PlatformFile handle, rtc::TaskQueue* worker_queue)); |
| 184 MOCK_METHOD0(StopDebugRecording, int()); | 190 MOCK_METHOD0(StopDebugRecording, int()); |
| 185 MOCK_METHOD0(UpdateHistogramsOnCallEnd, void()); | 191 MOCK_METHOD0(UpdateHistogramsOnCallEnd, void()); |
| 186 MOCK_CONST_METHOD0(GetStatistics, AudioProcessingStatistics()); | 192 MOCK_CONST_METHOD0(GetStatistics, AudioProcessingStatistics()); |
| 187 virtual MockEchoCancellation* echo_cancellation() const { | 193 virtual MockEchoCancellation* echo_cancellation() const { |
| 188 return echo_cancellation_.get(); | 194 return echo_cancellation_.get(); |
| 189 } | 195 } |
| 190 virtual MockEchoControlMobile* echo_control_mobile() const { | 196 virtual MockEchoControlMobile* echo_control_mobile() const { |
| 191 return echo_control_mobile_.get(); | 197 return echo_control_mobile_.get(); |
| 192 } | 198 } |
| 193 virtual MockGainControl* gain_control() const { | 199 virtual MockGainControl* gain_control() const { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 213 std::unique_ptr<MockHighPassFilter> high_pass_filter_; | 219 std::unique_ptr<MockHighPassFilter> high_pass_filter_; |
| 214 std::unique_ptr<MockLevelEstimator> level_estimator_; | 220 std::unique_ptr<MockLevelEstimator> level_estimator_; |
| 215 std::unique_ptr<MockNoiseSuppression> noise_suppression_; | 221 std::unique_ptr<MockNoiseSuppression> noise_suppression_; |
| 216 std::unique_ptr<MockVoiceDetection> voice_detection_; | 222 std::unique_ptr<MockVoiceDetection> voice_detection_; |
| 217 }; | 223 }; |
| 218 | 224 |
| 219 } // namespace test | 225 } // namespace test |
| 220 } // namespace webrtc | 226 } // namespace webrtc |
| 221 | 227 |
| 222 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ | 228 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ |
| OLD | NEW |