| 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/autofill_field.h" |
| 8 #include "chrome/browser/autofill/credit_card_field.h" | 9 #include "chrome/browser/autofill/credit_card_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 CreditCardFieldTest : public testing::Test { | 15 class CreditCardFieldTest : public testing::Test { |
| 15 public: | 16 public: |
| 16 CreditCardFieldTest() {} | 17 CreditCardFieldTest() {} |
| 17 | 18 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 field_type_map_.find(ASCIIToUTF16("month")) != field_type_map_.end()); | 401 field_type_map_.find(ASCIIToUTF16("month")) != field_type_map_.end()); |
| 401 EXPECT_EQ(CREDIT_CARD_EXP_MONTH, field_type_map_[ASCIIToUTF16("month")]); | 402 EXPECT_EQ(CREDIT_CARD_EXP_MONTH, field_type_map_[ASCIIToUTF16("month")]); |
| 402 ASSERT_TRUE( | 403 ASSERT_TRUE( |
| 403 field_type_map_.find(ASCIIToUTF16("year")) != field_type_map_.end()); | 404 field_type_map_.find(ASCIIToUTF16("year")) != field_type_map_.end()); |
| 404 EXPECT_EQ(CREDIT_CARD_EXP_4_DIGIT_YEAR, | 405 EXPECT_EQ(CREDIT_CARD_EXP_4_DIGIT_YEAR, |
| 405 field_type_map_[ASCIIToUTF16("year")]); | 406 field_type_map_[ASCIIToUTF16("year")]); |
| 406 } | 407 } |
| 407 | 408 |
| 408 } // namespace | 409 } // namespace |
| 409 | 410 |
| OLD | NEW |