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

Unified Diff: components/autofill/content/browser/wallet/full_wallet_unittest.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/content/browser/wallet/full_wallet_unittest.cc
diff --git a/components/autofill/content/browser/wallet/full_wallet_unittest.cc b/components/autofill/content/browser/wallet/full_wallet_unittest.cc
index 3f00fb406aacf0e60bf3d24386f1c0cfd2da552c..2fc5cfff5ebec2032435f2272cfa8bcf7a7c0eac 100644
--- a/components/autofill/content/browser/wallet/full_wallet_unittest.cc
+++ b/components/autofill/content/browser/wallet/full_wallet_unittest.cc
@@ -2,15 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/autofill/content/browser/wallet/full_wallet.h"
+
#include <stdint.h>
+#include <memory>
+
#include "base/json/json_reader.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "components/autofill/content/browser/wallet/full_wallet.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
#include "components/autofill/core/browser/autofill_type.h"
#include "components/autofill/core/browser/field_types.h"
@@ -79,11 +81,10 @@ TEST_F(FullWalletTest, GetCreditCardInfo) {
}
TEST_F(FullWalletTest, CreateFullWalletFromClearTextData) {
- scoped_ptr<FullWallet> full_wallet =
- FullWallet::CreateFullWalletFromClearText(
- 11, 2012,
- "5555555555554444", "123",
- GetTestAddress(), GetTestShippingAddress());
+ std::unique_ptr<FullWallet> full_wallet =
+ FullWallet::CreateFullWalletFromClearText(11, 2012, "5555555555554444",
+ "123", GetTestAddress(),
+ GetTestShippingAddress());
EXPECT_EQ(ASCIIToUTF16("5555555555554444"),
full_wallet->GetInfo("", AutofillType(CREDIT_CARD_NUMBER)));
EXPECT_EQ(ASCIIToUTF16("MasterCard"),

Powered by Google App Engine
This is Rietveld 408576698