Index: talk/media/base/fakemediaengine.h |
diff --git a/talk/media/base/fakemediaengine.h b/talk/media/base/fakemediaengine.h |
index 2c579e29375ed4d8e6c2fb91c37c1ec3bf517a98..9243a9628c61cef87d35c4cad1c6166d991a8cc5 100644 |
--- a/talk/media/base/fakemediaengine.h |
+++ b/talk/media/base/fakemediaengine.h |
@@ -516,7 +516,6 @@ class FakeVideoMediaChannel : public RtpHelper<VideoMediaChannel> { |
return RtpHelper<VideoMediaChannel>::RemoveSendStream(ssrc); |
} |
- void DetachVoiceChannel() override {} |
virtual bool SetRecvCodecs(const std::vector<VideoCodec>& codecs) { |
if (fail_set_recv_codecs()) { |
// Fake the failure in SetRecvCodecs. |
@@ -751,6 +750,7 @@ class FakeVoiceEngine : public FakeBaseEngine { |
bool Init(rtc::Thread* worker_thread) { return true; } |
void Terminate() {} |
int GetCapabilities() { return AUDIO_SEND | AUDIO_RECV; } |
+ webrtc::VoiceEngine* GetVoE() { return nullptr; } |
AudioOptions GetAudioOptions() const { |
return options_; |
} |
@@ -763,7 +763,8 @@ class FakeVoiceEngine : public FakeBaseEngine { |
return true; |
} |
- VoiceMediaChannel* CreateChannel(const AudioOptions& options) { |
+ VoiceMediaChannel* CreateChannel(webrtc::Call* call, |
+ const AudioOptions& options) { |
if (fail_create_channel_) { |
return nullptr; |
} |
@@ -854,9 +855,7 @@ class FakeVoiceEngine : public FakeBaseEngine { |
class FakeVideoEngine : public FakeBaseEngine { |
public: |
- FakeVideoEngine() : FakeVideoEngine(nullptr) {} |
- explicit FakeVideoEngine(FakeVoiceEngine* voice) |
- : capture_(false) { |
+ FakeVideoEngine() : capture_(false) { |
// Add a fake video codec. Note that the name must not be "" as there are |
// sanity checks against that. |
codecs_.push_back(VideoCodec(0, "fake_video_codec", 0, 0, 0, 0)); |
@@ -880,8 +879,8 @@ class FakeVideoEngine : public FakeBaseEngine { |
return default_encoder_config_; |
} |
- VideoMediaChannel* CreateChannel(const VideoOptions& options, |
- VoiceMediaChannel* channel) { |
+ VideoMediaChannel* CreateChannel(webrtc::Call* call, |
+ const VideoOptions& options) { |
if (fail_create_channel_) { |
return NULL; |
} |