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

Side by Side Diff: webrtc/test/mock_voice_engine.h

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

Powered by Google App Engine
This is Rietveld 408576698