Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 127153004: Change AutofillDialogControllerImpl::input_showing_popup_ -> popup_input_type_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 virtual void UpdateSection(DialogSection section) OVERRIDE { 172 virtual void UpdateSection(DialogSection section) OVERRIDE {
173 EXPECT_GE(updates_started_, 1); 173 EXPECT_GE(updates_started_, 1);
174 } 174 }
175 175
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 const DetailInput& originating_input) 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 { 186 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE {
187 return NULL; 187 return NULL;
188 } 188 }
189 189
190 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); } 190 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); }
191 virtual bool HitTestInput(const DetailInput& input, 191 virtual bool HitTestInput(ServerFieldType type,
192 const gfx::Point& screen_point) OVERRIDE { 192 const gfx::Point& screen_point) OVERRIDE {
193 return false; 193 return false;
194 } 194 }
195 195
196 virtual bool SaveDetailsLocally() OVERRIDE { 196 virtual bool SaveDetailsLocally() OVERRIDE {
197 return save_details_locally_checked_; 197 return save_details_locally_checked_;
198 } 198 }
199 199
200 virtual const content::NavigationController* ShowSignIn() OVERRIDE { 200 virtual const content::NavigationController* ShowSignIn() OVERRIDE {
201 return NULL; 201 return NULL;
(...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 2792 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
2793 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) { 2793 for (size_t i = 0; i < arraysize(kSupportedCardIdrs); ++i) {
2794 SCOPED_TRACE(base::IntToString(i)); 2794 SCOPED_TRACE(base::IntToString(i));
2795 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]); 2795 gfx::Image supported_card_icon = rb.GetImageNamed(kSupportedCardIdrs[i]);
2796 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width()); 2796 EXPECT_GE(placeholder_icon.Width(), supported_card_icon.Width());
2797 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height()); 2797 EXPECT_GE(placeholder_icon.Height(), supported_card_icon.Height());
2798 } 2798 }
2799 } 2799 }
2800 2800
2801 } // namespace autofill 2801 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698