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

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

Issue 2454373002: Added an empty AudioTransportProxy to AudioState. (Closed)
Patch Set: Created 4 years, 1 month 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // VoEBase 105 // VoEBase
106 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer)); 106 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer));
107 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int()); 107 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int());
108 MOCK_METHOD3( 108 MOCK_METHOD3(
109 Init, 109 Init,
110 int(AudioDeviceModule* external_adm, 110 int(AudioDeviceModule* external_adm,
111 AudioProcessing* audioproc, 111 AudioProcessing* audioproc,
112 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); 112 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory));
113 MOCK_METHOD0(audio_processing, AudioProcessing*()); 113 MOCK_METHOD0(audio_processing, AudioProcessing*());
114 MOCK_METHOD0(audio_device_module, AudioDeviceModule*());
henrika_webrtc 2016/11/02 10:02:06 It is not clear to me why this method was added in
aleloi 2016/11/08 11:46:41 I am now accessing the AudioDevice from the constr
114 MOCK_METHOD0(Terminate, int()); 115 MOCK_METHOD0(Terminate, int());
115 MOCK_METHOD0(CreateChannel, int()); 116 MOCK_METHOD0(CreateChannel, int());
116 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); 117 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config));
117 MOCK_METHOD1(DeleteChannel, int(int channel)); 118 MOCK_METHOD1(DeleteChannel, int(int channel));
118 MOCK_METHOD1(StartReceive, int(int channel)); 119 MOCK_METHOD1(StartReceive, int(int channel));
119 MOCK_METHOD1(StopReceive, int(int channel)); 120 MOCK_METHOD1(StopReceive, int(int channel));
120 MOCK_METHOD1(StartPlayout, int(int channel)); 121 MOCK_METHOD1(StartPlayout, int(int channel));
121 MOCK_METHOD1(StopPlayout, int(int channel)); 122 MOCK_METHOD1(StopPlayout, int(int channel));
122 MOCK_METHOD1(StartSend, int(int channel)); 123 MOCK_METHOD1(StartSend, int(int channel));
123 MOCK_METHOD1(StopSend, int(int channel)); 124 MOCK_METHOD1(StopSend, int(int channel));
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // functor implementing the default version of ChannelProxyFactory, above. 329 // functor implementing the default version of ChannelProxyFactory, above.
329 // 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
330 // return a dangling reference. Fortunately, this should go away once 331 // return a dangling reference. Fortunately, this should go away once
331 // voe::Channel does. 332 // voe::Channel does.
332 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 333 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
333 }; 334 };
334 } // namespace test 335 } // namespace test
335 } // namespace webrtc 336 } // namespace webrtc
336 337
337 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ 338 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW
« webrtc/call/bitrate_estimator_tests.cc ('K') | « webrtc/call/call_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698