| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
| 6 #include "base/scoped_vector.h" | 6 #include "base/scoped_vector.h" |
| 7 #include "base/utf_string_conversions.h" |
| 7 #include "chrome/browser/autofill/autofill_field.h" | 8 #include "chrome/browser/autofill/autofill_field.h" |
| 8 #include "chrome/browser/autofill/name_field.h" | 9 #include "chrome/browser/autofill/name_field.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "webkit/glue/form_field.h" | 11 #include "webkit/glue/form_field.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 class NameFieldTest : public testing::Test { | 15 class NameFieldTest : public testing::Test { |
| 15 public: | 16 public: |
| 16 NameFieldTest() {} | 17 NameFieldTest() {} |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]); | 190 EXPECT_EQ(NAME_FIRST, field_type_map_[ASCIIToUTF16("name1")]); |
| 190 ASSERT_TRUE( | 191 ASSERT_TRUE( |
| 191 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end()); | 192 field_type_map_.find(ASCIIToUTF16("name2")) != field_type_map_.end()); |
| 192 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]); | 193 EXPECT_EQ(NAME_MIDDLE, field_type_map_[ASCIIToUTF16("name2")]); |
| 193 ASSERT_TRUE( | 194 ASSERT_TRUE( |
| 194 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end()); | 195 field_type_map_.find(ASCIIToUTF16("name3")) != field_type_map_.end()); |
| 195 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]); | 196 EXPECT_EQ(NAME_LAST, field_type_map_[ASCIIToUTF16("name3")]); |
| 196 } | 197 } |
| 197 | 198 |
| 198 } // namespace | 199 } // namespace |
| OLD | NEW |