OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 MOCK_METHOD2(SetEcStatus, int(bool enable, EcModes mode)); | 72 MOCK_METHOD2(SetEcStatus, int(bool enable, EcModes mode)); |
73 MOCK_METHOD2(GetEcStatus, int(bool& enabled, EcModes& mode)); | 73 MOCK_METHOD2(GetEcStatus, int(bool& enabled, EcModes& mode)); |
74 MOCK_METHOD1(EnableDriftCompensation, int(bool enable)); | 74 MOCK_METHOD1(EnableDriftCompensation, int(bool enable)); |
75 MOCK_METHOD0(DriftCompensationEnabled, bool()); | 75 MOCK_METHOD0(DriftCompensationEnabled, bool()); |
76 MOCK_METHOD1(SetDelayOffsetMs, void(int offset)); | 76 MOCK_METHOD1(SetDelayOffsetMs, void(int offset)); |
77 MOCK_METHOD0(DelayOffsetMs, int()); | 77 MOCK_METHOD0(DelayOffsetMs, int()); |
78 MOCK_METHOD2(SetAecmMode, int(AecmModes mode, bool enableCNG)); | 78 MOCK_METHOD2(SetAecmMode, int(AecmModes mode, bool enableCNG)); |
79 MOCK_METHOD2(GetAecmMode, int(AecmModes& mode, bool& enabledCNG)); | 79 MOCK_METHOD2(GetAecmMode, int(AecmModes& mode, bool& enabledCNG)); |
80 MOCK_METHOD1(EnableHighPassFilter, int(bool enable)); | 80 MOCK_METHOD1(EnableHighPassFilter, int(bool enable)); |
81 MOCK_METHOD0(IsHighPassFilterEnabled, bool()); | 81 MOCK_METHOD0(IsHighPassFilterEnabled, bool()); |
82 MOCK_METHOD3(SetRxNsStatus, int(int channel, bool enable, NsModes mode)); | |
83 MOCK_METHOD3(GetRxNsStatus, int(int channel, bool& enabled, NsModes& mode)); | |
84 MOCK_METHOD3(SetRxAgcStatus, int(int channel, bool enable, AgcModes mode)); | |
85 MOCK_METHOD3(GetRxAgcStatus, int(int channel, bool& enabled, AgcModes& mode)); | |
86 MOCK_METHOD2(SetRxAgcConfig, int(int channel, AgcConfig config)); | |
87 MOCK_METHOD2(GetRxAgcConfig, int(int channel, AgcConfig& config)); | |
88 MOCK_METHOD2(RegisterRxVadObserver, | |
89 int(int channel, VoERxVadCallback& observer)); | |
90 MOCK_METHOD1(DeRegisterRxVadObserver, int(int channel)); | |
91 MOCK_METHOD1(VoiceActivityIndicator, int(int channel)); | 82 MOCK_METHOD1(VoiceActivityIndicator, int(int channel)); |
92 MOCK_METHOD1(SetEcMetricsStatus, int(bool enable)); | 83 MOCK_METHOD1(SetEcMetricsStatus, int(bool enable)); |
93 MOCK_METHOD1(GetEcMetricsStatus, int(bool& enabled)); | 84 MOCK_METHOD1(GetEcMetricsStatus, int(bool& enabled)); |
94 MOCK_METHOD4(GetEchoMetrics, int(int& ERL, int& ERLE, int& RERL, int& A_NLP)); | 85 MOCK_METHOD4(GetEchoMetrics, int(int& ERL, int& ERLE, int& RERL, int& A_NLP)); |
95 MOCK_METHOD3(GetEcDelayMetrics, | 86 MOCK_METHOD3(GetEcDelayMetrics, |
96 int(int& delay_median, | 87 int(int& delay_median, |
97 int& delay_std, | 88 int& delay_std, |
98 float& fraction_poor_delays)); | 89 float& fraction_poor_delays)); |
99 MOCK_METHOD1(StartDebugRecording, int(const char* fileNameUTF8)); | 90 MOCK_METHOD1(StartDebugRecording, int(const char* fileNameUTF8)); |
100 MOCK_METHOD1(StartDebugRecording, int(FILE* file_handle)); | 91 MOCK_METHOD1(StartDebugRecording, int(FILE* file_handle)); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // functor implementing the default version of ChannelProxyFactory, above. | 328 // functor implementing the default version of ChannelProxyFactory, above. |
338 // GMock creates an unfortunate copy of the functor, which would cause us to | 329 // GMock creates an unfortunate copy of the functor, which would cause us to |
339 // return a dangling reference. Fortunately, this should go away once | 330 // return a dangling reference. Fortunately, this should go away once |
340 // voe::Channel does. | 331 // voe::Channel does. |
341 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 332 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
342 }; | 333 }; |
343 } // namespace test | 334 } // namespace test |
344 } // namespace webrtc | 335 } // namespace webrtc |
345 | 336 |
346 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ | 337 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ |
OLD | NEW |