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

Unified Diff: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc

Issue 1780653002: Revert of MediaStream audio object graph untangling and clean-ups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
diff --git a/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
index a268fc52ccd027c8bb8a05029f94c5d731ecd6fc..186618b2dbe214d0b86a52be3ed42f0cf152ecb7 100644
--- a/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
@@ -370,8 +370,11 @@
return nullptr;
}
-void MockPeerConnectionDependencyFactory::CreateWebAudioSource(
- blink::WebMediaStreamSource* source) {}
+scoped_refptr<WebAudioCapturerSource>
+MockPeerConnectionDependencyFactory::CreateWebAudioSource(
+ blink::WebMediaStreamSource* source) {
+ return NULL;
+}
scoped_refptr<webrtc::MediaStreamInterface>
MockPeerConnectionDependencyFactory::CreateLocalMediaStream(
@@ -412,7 +415,7 @@
return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp);
}
-scoped_ptr<WebRtcAudioCapturer>
+scoped_refptr<WebRtcAudioCapturer>
MockPeerConnectionDependencyFactory::CreateAudioCapturer(
int render_frame_id,
const StreamDeviceInfo& device_info,
@@ -427,4 +430,9 @@
audio_source);
}
+void MockPeerConnectionDependencyFactory::StartLocalAudioTrack(
+ WebRtcLocalAudioTrack* audio_track) {
+ audio_track->Start();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698