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

Unified Diff: ui/base/models/list_model_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/base/models/list_model.h ('k') | ui/base/models/tree_node_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/list_model_unittest.cc
diff --git a/ui/base/models/list_model_unittest.cc b/ui/base/models/list_model_unittest.cc
index b76fe0cc5b796036b6ab1adbeb990f3edc97d96a..7d4d998b2103ca18df4b92394e172f5146d0ede9 100644
--- a/ui/base/models/list_model_unittest.cc
+++ b/ui/base/models/list_model_unittest.cc
@@ -6,9 +6,10 @@
#include <stddef.h>
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
@@ -123,9 +124,9 @@ TEST_F(ListModelTest, RemoveAll) {
ListModel<FooItem> model;
model.AddObserver(this);
- scoped_ptr<FooItem> foo0(new FooItem(0));
- scoped_ptr<FooItem> foo1(new FooItem(1));
- scoped_ptr<FooItem> foo2(new FooItem(2));
+ std::unique_ptr<FooItem> foo0(new FooItem(0));
+ std::unique_ptr<FooItem> foo1(new FooItem(1));
+ std::unique_ptr<FooItem> foo2(new FooItem(2));
model.Add(foo0.get());
model.Add(foo1.get());
« no previous file with comments | « ui/base/models/list_model.h ('k') | ui/base/models/tree_node_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698