Version 2 "Refactoring DataContentDescription class"
(substantial changes since version 1) This CL splits the cricket::DataContentDescription class into two classes: cricket::RtpDataContentDescription (used for RTP data) and cricket::SctpDataContentDescription (used for SCTP only). SctpDataContentDescription no longer inherits from MediaContentDescriptionImpl, and no longer contains "codecs". Due to usage of internal interfaces by consumers, shimming the old DataContentDescription API is needed. A new cricket::DataContentDescription class is defined, which is a shim over RtpDataContentDescription and SctpDataContentDescription. It exposes as little functionality as possible, but supports the concerned consumer's usage Design document: https://docs.google.com/document/d/1H5LfQxJA2ikMWTQ8FZ3_GAmaXM7knfVQWiSz6ph8VQ0/edit# Version 1 reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132700 Bug: webrtc:10358 Change-Id: Icf95fb7308244d6f2ebfdb403aaffc544e358580 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133900 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27853}
This commit is contained in:

committed by
Commit Bot

parent
2390a139de
commit
14b2758726
@ -3450,8 +3450,8 @@ TEST_P(PeerConnectionIntegrationTest, SctpDataChannelToAudioVideoUpgrade) {
|
||||
}
|
||||
|
||||
static void MakeSpecCompliantSctpOffer(cricket::SessionDescription* desc) {
|
||||
cricket::DataContentDescription* dcd_offer =
|
||||
GetFirstDataContentDescription(desc);
|
||||
cricket::SctpDataContentDescription* dcd_offer =
|
||||
GetFirstSctpDataContentDescription(desc);
|
||||
ASSERT_TRUE(dcd_offer);
|
||||
dcd_offer->set_use_sctpmap(false);
|
||||
dcd_offer->set_protocol("UDP/DTLS/SCTP");
|
||||
|
Reference in New Issue
Block a user