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

Unified Diff: extensions/common/extension_set_unittest.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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 | « extensions/common/extension_messages.cc ('k') | extensions/common/extensions_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_set_unittest.cc
diff --git a/extensions/common/extension_set_unittest.cc b/extensions/common/extension_set_unittest.cc
index 8674cc7b550e550d15b293b8bd736738289f2bb1..967fadbe23e30c848f427d9ce2c5d5240a8b134e 100644
--- a/extensions/common/extension_set_unittest.cc
+++ b/extensions/common/extension_set_unittest.cc
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "extensions/common/extension_set.h"
+
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "build/build_config.h"
#include "extensions/common/extension.h"
-#include "extensions/common/extension_set.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
@@ -131,7 +133,7 @@ TEST(ExtensionSetTest, ExtensionSet) {
CreateTestExtension("e", std::string(), std::string()));
ASSERT_TRUE(ext5.get() && ext6.get());
- scoped_ptr<ExtensionSet> to_add(new ExtensionSet());
+ std::unique_ptr<ExtensionSet> to_add(new ExtensionSet());
// |ext3| is already in |extensions|, should not affect size.
EXPECT_TRUE(to_add->Insert(ext3));
EXPECT_TRUE(to_add->Insert(ext5));
« no previous file with comments | « extensions/common/extension_messages.cc ('k') | extensions/common/extensions_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698