| 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 "chrome/browser/ui/autofill/data_model_wrapper.h" |
| 6 |
| 7 #include <memory> |
| 8 |
| 5 #include "base/guid.h" | 9 #include "base/guid.h" |
| 6 #include "base/memory/scoped_ptr.h" | |
| 7 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" | 12 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
| 10 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | |
| 11 #include "components/autofill/core/browser/autofill_profile.h" | 13 #include "components/autofill/core/browser/autofill_profile.h" |
| 12 #include "components/autofill/core/browser/autofill_test_utils.h" | 14 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 13 #include "components/autofill/core/browser/credit_card.h" | 15 #include "components/autofill/core/browser/credit_card.h" |
| 14 #include "components/autofill/core/browser/field_types.h" | 16 #include "components/autofill/core/browser/field_types.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 18 |
| 17 using base::ASCIIToUTF16; | 19 using base::ASCIIToUTF16; |
| 18 | 20 |
| 19 namespace autofill { | 21 namespace autofill { |
| 20 | 22 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 EXPECT_EQ(national_formatted, | 153 EXPECT_EQ(national_formatted, |
| 152 profile_wrapper.GetInfoForDisplay( | 154 profile_wrapper.GetInfoForDisplay( |
| 153 AutofillType(PHONE_HOME_WHOLE_NUMBER))); | 155 AutofillType(PHONE_HOME_WHOLE_NUMBER))); |
| 154 profile.SetRawInfo(PHONE_HOME_WHOLE_NUMBER, user_formatted); | 156 profile.SetRawInfo(PHONE_HOME_WHOLE_NUMBER, user_formatted); |
| 155 EXPECT_EQ(user_formatted, | 157 EXPECT_EQ(user_formatted, |
| 156 profile_wrapper.GetInfoForDisplay( | 158 profile_wrapper.GetInfoForDisplay( |
| 157 AutofillType(PHONE_HOME_WHOLE_NUMBER))); | 159 AutofillType(PHONE_HOME_WHOLE_NUMBER))); |
| 158 } | 160 } |
| 159 | 161 |
| 160 } // namespace autofill | 162 } // namespace autofill |
| OLD | NEW |