| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_vector.h" | 6 #include "base/memory/scoped_vector.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/autofill/browser/autofill_field.h" | 8 #include "components/autofill/core/browser/autofill_field.h" |
| 9 #include "components/autofill/browser/autofill_scanner.h" | 9 #include "components/autofill/core/browser/autofill_scanner.h" |
| 10 #include "components/autofill/browser/phone_field.h" | 10 #include "components/autofill/core/browser/phone_field.h" |
| 11 #include "components/autofill/core/common/form_field_data.h" | 11 #include "components/autofill/core/common/form_field_data.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace autofill { | 14 namespace autofill { |
| 15 | 15 |
| 16 class PhoneFieldTest : public testing::Test { | 16 class PhoneFieldTest : public testing::Test { |
| 17 public: | 17 public: |
| 18 PhoneFieldTest() {} | 18 PhoneFieldTest() {} |
| 19 | 19 |
| 20 protected: | 20 protected: |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 ASSERT_TRUE(field_->ClassifyField(&field_type_map_)); | 221 ASSERT_TRUE(field_->ClassifyField(&field_type_map_)); |
| 222 ASSERT_TRUE( | 222 ASSERT_TRUE( |
| 223 field_type_map_.find(ASCIIToUTF16("country")) != field_type_map_.end()); | 223 field_type_map_.find(ASCIIToUTF16("country")) != field_type_map_.end()); |
| 224 EXPECT_EQ(PHONE_HOME_COUNTRY_CODE, field_type_map_[ASCIIToUTF16("country")]); | 224 EXPECT_EQ(PHONE_HOME_COUNTRY_CODE, field_type_map_[ASCIIToUTF16("country")]); |
| 225 ASSERT_TRUE( | 225 ASSERT_TRUE( |
| 226 field_type_map_.find(ASCIIToUTF16("phone")) != field_type_map_.end()); | 226 field_type_map_.find(ASCIIToUTF16("phone")) != field_type_map_.end()); |
| 227 EXPECT_EQ(PHONE_HOME_CITY_AND_NUMBER, field_type_map_[ASCIIToUTF16("phone")]); | 227 EXPECT_EQ(PHONE_HOME_CITY_AND_NUMBER, field_type_map_[ASCIIToUTF16("phone")]); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace autofill | 230 } // namespace autofill |
| OLD | NEW |