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

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

Issue 1993783002: Moved CreateBuiltinDecoderFactory out to VoEBaseImpl. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@audio-decoder-factory-injections-2
Patch Set: Rebass! How low can you go? Created 4 years, 7 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int costPerTyping, 99 int costPerTyping,
100 int reportingThreshold, 100 int reportingThreshold,
101 int penaltyDecay, 101 int penaltyDecay,
102 int typeEventDelay)); 102 int typeEventDelay));
103 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable)); 103 MOCK_METHOD1(EnableStereoChannelSwapping, void(bool enable));
104 MOCK_METHOD0(IsStereoChannelSwappingEnabled, bool()); 104 MOCK_METHOD0(IsStereoChannelSwappingEnabled, bool());
105 105
106 // VoEBase 106 // VoEBase
107 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer)); 107 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer));
108 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int()); 108 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int());
109 MOCK_METHOD2(Init, 109 MOCK_METHOD3(
110 int(AudioDeviceModule* external_adm, 110 Init,
111 AudioProcessing* audioproc)); 111 int(AudioDeviceModule* external_adm,
112 AudioProcessing* audioproc,
113 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory));
112 MOCK_METHOD0(audio_processing, AudioProcessing*()); 114 MOCK_METHOD0(audio_processing, AudioProcessing*());
113 MOCK_METHOD0(Terminate, int()); 115 MOCK_METHOD0(Terminate, int());
114 MOCK_METHOD0(CreateChannel, int()); 116 MOCK_METHOD0(CreateChannel, int());
115 MOCK_METHOD1(CreateChannel, int(const Config& config)); 117 MOCK_METHOD1(CreateChannel, int(const Config& config));
116 MOCK_METHOD1(DeleteChannel, int(int channel)); 118 MOCK_METHOD1(DeleteChannel, int(int channel));
117 MOCK_METHOD1(StartReceive, int(int channel)); 119 MOCK_METHOD1(StartReceive, int(int channel));
118 MOCK_METHOD1(StopReceive, int(int channel)); 120 MOCK_METHOD1(StopReceive, int(int channel));
119 MOCK_METHOD1(StartPlayout, int(int channel)); 121 MOCK_METHOD1(StartPlayout, int(int channel));
120 MOCK_METHOD1(StopPlayout, int(int channel)); 122 MOCK_METHOD1(StopPlayout, int(int channel));
121 MOCK_METHOD1(StartSend, int(int channel)); 123 MOCK_METHOD1(StartSend, int(int channel));
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 int(int channel, unsigned& level)); 321 int(int channel, unsigned& level));
320 MOCK_METHOD2(SetChannelOutputVolumeScaling, int(int channel, float scaling)); 322 MOCK_METHOD2(SetChannelOutputVolumeScaling, int(int channel, float scaling));
321 MOCK_METHOD2(GetChannelOutputVolumeScaling, int(int channel, float& scaling)); 323 MOCK_METHOD2(GetChannelOutputVolumeScaling, int(int channel, float& scaling));
322 MOCK_METHOD3(SetOutputVolumePan, int(int channel, float left, float right)); 324 MOCK_METHOD3(SetOutputVolumePan, int(int channel, float left, float right));
323 MOCK_METHOD3(GetOutputVolumePan, int(int channel, float& left, float& right)); 325 MOCK_METHOD3(GetOutputVolumePan, int(int channel, float& left, float& right));
324 }; 326 };
325 } // namespace test 327 } // namespace test
326 } // namespace webrtc 328 } // namespace webrtc
327 329
328 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ 330 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698