OLD | NEW |
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 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
9 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 9 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
10 #include "components/autofill/content/browser/wallet/wallet_items.h" | 10 #include "components/autofill/content/browser/wallet/wallet_items.h" |
11 #include "components/autofill/content/browser/wallet/wallet_test_util.h" | 11 #include "components/autofill/content/browser/wallet/wallet_test_util.h" |
12 #include "components/autofill/core/browser/autofill_common_test.h" | |
13 #include "components/autofill/core/browser/autofill_profile.h" | 12 #include "components/autofill/core/browser/autofill_profile.h" |
| 13 #include "components/autofill/core/browser/autofill_test_utils.h" |
14 #include "components/autofill/core/browser/credit_card.h" | 14 #include "components/autofill/core/browser/credit_card.h" |
15 #include "components/autofill/core/browser/field_types.h" | 15 #include "components/autofill/core/browser/field_types.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace autofill { | 18 namespace autofill { |
19 | 19 |
20 TEST(AutofillCreditCardWrapperTest, GetInfoCreditCardExpMonth) { | 20 TEST(AutofillCreditCardWrapperTest, GetInfoCreditCardExpMonth) { |
21 CreditCard card; | 21 CreditCard card; |
22 MonthComboboxModel model; | 22 MonthComboboxModel model; |
23 for (int month = 1; month <= 12; ++month) { | 23 for (int month = 1; month <= 12; ++month) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 profile_wrapper.GetInfoForDisplay( | 162 profile_wrapper.GetInfoForDisplay( |
163 AutofillType(PHONE_HOME_WHOLE_NUMBER))); | 163 AutofillType(PHONE_HOME_WHOLE_NUMBER))); |
164 profile.SetRawInfo(PHONE_HOME_WHOLE_NUMBER, user_formatted); | 164 profile.SetRawInfo(PHONE_HOME_WHOLE_NUMBER, user_formatted); |
165 EXPECT_EQ(user_formatted, | 165 EXPECT_EQ(user_formatted, |
166 profile_wrapper.GetInfoForDisplay( | 166 profile_wrapper.GetInfoForDisplay( |
167 AutofillType(PHONE_HOME_WHOLE_NUMBER))); | 167 AutofillType(PHONE_HOME_WHOLE_NUMBER))); |
168 | 168 |
169 } | 169 } |
170 | 170 |
171 } // namespace autofill | 171 } // namespace autofill |
OLD | NEW |