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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_test_util.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
7 7
8 #include <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 namespace wallet { 14 namespace wallet {
15 15
16 class Address; 16 class Address;
17 class FullWallet; 17 class FullWallet;
18 18
19 std::vector<base::string16> StreetAddress(const std::string& line1, 19 std::vector<base::string16> StreetAddress(const std::string& line1,
20 const std::string& line2); 20 const std::string& line2);
21 scoped_ptr<Address> GetTestAddress(); 21 std::unique_ptr<Address> GetTestAddress();
22 scoped_ptr<Address> GetTestMinimalAddress(); 22 std::unique_ptr<Address> GetTestMinimalAddress();
23 scoped_ptr<FullWallet> GetTestFullWallet(); 23 std::unique_ptr<FullWallet> GetTestFullWallet();
24 scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly(); 24 std::unique_ptr<FullWallet> GetTestFullWalletInstrumentOnly();
25 scoped_ptr<Address> GetTestSaveableAddress(); 25 std::unique_ptr<Address> GetTestSaveableAddress();
26 scoped_ptr<Address> GetTestShippingAddress(); 26 std::unique_ptr<Address> GetTestShippingAddress();
27 scoped_ptr<Address> GetTestNonDefaultShippingAddress(); 27 std::unique_ptr<Address> GetTestNonDefaultShippingAddress();
28 28
29 } // namespace wallet 29 } // namespace wallet
30 } // namespace autofill 30 } // namespace autofill
31 31
32 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_ 32 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698