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

Unified Diff: components/test_runner/mock_webrtc_peer_connection_handler.cc

Issue 2077323003: Support legacy offerToReceiveAudio/offerToReceiveVideo fields in RTCOfferOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: 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);

Powered by Google App Engine
This is Rietveld 408576698