Index: content/renderer/media/rtc_peer_connection_handler_unittest.cc |
diff --git a/content/renderer/media/rtc_peer_connection_handler_unittest.cc b/content/renderer/media/rtc_peer_connection_handler_unittest.cc |
index 7745960a5b00f8546734770256b27d322032f005..680d16d153f48cb2cea39f05f98b8fad0e785d73 100644 |
--- a/content/renderer/media/rtc_peer_connection_handler_unittest.cc |
+++ b/content/renderer/media/rtc_peer_connection_handler_unittest.cc |
@@ -296,10 +296,10 @@ class RTCPeerConnectionHandlerTest : public ::testing::Test { |
media::AudioParameters::kAudioCDSampleRate, |
media::CHANNEL_LAYOUT_STEREO, |
media::AudioParameters::kAudioCDSampleRate / 100), |
+ MockConstraintFactory().CreateWebMediaConstraints(), |
+ base::Bind(&RTCPeerConnectionHandlerTest::OnAudioSourceStarted), |
mock_dependency_factory_.get()); |
audio_source->SetAllowInvalidRenderFrameIdForTesting(true); |
- audio_source->SetSourceConstraints( |
- MockConstraintFactory().CreateWebMediaConstraints()); |
blink_audio_source.setExtraData(audio_source); // Takes ownership. |
blink::WebMediaStreamSource video_source; |
@@ -366,6 +366,10 @@ class RTCPeerConnectionHandlerTest : public ::testing::Test { |
MediaStreamVideoTrack::GetVideoTrack(track)->Stop(); |
} |
+ static void OnAudioSourceStarted(MediaStreamSource* source, |
+ MediaStreamRequestResult result, |
+ const blink::WebString& result_name) {} |
+ |
base::MessageLoop message_loop_; |
std::unique_ptr<ChildProcess> child_process_; |
std::unique_ptr<MockWebRTCPeerConnectionHandlerClient> mock_client_; |