| 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 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 virtual void UpdateErrorBubble() OVERRIDE { | 176 virtual void UpdateErrorBubble() OVERRIDE { |
| 177 EXPECT_GE(updates_started_, 1); | 177 EXPECT_GE(updates_started_, 1); |
| 178 } | 178 } |
| 179 | 179 |
| 180 virtual void FillSection(DialogSection section, | 180 virtual void FillSection(DialogSection section, |
| 181 ServerFieldType originating_type) OVERRIDE {} | 181 ServerFieldType originating_type) OVERRIDE {} |
| 182 virtual void GetUserInput(DialogSection section, FieldValueMap* output) | 182 virtual void GetUserInput(DialogSection section, FieldValueMap* output) |
| 183 OVERRIDE { | 183 OVERRIDE { |
| 184 *output = outputs_[section]; | 184 *output = outputs_[section]; |
| 185 } | 185 } |
| 186 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE { | |
| 187 return NULL; | |
| 188 } | |
| 189 | 186 |
| 190 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); } | 187 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); } |
| 191 virtual bool HitTestInput(ServerFieldType type, | 188 virtual bool HitTestInput(ServerFieldType type, |
| 192 const gfx::Point& screen_point) OVERRIDE { | 189 const gfx::Point& screen_point) OVERRIDE { |
| 193 return false; | 190 return false; |
| 194 } | 191 } |
| 195 | 192 |
| 196 virtual bool SaveDetailsLocally() OVERRIDE { | 193 virtual bool SaveDetailsLocally() OVERRIDE { |
| 197 return save_details_locally_checked_; | 194 return save_details_locally_checked_; |
| 198 } | 195 } |
| (...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2917 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 2914 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 2918 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) { | 2915 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) { |
| 2919 SCOPED_TRACE(base::IntToString(i)); | 2916 SCOPED_TRACE(base::IntToString(i)); |
| 2920 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]); | 2917 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]); |
| 2921 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width()); | 2918 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width()); |
| 2922 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height()); | 2919 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height()); |
| 2923 } | 2920 } |
| 2924 } | 2921 } |
| 2925 | 2922 |
| 2926 } // namespace autofill | 2923 } // namespace autofill |
| OLD | NEW |