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

Unified Diff: chrome/common/extensions/command_unittest.cc

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
Index: chrome/common/extensions/command_unittest.cc
diff --git a/chrome/common/extensions/command_unittest.cc b/chrome/common/extensions/command_unittest.cc
index ef3df6ff34b42302a130c89590b1f0bec88b6074..d5e489aa81942f2cb5c0179f6cd88c36b7e49ecd 100644
--- a/chrome/common/extensions/command_unittest.cc
+++ b/chrome/common/extensions/command_unittest.cc
@@ -6,8 +6,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -40,7 +41,7 @@ void CheckParse(ConstCommandsTestData data,
base::IntToString(i));
extensions::Command command;
- scoped_ptr<base::DictionaryValue> input(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> input(new base::DictionaryValue);
base::string16 error;
// First, test the parse of a string suggested_key value.
@@ -205,7 +206,7 @@ TEST(CommandTest, ExtensionCommandParsingFallback) {
// Test that platform specific keys are honored on each platform, despite
// fallback being given.
- scoped_ptr<base::DictionaryValue> input(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> input(new base::DictionaryValue);
base::DictionaryValue* key_dict = new base::DictionaryValue();
key_dict->SetString("default", "Ctrl+Shift+D");
key_dict->SetString("windows", "Ctrl+Shift+W");
« no previous file with comments | « chrome/common/extensions/chrome_manifest_url_handlers.cc ('k') | chrome/common/extensions/extension_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698