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

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

Issue 135933003: rAc: split TestableAutofillDialogView implementation into its own class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with mac nits fixed Created 6 years, 10 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 virtual void UpdateErrorBubble() OVERRIDE { 179 virtual void UpdateErrorBubble() OVERRIDE {
180 EXPECT_GE(updates_started_, 1); 180 EXPECT_GE(updates_started_, 1);
181 } 181 }
182 182
183 virtual void FillSection(DialogSection section, 183 virtual void FillSection(DialogSection section,
184 ServerFieldType originating_type) OVERRIDE {} 184 ServerFieldType originating_type) OVERRIDE {}
185 virtual void GetUserInput(DialogSection section, FieldValueMap* output) 185 virtual void GetUserInput(DialogSection section, FieldValueMap* output)
186 OVERRIDE { 186 OVERRIDE {
187 *output = outputs_[section]; 187 *output = outputs_[section];
188 } 188 }
189 virtual TestableAutofillDialogView* GetTestableView() OVERRIDE {
190 return NULL;
191 }
192 189
193 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); } 190 virtual base::string16 GetCvc() OVERRIDE { return base::string16(); }
194 virtual bool HitTestInput(ServerFieldType type, 191 virtual bool HitTestInput(ServerFieldType type,
195 const gfx::Point& screen_point) OVERRIDE { 192 const gfx::Point& screen_point) OVERRIDE {
196 return false; 193 return false;
197 } 194 }
198 195
199 virtual bool SaveDetailsLocally() OVERRIDE { 196 virtual bool SaveDetailsLocally() OVERRIDE {
200 return save_details_locally_checked_; 197 return save_details_locally_checked_;
201 } 198 }
(...skipping 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 gfx::NativeView(), 2972 gfx::NativeView(),
2976 gfx::Rect(), 2973 gfx::Rect(),
2977 ASCIIToUTF16("Italy"), 2974 ASCIIToUTF16("Italy"),
2978 true); 2975 true);
2979 updates = view->section_updates(); 2976 updates = view->section_updates();
2980 EXPECT_EQ(1U, updates[SECTION_BILLING]); 2977 EXPECT_EQ(1U, updates[SECTION_BILLING]);
2981 EXPECT_EQ(1U, updates.size()); 2978 EXPECT_EQ(1U, updates.size());
2982 } 2979 }
2983 2980
2984 } // namespace autofill 2981 } // 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