| 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"),
|
|
|