DescriptionHelpers in peer connection unit tests: Use scoped_ptr instead of raw pointers
A handful of helpers were using SessionDescriptionInterface** output
arguments to return ownership. Chenge them to either use a
rtc::scoped_ptr<SessionDescriptionInterface>* output parameter, or to
simply return a rtc::scoped_ptr<SessionDescriptionInterface>. Not
using raw pointers for things you own is good in general; it will also
be very convenient when scoped_ptr is gone, since unique_ptr doesn't
have .accept() or .use() methods.
BUG=webrtc:5520
Committed: https://crrev.com/2bbff996a6c9851524f63c015c4590d34c517eda
Cr-Commit-Position: refs/heads/master@{#12021}
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 9 (4 generated)
|