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

Unified Diff: extensions/common/value_builder_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/value_builder.cc ('k') | extensions/common/value_counter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/value_builder_unittest.cc
diff --git a/extensions/common/value_builder_unittest.cc b/extensions/common/value_builder_unittest.cc
index 1f1c14e1abdaea74d97f13bab3da7b206208ae4a..79267f0ccd379076336ace79e274b0f912d76e8f 100644
--- a/extensions/common/value_builder_unittest.cc
+++ b/extensions/common/value_builder_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "extensions/common/value_builder.h"
+
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "extensions/common/value_builder.h"
#include "testing/gtest/include/gtest/gtest.h"
using ValueBuilderTest = testing::Test;
@@ -17,7 +18,7 @@ TEST(ValueBuilderTest, Basic) {
ListBuilder permission_list;
permission_list.Append("tabs").Append("history");
- scoped_ptr<base::DictionaryValue> settings(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> settings(new base::DictionaryValue);
ASSERT_FALSE(settings->GetList("permissions", nullptr));
settings =
« no previous file with comments | « extensions/common/value_builder.cc ('k') | extensions/common/value_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698