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

Unified Diff: webrtc/modules/desktop_capture/differ_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/differ_unittest.cc
diff --git a/webrtc/modules/desktop_capture/differ_unittest.cc b/webrtc/modules/desktop_capture/differ_unittest.cc
index 642cb3744802b68085b22009b207c703e6e1e7c5..df4e6a45c0ab05288c34d2ce98ff37ab5f9301d8 100644
--- a/webrtc/modules/desktop_capture/differ_unittest.cc
+++ b/webrtc/modules/desktop_capture/differ_unittest.cc
@@ -8,8 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "testing/gmock/include/gmock/gmock.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/modules/desktop_capture/differ.h"
#include "webrtc/modules/desktop_capture/differ_block.h"
@@ -188,7 +189,7 @@ class DifferTest : public testing::Test {
}
// The differ class we're testing.
- rtc::scoped_ptr<Differ> differ_;
+ std::unique_ptr<Differ> differ_;
// Screen/buffer info.
int width_;
@@ -200,8 +201,8 @@ class DifferTest : public testing::Test {
int buffer_size_;
// Previous and current screen buffers.
- rtc::scoped_ptr<uint8_t[]> prev_;
- rtc::scoped_ptr<uint8_t[]> curr_;
+ std::unique_ptr<uint8_t[]> prev_;
+ std::unique_ptr<uint8_t[]> curr_;
private:
RTC_DISALLOW_COPY_AND_ASSIGN(DifferTest);

Powered by Google App Engine
This is Rietveld 408576698