Remove cricket::SessionDescription::Copy()

To be submitted on or after March 13, 2020 (2 weeks after PSA).

Bug: webrtc:10701
Change-Id: Ie4b6d31e1496b81714fe9f9418694fc4c2e69ecd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169443
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30784}
This commit is contained in:
Harald Alvestrand
2020-02-28 11:54:40 +01:00
committed by Commit Bot
parent 4b6ba7c207
commit b97d2fe896
2 changed files with 8 additions and 17 deletions

View File

@ -1195,8 +1195,8 @@ class WebRtcSdpTest : public ::testing::Test {
// Turns the existing reference description into a plan B description,
// with 2 audio tracks and 3 video tracks.
void MakePlanBDescription() {
audio_desc_ = audio_desc_->Copy();
video_desc_ = video_desc_->Copy();
audio_desc_ = new AudioContentDescription(*audio_desc_);
video_desc_ = new VideoContentDescription(*video_desc_);
StreamParams audio_track_2;
audio_track_2.id = kAudioTrackId2;
@ -1713,8 +1713,8 @@ class WebRtcSdpTest : public ::testing::Test {
}
void AddExtmap(bool encrypted) {
audio_desc_ = audio_desc_->Copy();
video_desc_ = video_desc_->Copy();
audio_desc_ = new AudioContentDescription(*audio_desc_);
video_desc_ = new VideoContentDescription(*video_desc_);
audio_desc_->AddRtpHeaderExtension(
RtpExtension(kExtmapUri, kExtmapId, encrypted));
video_desc_->AddRtpHeaderExtension(
@ -1794,8 +1794,8 @@ class WebRtcSdpTest : public ::testing::Test {
}
bool TestSerializeRejected(bool audio_rejected, bool video_rejected) {
audio_desc_ = audio_desc_->Copy();
video_desc_ = video_desc_->Copy();
audio_desc_ = new AudioContentDescription(*audio_desc_);
video_desc_ = new VideoContentDescription(*video_desc_);
desc_.RemoveContentByName(kAudioContentName);
desc_.RemoveContentByName(kVideoContentName);
@ -1876,8 +1876,8 @@ class WebRtcSdpTest : public ::testing::Test {
JsepSessionDescription new_jdesc(SdpType::kOffer);
EXPECT_TRUE(SdpDeserialize(new_sdp, &new_jdesc));
audio_desc_ = audio_desc_->Copy();
video_desc_ = video_desc_->Copy();
audio_desc_ = new AudioContentDescription(*audio_desc_);
video_desc_ = new VideoContentDescription(*video_desc_);
desc_.RemoveContentByName(kAudioContentName);
desc_.RemoveContentByName(kVideoContentName);
desc_.AddContent(kAudioContentName, MediaProtocolType::kRtp, audio_rejected,