Code cleanup: Make JsepSessionDescription::Initialize take std::unique_ptr

Bug: none
Change-Id: I5e03ff6a6f16bd2e67fa4830e218b510b702d1d4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132321
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27577}
This commit is contained in:
Harald Alvestrand
2019-04-12 07:01:29 +02:00
committed by Commit Bot
parent 8ad91372cf
commit 4d7160e41d
11 changed files with 79 additions and 63 deletions

View File

@ -3175,8 +3175,7 @@ TEST_P(PeerConnectionInterfaceTest,
std::unique_ptr<SessionDescriptionInterface> modified_offer =
webrtc::CreateSessionDescription(
webrtc::SdpType::kOffer, offer->session_id(),
offer->session_version(),
absl::WrapUnique(offer->description()->Copy()));
offer->session_version(), offer->description()->Clone());
EXPECT_TRUE(DoSetLocalDescription(std::move(offer)));
auto senders = pc_->GetSenders();