OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/autofill/autofill_common_unittest.h" | 5 #include "chrome/browser/autofill/autofill_common_unittest.h" |
6 | 6 |
| 7 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/autofill/autofill_profile.h" | 8 #include "chrome/browser/autofill/autofill_profile.h" |
8 #include "chrome/browser/autofill/credit_card.h" | 9 #include "chrome/browser/autofill/credit_card.h" |
9 #include "webkit/glue/form_field.h" | 10 #include "webkit/glue/form_field.h" |
10 | 11 |
11 namespace autofill_unittest { | 12 namespace autofill_unittest { |
12 | 13 |
13 void CreateTestFormField(const char* label, | 14 void CreateTestFormField(const char* label, |
14 const char* name, | 15 const char* name, |
15 const char* value, | 16 const char* value, |
16 const char* type, | 17 const char* type, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 check_and_set(credit_card, CREDIT_CARD_NAME, name_on_card); | 56 check_and_set(credit_card, CREDIT_CARD_NAME, name_on_card); |
56 check_and_set(credit_card, CREDIT_CARD_TYPE, type); | 57 check_and_set(credit_card, CREDIT_CARD_TYPE, type); |
57 check_and_set(credit_card, CREDIT_CARD_NUMBER, card_number); | 58 check_and_set(credit_card, CREDIT_CARD_NUMBER, card_number); |
58 check_and_set(credit_card, CREDIT_CARD_EXP_MONTH, expiration_month); | 59 check_and_set(credit_card, CREDIT_CARD_EXP_MONTH, expiration_month); |
59 check_and_set(credit_card, CREDIT_CARD_EXP_4_DIGIT_YEAR, expiration_year); | 60 check_and_set(credit_card, CREDIT_CARD_EXP_4_DIGIT_YEAR, expiration_year); |
60 if (billing_address) | 61 if (billing_address) |
61 credit_card->set_billing_address(ASCIIToUTF16(billing_address)); | 62 credit_card->set_billing_address(ASCIIToUTF16(billing_address)); |
62 } | 63 } |
63 | 64 |
64 } // namespace autofill_unittest | 65 } // namespace autofill_unittest |
OLD | NEW |