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

Unified Diff: chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc
index bb498455775147f944d863e1ac2362d5c3fb9b6f..1600a20ee98bd3f87e79cff75cc401cf3fe0608e 100644
--- a/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc
+++ b/chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc
@@ -74,7 +74,7 @@ TEST_F(NativeMessagingHostManifestTest, LoadValid) {
ASSERT_TRUE(WriteManifest(kTestHostName, kTestHostPath, kTestOrigin));
std::string error_message;
- scoped_ptr<NativeMessagingHostManifest> manifest =
+ std::unique_ptr<NativeMessagingHostManifest> manifest =
NativeMessagingHostManifest::Load(manifest_path_, &error_message);
ASSERT_TRUE(manifest) << "Failed to load manifest: " << error_message;
EXPECT_TRUE(error_message.empty());
@@ -95,7 +95,7 @@ TEST_F(NativeMessagingHostManifestTest, InvalidName) {
kTestHostPath, kTestOrigin));
std::string error_message;
- scoped_ptr<NativeMessagingHostManifest> manifest =
+ std::unique_ptr<NativeMessagingHostManifest> manifest =
NativeMessagingHostManifest::Load(manifest_path_, &error_message);
ASSERT_FALSE(manifest);
EXPECT_FALSE(error_message.empty());
@@ -107,7 +107,7 @@ TEST_F(NativeMessagingHostManifestTest, MatchAllOrigin) {
"chrome-extension://*/"));
std::string error_message;
- scoped_ptr<NativeMessagingHostManifest> manifest =
+ std::unique_ptr<NativeMessagingHostManifest> manifest =
NativeMessagingHostManifest::Load(manifest_path_, &error_message);
ASSERT_FALSE(manifest);
EXPECT_FALSE(error_message.empty());

Powered by Google App Engine
This is Rietveld 408576698