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

Issue 3015473002: Reject the descriptions that attempt to change the order of m= section in current local description.

Created:
3 years, 3 months ago by Zhi Huang
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, danilchap, AleBzk, peah-webrtc, zhuangzesen_agora.io, Andrew MacDonald, aleloi, fengyue_agora.io, stefan-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, henrika_webrtc, aluebs-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, yujie_mao (webrtc), zhengzhonghou_agora.io, mflodman, bjornv1
Target Ref:
refs/branch-heads/62
Project:
webrtc
Visibility:
Public.

Description

Reject the descriptions that attempt to change the order of m= sections in current local description. When setting the descriptions, the order of m= sections would be compared against existing m= sections and an error would be returned if the order doesn't match. This change is expected to be merged to M62. BUG=chromium:763842

Patch Set 1 : Merge. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -25 lines) Patch
M webrtc/pc/peerconnectioninterface_unittest.cc View 2 chunks +56 lines, -0 lines 2 comments Download
M webrtc/pc/webrtcsession.h View 1 chunk +2 lines, -1 line 1 comment Download
M webrtc/pc/webrtcsession.cc View 3 chunks +40 lines, -19 lines 0 comments Download
M webrtc/pc/webrtcsession_unittest.cc View 5 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (15 generated)
Zhi Huang
PTAL.
3 years, 3 months ago (2017-09-14 00:14:24 UTC) #15
Taylor Brandstetter
3 years, 3 months ago (2017-09-14 00:41:47 UTC) #17
lgtm with nits

https://codereview.webrtc.org/3015473002/diff/40001/webrtc/pc/peerconnectioni...
File webrtc/pc/peerconnectioninterface_unittest.cc (right):

https://codereview.webrtc.org/3015473002/diff/40001/webrtc/pc/peerconnectioni...
webrtc/pc/peerconnectioninterface_unittest.cc:1244: void
ReorderMediaSections(SessionDescriptionInterface* session_description) {
nit: This could be simplified by using std::reverse. It then would be such a
small amount of code it could go in the test itself:

std::reverse(offer->description()->contents().begin(),
             offer->description()->contents().end());
std::reverse(offer->description()->transport_infos().begin(),
             offer->description()->transport_infos().end());

https://codereview.webrtc.org/3015473002/diff/40001/webrtc/pc/peerconnectioni...
webrtc/pc/peerconnectioninterface_unittest.cc:3866: // An remote offer with
different m=line order would be rejected.
nit: "A" instead of "An", and "should" instead of "would"

https://codereview.webrtc.org/3015473002/diff/40001/webrtc/pc/webrtcsession.h
File webrtc/pc/webrtcsession.h (right):

https://codereview.webrtc.org/3015473002/diff/40001/webrtc/pc/webrtcsession.h...
webrtc/pc/webrtcsession.h:65: extern const char kMlineMismatchInSubOffer[];
nit: Might as well just spell out "Subsequent"

Powered by Google App Engine
This is Rietveld 408576698