| 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 "components/autofill/core/browser/phone_field.h" | 5 #include "components/autofill/core/browser/phone_field.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "base/stl_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 15 #include "components/autofill/core/browser/autofill_field.h" | 16 #include "components/autofill/core/browser/autofill_field.h" |
| 16 #include "components/autofill/core/browser/autofill_scanner.h" | 17 #include "components/autofill/core/browser/autofill_scanner.h" |
| 17 #include "components/autofill/core/common/form_field_data.h" | 18 #include "components/autofill/core/common/form_field_data.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 20 |
| 20 using base::ASCIIToUTF16; | 21 using base::ASCIIToUTF16; |
| 21 | 22 |
| 22 namespace autofill { | 23 namespace autofill { |
| 23 | 24 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 AutofillScanner scanner(list_.get()); | 249 AutofillScanner scanner(list_.get()); |
| 249 field_ = Parse(&scanner); | 250 field_ = Parse(&scanner); |
| 250 ASSERT_NE(nullptr, field_.get()); | 251 ASSERT_NE(nullptr, field_.get()); |
| 251 field_->AddClassifications(&field_candidates_map_); | 252 field_->AddClassifications(&field_candidates_map_); |
| 252 CheckField("country", PHONE_HOME_COUNTRY_CODE); | 253 CheckField("country", PHONE_HOME_COUNTRY_CODE); |
| 253 CheckField("phone", PHONE_HOME_CITY_AND_NUMBER); | 254 CheckField("phone", PHONE_HOME_CITY_AND_NUMBER); |
| 254 } | 255 } |
| 255 } | 256 } |
| 256 | 257 |
| 257 } // namespace autofill | 258 } // namespace autofill |
| OLD | NEW |