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

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

Issue 1721273002: MediaStream audio object graph untangling and clean-ups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests broken by recent MSAudioTrack::Stop() reworking. Created 4 years, 10 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 b63fda4b5a1886ff4b45bd97fa6881f4a02f44d3..6b449d0054ab61f891ed41fbb6d0a8bc9ebff0ea 100644
--- a/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc
@@ -466,11 +466,8 @@ MockPeerConnectionDependencyFactory::CreateVideoSource(
return last_video_source_;
}
-scoped_refptr<WebAudioCapturerSource>
-MockPeerConnectionDependencyFactory::CreateWebAudioSource(
- blink::WebMediaStreamSource* source) {
- return NULL;
-}
+void MockPeerConnectionDependencyFactory::CreateWebAudioSource(
+ blink::WebMediaStreamSource* source) {}
scoped_refptr<webrtc::MediaStreamInterface>
MockPeerConnectionDependencyFactory::CreateLocalMediaStream(
@@ -515,7 +512,7 @@ MockPeerConnectionDependencyFactory::CreateIceCandidate(
return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp);
}
-scoped_refptr<WebRtcAudioCapturer>
+scoped_ptr<WebRtcAudioCapturer>
MockPeerConnectionDependencyFactory::CreateAudioCapturer(
int render_frame_id,
const StreamDeviceInfo& device_info,
@@ -530,9 +527,4 @@ MockPeerConnectionDependencyFactory::CreateAudioCapturer(
audio_source);
}
-void MockPeerConnectionDependencyFactory::StartLocalAudioTrack(
- WebRtcLocalAudioTrack* audio_track) {
- audio_track->Start();
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698