OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 5 #include <map> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 // supported credit card issuers. | 1510 // supported credit card issuers. |
1511 const int kSupportedCardIdrs[] = { | 1511 const int kSupportedCardIdrs[] = { |
1512 IDR_AUTOFILL_CC_AMEX, | 1512 IDR_AUTOFILL_CC_AMEX, |
1513 IDR_AUTOFILL_CC_DISCOVER, | 1513 IDR_AUTOFILL_CC_DISCOVER, |
1514 IDR_AUTOFILL_CC_GENERIC, | 1514 IDR_AUTOFILL_CC_GENERIC, |
1515 IDR_AUTOFILL_CC_MASTERCARD, | 1515 IDR_AUTOFILL_CC_MASTERCARD, |
1516 IDR_AUTOFILL_CC_VISA, | 1516 IDR_AUTOFILL_CC_VISA, |
1517 }; | 1517 }; |
1518 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 1518 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
1519 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) { | 1519 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) { |
1520 SCOPED_TRACE(base::IntToString(i)); | 1520 SCOPED_TRACE(base::SizeTToString(i)); |
1521 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]); | 1521 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]); |
1522 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width()); | 1522 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width()); |
1523 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height()); | 1523 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height()); |
1524 } | 1524 } |
1525 } | 1525 } |
1526 | 1526 |
1527 TEST_F(AutofillDialogControllerTest, CountryChangeUpdatesSection) { | 1527 TEST_F(AutofillDialogControllerTest, CountryChangeUpdatesSection) { |
1528 TestAutofillDialogView* view = controller()->GetView(); | 1528 TestAutofillDialogView* view = controller()->GetView(); |
1529 view->ClearSectionUpdates(); | 1529 view->ClearSectionUpdates(); |
1530 | 1530 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1823 SECTION_SHIPPING, | 1823 SECTION_SHIPPING, |
1824 NAME_FULL, | 1824 NAME_FULL, |
1825 gfx::NativeView(), | 1825 gfx::NativeView(), |
1826 gfx::Rect(), | 1826 gfx::Rect(), |
1827 profile.GetRawInfo(NAME_FULL).substr(0, 1), | 1827 profile.GetRawInfo(NAME_FULL).substr(0, 1), |
1828 true); | 1828 true); |
1829 EXPECT_EQ(NAME_FULL, controller()->popup_input_type()); | 1829 EXPECT_EQ(NAME_FULL, controller()->popup_input_type()); |
1830 } | 1830 } |
1831 | 1831 |
1832 } // namespace autofill | 1832 } // namespace autofill |
OLD | NEW |