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

Unified Diff: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm

Issue 1865213004: Convert //chrome/browser/ui 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
Index: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm
index c9f0a839ff779c6cdf3c9937bc0bf2ba7f5dd9b3..81961a7aa36ae08825c40f09d46a6d2608371082 100644
--- a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm
@@ -2,8 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <Carbon/Carbon.h> // For the kVK_* constants.
+
+#include <memory>
+
#include "base/json/json_reader.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/ui/autofill/save_card_bubble_controller.h"
#import "chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h"
@@ -13,8 +16,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#import "ui/events/test/cocoa_test_event_utils.h"
-#include <Carbon/Carbon.h> // For the kVK_* constants.
-
namespace autofill {
namespace {
@@ -92,7 +93,7 @@ class TestSaveCardBubbleController : public SaveCardBubbleController {
" }"
" ]"
"}";
- scoped_ptr<base::Value> value(base::JSONReader::Read(message_json));
+ std::unique_ptr<base::Value> value(base::JSONReader::Read(message_json));
ASSERT_TRUE(value);
base::DictionaryValue* dictionary = nullptr;
ASSERT_TRUE(value->GetAsDictionary(&dictionary));
@@ -133,7 +134,7 @@ class SaveCardBubbleViewTest : public CocoaProfileTest {
protected:
BrowserWindowController* browser_window_controller_;
- scoped_ptr<TestSaveCardBubbleController> bubble_controller_;
+ std::unique_ptr<TestSaveCardBubbleController> bubble_controller_;
SaveCardBubbleViewBridge* bridge_;
};

Powered by Google App Engine
This is Rietveld 408576698