| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 MOCK_METHOD1(Enable, | 133 MOCK_METHOD1(Enable, |
| 134 int(bool enable)); | 134 int(bool enable)); |
| 135 MOCK_CONST_METHOD0(is_enabled, | 135 MOCK_CONST_METHOD0(is_enabled, |
| 136 bool()); | 136 bool()); |
| 137 MOCK_METHOD1(set_level, | 137 MOCK_METHOD1(set_level, |
| 138 int(Level level)); | 138 int(Level level)); |
| 139 MOCK_CONST_METHOD0(level, | 139 MOCK_CONST_METHOD0(level, |
| 140 Level()); | 140 Level()); |
| 141 MOCK_CONST_METHOD0(speech_probability, | 141 MOCK_CONST_METHOD0(speech_probability, |
| 142 float()); | 142 float()); |
| 143 MOCK_METHOD0(NoiseEstimate, std::vector<float>()); |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 class MockVoiceDetection : public VoiceDetection { | 146 class MockVoiceDetection : public VoiceDetection { |
| 146 public: | 147 public: |
| 147 MOCK_METHOD1(Enable, | 148 MOCK_METHOD1(Enable, |
| 148 int(bool enable)); | 149 int(bool enable)); |
| 149 MOCK_CONST_METHOD0(is_enabled, | 150 MOCK_CONST_METHOD0(is_enabled, |
| 150 bool()); | 151 bool()); |
| 151 MOCK_CONST_METHOD0(stream_has_voice, | 152 MOCK_CONST_METHOD0(stream_has_voice, |
| 152 bool()); | 153 bool()); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 rtc::scoped_ptr<MockGainControl> gain_control_; | 287 rtc::scoped_ptr<MockGainControl> gain_control_; |
| 287 rtc::scoped_ptr<MockHighPassFilter> high_pass_filter_; | 288 rtc::scoped_ptr<MockHighPassFilter> high_pass_filter_; |
| 288 rtc::scoped_ptr<MockLevelEstimator> level_estimator_; | 289 rtc::scoped_ptr<MockLevelEstimator> level_estimator_; |
| 289 rtc::scoped_ptr<MockNoiseSuppression> noise_suppression_; | 290 rtc::scoped_ptr<MockNoiseSuppression> noise_suppression_; |
| 290 rtc::scoped_ptr<MockVoiceDetection> voice_detection_; | 291 rtc::scoped_ptr<MockVoiceDetection> voice_detection_; |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 } // namespace webrtc | 294 } // namespace webrtc |
| 294 | 295 |
| 295 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ | 296 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_MOCK_AUDIO_PROCESSING_H_ |
| OLD | NEW |