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

Unified Diff: webrtc/modules/desktop_capture/window_capturer_unittest.cc

Issue 1743203002: Replace scoped_ptr with unique_ptr in webrtc/modules/desktop_capture/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: More Windows reverts Created 4 years, 9 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/modules/desktop_capture/window_capturer_unittest.cc
diff --git a/webrtc/modules/desktop_capture/window_capturer_unittest.cc b/webrtc/modules/desktop_capture/window_capturer_unittest.cc
index 45f2d1afdbf7cdc2fbeeb958c4415b43ee78ec99..32b8b8f23cbba1a24910f85b274102d42a183a79 100644
--- a/webrtc/modules/desktop_capture/window_capturer_unittest.cc
+++ b/webrtc/modules/desktop_capture/window_capturer_unittest.cc
@@ -8,10 +8,11 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "webrtc/modules/desktop_capture/window_capturer.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/modules/desktop_capture/desktop_capture_options.h"
#include "webrtc/modules/desktop_capture/desktop_frame.h"
#include "webrtc/modules/desktop_capture/desktop_region.h"
@@ -33,8 +34,8 @@ class WindowCapturerTest : public testing::Test,
void OnCaptureCompleted(DesktopFrame* frame) override { frame_.reset(frame); }
protected:
- rtc::scoped_ptr<WindowCapturer> capturer_;
- rtc::scoped_ptr<DesktopFrame> frame_;
+ std::unique_ptr<WindowCapturer> capturer_;
+ std::unique_ptr<DesktopFrame> frame_;
};
// Verify that we can enumerate windows.

Powered by Google App Engine
This is Rietveld 408576698