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

Side by Side Diff: test/mock_voice_engine.h

Issue 3019513002: Remove the VoiceEngineObserver callback interface. (Closed)
Patch Set: rebase + build error Created 3 years, 2 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 | « media/engine/fakewebrtcvoiceengine.h ('k') | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Allows injecting a ChannelProxy factory. 87 // Allows injecting a ChannelProxy factory.
88 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id)); 88 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id));
89 89
90 // VoiceEngineImpl 90 // VoiceEngineImpl
91 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy( 91 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy(
92 int channel_id) /* override */ { 92 int channel_id) /* override */ {
93 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id)); 93 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id));
94 } 94 }
95 95
96 // VoEBase 96 // VoEBase
97 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer));
98 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int());
99 MOCK_METHOD3( 97 MOCK_METHOD3(
100 Init, 98 Init,
101 int(AudioDeviceModule* external_adm, 99 int(AudioDeviceModule* external_adm,
102 AudioProcessing* external_apm, 100 AudioProcessing* external_apm,
103 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); 101 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory));
104 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); 102 MOCK_METHOD0(audio_device_module, AudioDeviceModule*());
105 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*()); 103 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*());
106 MOCK_METHOD0(Terminate, int()); 104 MOCK_METHOD0(Terminate, int());
107 MOCK_METHOD0(CreateChannel, int()); 105 MOCK_METHOD0(CreateChannel, int());
108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); 106 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config));
(...skipping 15 matching lines...) Expand all
124 122
125 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; 123 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_;
126 124
127 MockAudioDeviceModule mock_audio_device_; 125 MockAudioDeviceModule mock_audio_device_;
128 MockAudioTransport mock_audio_transport_; 126 MockAudioTransport mock_audio_transport_;
129 }; 127 };
130 } // namespace test 128 } // namespace test
131 } // namespace webrtc 129 } // namespace webrtc
132 130
133 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ 131 #endif // AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW
« no previous file with comments | « media/engine/fakewebrtcvoiceengine.h ('k') | voice_engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698