| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "components/autofill/core/browser/phone_number_i18n.h" | 11 #include "components/autofill/core/browser/phone_number_i18n.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/libphonenumber/phonenumber_api.h" | 13 #include "third_party/libphonenumber/src/phonenumber_api.h" |
| 14 | 14 |
| 15 using base::ASCIIToUTF16; | 15 using base::ASCIIToUTF16; |
| 16 using base::UTF8ToUTF16; | 16 using base::UTF8ToUTF16; |
| 17 | 17 |
| 18 namespace autofill { | 18 namespace autofill { |
| 19 | 19 |
| 20 using i18n::NormalizePhoneNumber; | 20 using i18n::NormalizePhoneNumber; |
| 21 using i18n::ParsePhoneNumber; | 21 using i18n::ParsePhoneNumber; |
| 22 using i18n::ConstructPhoneNumber; | 22 using i18n::ConstructPhoneNumber; |
| 23 using i18n::PhoneNumbersMatch; | 23 using i18n::PhoneNumbersMatch; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 "en-US")); | 253 "en-US")); |
| 254 | 254 |
| 255 // Different numbers don't match. | 255 // Different numbers don't match. |
| 256 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"), | 256 EXPECT_FALSE(PhoneNumbersMatch(ASCIIToUTF16("14158889999"), |
| 257 ASCIIToUTF16("1415888"), | 257 ASCIIToUTF16("1415888"), |
| 258 "US", | 258 "US", |
| 259 "en-US")); | 259 "en-US")); |
| 260 } | 260 } |
| 261 | 261 |
| 262 } // namespace autofill | 262 } // namespace autofill |
| OLD | NEW |