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

Unified Diff: webrtc/media/base/videocapturer_unittest.cc

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
« no previous file with comments | « webrtc/media/base/videobroadcaster.h ('k') | webrtc/media/engine/webrtcvoe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videocapturer_unittest.cc
diff --git a/webrtc/media/base/videocapturer_unittest.cc b/webrtc/media/base/videocapturer_unittest.cc
index bd145e33ea1c288437876e41c09bb0d3e882874a..6a3ebb0ce82a4a0a71e86e35e2ea7a463658e870 100644
--- a/webrtc/media/base/videocapturer_unittest.cc
+++ b/webrtc/media/base/videocapturer_unittest.cc
@@ -9,6 +9,8 @@
*/
#include <stdio.h>
+
+#include <memory>
#include <vector>
#include "webrtc/base/gunit.h"
@@ -40,7 +42,7 @@ class VideoCapturerTest
protected:
void InitCapturer(bool is_screencast) {
- capturer_ = rtc::scoped_ptr<FakeVideoCapturer>(
+ capturer_ = std::unique_ptr<FakeVideoCapturer>(
new FakeVideoCapturer(is_screencast));
capturer_->SignalStateChange.connect(this,
&VideoCapturerTest::OnStateChange);
@@ -56,7 +58,7 @@ class VideoCapturerTest
cricket::CaptureState capture_state() { return capture_state_; }
int num_state_changes() { return num_state_changes_; }
- rtc::scoped_ptr<cricket::FakeVideoCapturer> capturer_;
+ std::unique_ptr<cricket::FakeVideoCapturer> capturer_;
cricket::CaptureState capture_state_;
int num_state_changes_;
cricket::FakeVideoRenderer renderer_;
« no previous file with comments | « webrtc/media/base/videobroadcaster.h ('k') | webrtc/media/engine/webrtcvoe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698