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

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

Issue 2738543002: Remove VoEAudioProcessing interface. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | 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) 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 // Allows injecting a ChannelProxy factory. 70 // Allows injecting a ChannelProxy factory.
71 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id)); 71 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id));
72 72
73 // VoiceEngineImpl 73 // VoiceEngineImpl
74 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy( 74 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(
75 int channel_id) /* override */ { 75 int channel_id) /* override */ {
76 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id)); 76 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id));
77 } 77 }
78 78
79 // VoEAudioProcessing
80 MOCK_METHOD2(SetNsStatus, int(bool enable, NsModes mode));
81 MOCK_METHOD2(GetNsStatus, int(bool& enabled, NsModes& mode));
82 MOCK_METHOD2(SetAgcStatus, int(bool enable, AgcModes mode));
83 MOCK_METHOD2(GetAgcStatus, int(bool& enabled, AgcModes& mode));
84 MOCK_METHOD1(SetAgcConfig, int(AgcConfig config));
85 MOCK_METHOD1(GetAgcConfig, int(AgcConfig& config));
86 MOCK_METHOD2(SetEcStatus, int(bool enable, EcModes mode));
87 MOCK_METHOD2(GetEcStatus, int(bool& enabled, EcModes& mode));
88 MOCK_METHOD1(EnableDriftCompensation, int(bool enable));
89 MOCK_METHOD0(DriftCompensationEnabled, bool());
90 MOCK_METHOD1(SetDelayOffsetMs, void(int offset));
91 MOCK_METHOD0(DelayOffsetMs, int());
92 MOCK_METHOD2(SetAecmMode, int(AecmModes mode, bool enableCNG));
93 MOCK_METHOD2(GetAecmMode, int(AecmModes& mode, bool& enabledCNG));
94 MOCK_METHOD1(EnableHighPassFilter, int(bool enable));
95 MOCK_METHOD0(IsHighPassFilterEnabled, bool());
96 MOCK_METHOD1(VoiceActivityIndicator, int(int channel));
97 MOCK_METHOD1(SetEcMetricsStatus, int(bool enable));
98 MOCK_METHOD1(GetEcMetricsStatus, int(bool& enabled));
99 MOCK_METHOD4(GetEchoMetrics, int(int& ERL, int& ERLE, int& RERL, int& A_NLP));
100 MOCK_METHOD3(GetEcDelayMetrics,
101 int(int& delay_median,
102 int& delay_std,
103 float& fraction_poor_delays));
104 MOCK_METHOD1(StartDebugRecording, int(const char* fileNameUTF8));
105 MOCK_METHOD1(StartDebugRecording, int(FILE* file_handle));
106 MOCK_METHOD0(StopDebugRecording, int());
107 MOCK_METHOD1(SetTypingDetectionStatus, int(bool enable));
108 MOCK_METHOD1(GetTypingDetectionStatus, int(bool& enabled));
109 MOCK_METHOD1(TimeSinceLastTyping, int(int& seconds));
110 MOCK_METHOD5(SetTypingDetectionParameters,
111 int(int timeWindow,
112 int costPerTyping,
113 int reportingThreshold,
114 int penaltyDecay,
115 int typeEventDelay));
116 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable));
117 MOCK_METHOD0(IsStereoChannelSwappingEnabled, bool());
118
119 // VoEBase 79 // VoEBase
120 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer)); 80 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer));
121 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int()); 81 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int());
122 MOCK_METHOD3( 82 MOCK_METHOD3(
123 Init, 83 Init,
124 int(AudioDeviceModule* external_adm, 84 int(AudioDeviceModule* external_adm,
125 AudioProcessing* audioproc, 85 AudioProcessing* audioproc,
126 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); 86 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory));
127 MOCK_METHOD0(audio_processing, AudioProcessing*()); 87 MOCK_METHOD0(audio_processing, AudioProcessing*());
128 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); 88 MOCK_METHOD0(audio_device_module, AudioDeviceModule*());
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 264 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
305 265
306 MockAudioDeviceModule mock_audio_device_; 266 MockAudioDeviceModule mock_audio_device_;
307 MockAudioProcessing mock_audio_processing_; 267 MockAudioProcessing mock_audio_processing_;
308 MockAudioTransport mock_audio_transport_; 268 MockAudioTransport mock_audio_transport_;
309 }; 269 };
310 } // namespace test 270 } // namespace test
311 } // namespace webrtc 271 } // namespace webrtc
312 272
313 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ 273 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698