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

Side by Side Diff: chrome/browser/autofill/wallet/wallet_test_util.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_test_util.h ('k') | chrome/browser/automation/automation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698