Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 1798173002: Helpers in peer connection unit tests: Use scoped_ptr instead of raw pointers (Closed)

Created:
4 years, 9 months ago by kwiberg-webrtc
Modified:
4 years, 9 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Helpers 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -68 lines) Patch
M webrtc/api/peerconnection_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 31 chunks +60 lines, -62 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
kwiberg-webrtc
4 years, 9 months ago (2016-03-16 14:18:56 UTC) #3
pthatcher1
lgtm
4 years, 9 months ago (2016-03-16 15:43:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1798173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1798173002/20001
4 years, 9 months ago (2016-03-16 17:45:49 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-16 18:03:08 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 18:03:13 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2bbff996a6c9851524f63c015c4590d34c517eda
Cr-Commit-Position: refs/heads/master@{#12021}

Powered by Google App Engine
This is Rietveld 408576698