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

Side by Side Diff: chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h

Issue 23756007: [rac] Show amex specific cvc hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring back the deprecated IconForField method, as it is still used on Mac Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
7 7
8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 29 matching lines...) Expand all
40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); 40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection));
41 MOCK_CONST_METHOD1(RequestedFieldsForSection, 41 MOCK_CONST_METHOD1(RequestedFieldsForSection,
42 const DetailInputs&(DialogSection)); 42 const DetailInputs&(DialogSection));
43 MOCK_METHOD1(ComboboxModelForAutofillType, 43 MOCK_METHOD1(ComboboxModelForAutofillType,
44 ui::ComboboxModel*(ServerFieldType)); 44 ui::ComboboxModel*(ServerFieldType));
45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); 45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection));
46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); 46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section));
47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); 47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection));
48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); 48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section));
49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); 49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section));
50
51 // TODO(groby): Remove this deprecated method after Mac starts using
52 // IconsForFields. http://crbug.com/292876
50 MOCK_CONST_METHOD2(IconForField, 53 MOCK_CONST_METHOD2(IconForField,
51 gfx::Image(ServerFieldType, const string16&)); 54 gfx::Image(ServerFieldType, const string16&));
55
56 MOCK_CONST_METHOD1(IconsForFields, FieldIconMap(const FieldValueMap&));
57 MOCK_CONST_METHOD1(FieldControlsIcons, bool(ServerFieldType));
52 MOCK_METHOD3(InputValidityMessage, 58 MOCK_METHOD3(InputValidityMessage,
53 string16(DialogSection, ServerFieldType, const string16&)); 59 string16(DialogSection, ServerFieldType, const string16&));
54 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection, 60 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection,
55 const DetailOutputMap&, 61 const DetailOutputMap&,
56 ValidationType)); 62 ValidationType));
57 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection, 63 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection,
58 const DetailInput*, 64 const DetailInput*,
59 gfx::NativeView, 65 gfx::NativeView,
60 const gfx::Rect&, 66 const gfx::Rect&,
61 const string16&, 67 const string16&,
(...skipping 15 matching lines...) Expand all
77 MOCK_METHOD0(GetWebContents, content::WebContents*()); 83 MOCK_METHOD0(GetWebContents, content::WebContents*());
78 private: 84 private:
79 DetailInputs default_inputs_; 85 DetailInputs default_inputs_;
80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. 86 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC.
81 std::vector<gfx::Range> range_; 87 std::vector<gfx::Range> range_;
82 }; 88 };
83 89
84 } // namespace autofill 90 } // namespace autofill
85 91
86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ 92 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698