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

Unified Diff: base/win/scoped_comptr_unittest.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/win/registry.h ('k') | base/win/win_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_comptr_unittest.cc
diff --git a/base/win/scoped_comptr_unittest.cc b/base/win/scoped_comptr_unittest.cc
index 23090b043664dae7f000db3ab3c43b33585b54e3..988c4690c5ef7fcb5d2287cee20316ef8abad672 100644
--- a/base/win/scoped_comptr_unittest.cc
+++ b/base/win/scoped_comptr_unittest.cc
@@ -6,7 +6,8 @@
#include <shlobj.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/win/scoped_com_initializer.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -84,7 +85,7 @@ TEST(ScopedComPtrTest, ScopedComPtrVector) {
typedef ScopedComPtr<Dummy, &dummy_iid> Ptr;
std::vector<Ptr> bleh;
- scoped_ptr<Dummy> p(new Dummy);
+ std::unique_ptr<Dummy> p(new Dummy);
{
Ptr p2(p.get());
EXPECT_EQ(p->adds, 1);
« no previous file with comments | « base/win/registry.h ('k') | base/win/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698