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

Unified Diff: webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm
diff --git a/webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm b/webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm
index 2c99cfe61e64005773100fc1de547da45dc08a94..3413dfc039a6a9bb63c2fca544d03c8a644e0ce4 100644
--- a/webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm
+++ b/webrtc/sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm
@@ -10,6 +10,8 @@
#import <Foundation/Foundation.h>
+#include <memory>
+
#include "webrtc/base/gunit.h"
#import "NSString+StdString.h"
@@ -29,7 +31,7 @@
RTCMediaConstraints *constraints = [[RTCMediaConstraints alloc]
initWithMandatoryConstraints:mandatory
optionalConstraints:optional];
- rtc::scoped_ptr<webrtc::MediaConstraints> nativeConstraints =
+ std::unique_ptr<webrtc::MediaConstraints> nativeConstraints =
[constraints nativeConstraints];
webrtc::MediaConstraintsInterface::Constraints nativeMandatory =
« no previous file with comments | « webrtc/sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm ('k') | webrtc/system_wrappers/include/aligned_malloc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698