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

Side by Side Diff: media/engine/fakewebrtcvoiceengine.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 | « audio/audio_state_unittest.cc ('k') | test/mock_voice_engine.h » ('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) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool IsInited() const { return inited_; } 50 bool IsInited() const { return inited_; }
51 int GetLastChannel() const { return last_channel_; } 51 int GetLastChannel() const { return last_channel_; }
52 int GetNumChannels() const { return static_cast<int>(channels_.size()); } 52 int GetNumChannels() const { return static_cast<int>(channels_.size()); }
53 void set_fail_create_channel(bool fail_create_channel) { 53 void set_fail_create_channel(bool fail_create_channel) {
54 fail_create_channel_ = fail_create_channel; 54 fail_create_channel_ = fail_create_channel;
55 } 55 }
56 56
57 WEBRTC_STUB(Release, ()); 57 WEBRTC_STUB(Release, ());
58 58
59 // webrtc::VoEBase 59 // webrtc::VoEBase
60 WEBRTC_STUB(RegisterVoiceEngineObserver, (
61 webrtc::VoiceEngineObserver& observer));
62 WEBRTC_STUB(DeRegisterVoiceEngineObserver, ());
63 WEBRTC_FUNC(Init, 60 WEBRTC_FUNC(Init,
64 (webrtc::AudioDeviceModule* adm, 61 (webrtc::AudioDeviceModule* adm,
65 webrtc::AudioProcessing* audioproc, 62 webrtc::AudioProcessing* audioproc,
66 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& 63 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>&
67 decoder_factory)) { 64 decoder_factory)) {
68 inited_ = true; 65 inited_ = true;
69 return 0; 66 return 0;
70 } 67 }
71 WEBRTC_FUNC(Terminate, ()) { 68 WEBRTC_FUNC(Terminate, ()) {
72 inited_ = false; 69 inited_ = false;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::map<int, Channel*> channels_; 117 std::map<int, Channel*> channels_;
121 bool fail_create_channel_ = false; 118 bool fail_create_channel_ = false;
122 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr; 119 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr;
123 120
124 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); 121 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine);
125 }; 122 };
126 123
127 } // namespace cricket 124 } // namespace cricket
128 125
129 #endif // MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ 126 #endif // MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « audio/audio_state_unittest.cc ('k') | test/mock_voice_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698