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

Unified Diff: components/test_runner/mock_webrtc_peer_connection_handler.cc

Issue 2097683003: Support legacy offerToReceiveAudio/offerToReceiveVideo fields in RTCOfferOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c47d2b91b3f47f5e427aec5cdb53b1f0fb6423a1..9c262deafb12a7b359980146ee36874dc68287e0 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);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698