Index: components/test_runner/mock_webrtc_peer_connection_handler.cc |
diff --git a/components/test_runner/mock_webrtc_peer_connection_handler.cc b/components/test_runner/mock_webrtc_peer_connection_handler.cc |
index e388ffb198930b0750b596e12577882279458b67..1dd412f6cdf58c0ddc2a73a87cc0200867dedb76 100644 |
--- a/components/test_runner/mock_webrtc_peer_connection_handler.cc |
+++ b/components/test_runner/mock_webrtc_peer_connection_handler.cc |
@@ -100,7 +100,8 @@ void MockWebRTCPeerConnectionHandler::PostRequestFailure( |
void MockWebRTCPeerConnectionHandler::createOffer( |
const WebRTCSessionDescriptionRequest& request, |
const blink::WebRTCOfferOptions& options) { |
- if (options.iceRestart() && options.voiceActivityDetection()) { |
+ if (options.iceRestart() && options.voiceActivityDetection() && |
+ options.offerToReceiveAudio() > 0 && options.offerToReceiveVideo() > 0) { |
WebRTCSessionDescription session_description; |
session_description.initialize("offer", "local"); |
PostRequestResult(request, session_description); |