| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/autofill/wallet/wallet_test_util.h" | |
| 6 | |
| 7 #include "base/utf_string_conversions.h" | |
| 8 #include "chrome/browser/autofill/wallet/instrument.h" | |
| 9 #include "chrome/browser/autofill/wallet/wallet_address.h" | |
| 10 | |
| 11 namespace autofill { | |
| 12 namespace wallet { | |
| 13 | |
| 14 scoped_ptr<Instrument> GetTestInstrument() { | |
| 15 return scoped_ptr<Instrument>(new Instrument(ASCIIToUTF16("4444444444444448"), | |
| 16 ASCIIToUTF16("123"), | |
| 17 12, | |
| 18 2012, | |
| 19 Instrument::VISA, | |
| 20 GetTestAddress().Pass())); | |
| 21 } | |
| 22 | |
| 23 scoped_ptr<Address> GetTestShippingAddress() { | |
| 24 return scoped_ptr<Address>(new Address( | |
| 25 "ship_country_name_code", | |
| 26 ASCIIToUTF16("ship_recipient_name"), | |
| 27 ASCIIToUTF16("ship_address_line_1"), | |
| 28 ASCIIToUTF16("ship_address_line_2"), | |
| 29 ASCIIToUTF16("ship_locality_name"), | |
| 30 ASCIIToUTF16("ship_admin_area_name"), | |
| 31 ASCIIToUTF16("ship_postal_code_number"), | |
| 32 ASCIIToUTF16("ship_phone_number"), | |
| 33 std::string())); | |
| 34 } | |
| 35 | |
| 36 scoped_ptr<Address> GetTestAddress() { | |
| 37 return scoped_ptr<Address>(new Address("country_name_code", | |
| 38 ASCIIToUTF16("recipient_name"), | |
| 39 ASCIIToUTF16("address_line_1"), | |
| 40 ASCIIToUTF16("address_line_2"), | |
| 41 ASCIIToUTF16("locality_name"), | |
| 42 ASCIIToUTF16("admin_area_name"), | |
| 43 ASCIIToUTF16("postal_code_number"), | |
| 44 ASCIIToUTF16("phone_number"), | |
| 45 std::string())); | |
| 46 } | |
| 47 | |
| 48 } // namespace wallet | |
| 49 } // namespace autofill | |
| OLD | NEW |