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

Unified Diff: webrtc/base/windowpicker_unittest.cc

Issue 1920043002: Replace scoped_ptr with unique_ptr in webrtc/base/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased 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/base/win32regkey.cc ('k') | webrtc/base/x11windowpicker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/windowpicker_unittest.cc
diff --git a/webrtc/base/windowpicker_unittest.cc b/webrtc/base/windowpicker_unittest.cc
index edd01bc0b2c6afd499ff8fcce9475b58acef5475..a1258327083de40771a7d4e8e7aa9fb8afc2dd2e 100644
--- a/webrtc/base/windowpicker_unittest.cc
+++ b/webrtc/base/windowpicker_unittest.cc
@@ -7,6 +7,8 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "webrtc/base/gunit.h"
#include "webrtc/base/testutils.h"
#include "webrtc/base/window.h"
@@ -25,7 +27,7 @@ TEST(WindowPickerTest, GetWindowList) {
LOG(LS_INFO) << "skipping test: window capturing is not supported with "
<< "current configuration.";
}
- rtc::scoped_ptr<rtc::WindowPicker> picker(
+ std::unique_ptr<rtc::WindowPicker> picker(
rtc::WindowPickerFactory::CreateWindowPicker());
EXPECT_TRUE(picker->Init());
rtc::WindowDescriptionList descriptions;
@@ -40,7 +42,7 @@ TEST(WindowPickerTest, DISABLE_ON_MAC(GetDesktopList)) {
LOG(LS_INFO) << "skipping test: window capturing is not supported with "
<< "current configuration.";
}
- rtc::scoped_ptr<rtc::WindowPicker> picker(
+ std::unique_ptr<rtc::WindowPicker> picker(
rtc::WindowPickerFactory::CreateWindowPicker());
EXPECT_TRUE(picker->Init());
rtc::DesktopDescriptionList descriptions;
« no previous file with comments | « webrtc/base/win32regkey.cc ('k') | webrtc/base/x11windowpicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698