DescriptionRefactoring some tests in peerconnectioninterface_unittest.cc.
Some tests were passing in a local description created from hard-coded
SDP strings, which won't work in the future (since some attributes such
as the fingerprint and ICE ufrag/pwd are non-modifiable). These tests
now do the typical approach of calling CreateOffer and modifying the
result if necessary.
Also added some non-const versions of the SessionDescription accessor
helper functions, since that makes it much easier to modify a
SessionDescription. Previous alternatives were re-implementing the
helper methods from scratch, or converting the description to SDP,
modifying it, and converting it back.
R=tommi@webrtc.org
Committed: https://crrev.com/dc4eb8c5b3c996389046694d3b4fdb2ab315376f
Cr-Commit-Position: refs/heads/master@{#12704}
Patch Set 1 #
Total comments: 3
Messages
Total messages: 16 (6 generated)
|