| 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/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/autofill/address_field.h" | 8 #include "chrome/browser/autofill/address_field.h" |
| 9 #include "chrome/browser/autofill/autofill_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 AddressFieldTest : public testing::Test { | 15 class AddressFieldTest : public testing::Test { |
| 15 public: | 16 public: |
| 16 AddressFieldTest() {} | 17 AddressFieldTest() {} |
| 17 | 18 |
| 18 protected: | 19 protected: |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 ASSERT_NE(static_cast<AddressField*>(NULL), field_.get()); | 509 ASSERT_NE(static_cast<AddressField*>(NULL), field_.get()); |
| 509 EXPECT_EQ(kGenericAddress, field_->FindType()); | 510 EXPECT_EQ(kGenericAddress, field_->FindType()); |
| 510 EXPECT_FALSE(field_->IsFullAddress()); | 511 EXPECT_FALSE(field_->IsFullAddress()); |
| 511 ASSERT_TRUE(field_->GetFieldInfo(&field_type_map_)); | 512 ASSERT_TRUE(field_->GetFieldInfo(&field_type_map_)); |
| 512 ASSERT_TRUE( | 513 ASSERT_TRUE( |
| 513 field_type_map_.find(ASCIIToUTF16("company1")) != field_type_map_.end()); | 514 field_type_map_.find(ASCIIToUTF16("company1")) != field_type_map_.end()); |
| 514 EXPECT_EQ(COMPANY_NAME, field_type_map_[ASCIIToUTF16("company1")]); | 515 EXPECT_EQ(COMPANY_NAME, field_type_map_[ASCIIToUTF16("company1")]); |
| 515 } | 516 } |
| 516 | 517 |
| 517 } // namespace | 518 } // namespace |
| OLD | NEW |