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

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

Issue 21692002: Rename AutofillDialogController to AutofillDialogViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
7
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace autofill {
12
13 class MockAutofillDialogController : public AutofillDialogController {
14 public:
15 MockAutofillDialogController();
16 virtual ~MockAutofillDialogController();
17
18 MOCK_CONST_METHOD0(DialogTitle, string16());
19 MOCK_CONST_METHOD0(AccountChooserText, string16());
20 MOCK_CONST_METHOD0(SignInLinkText, string16());
21 MOCK_CONST_METHOD0(EditSuggestionText, string16());
22 MOCK_CONST_METHOD0(CancelButtonText, string16());
23 MOCK_CONST_METHOD0(ConfirmButtonText, string16());
24 MOCK_CONST_METHOD0(SaveLocallyText, string16());
25 MOCK_METHOD0(LegalDocumentsText, string16());
26 MOCK_CONST_METHOD0(SignedInState, DialogSignedInState());
27 MOCK_CONST_METHOD0(ShouldShowSpinner, bool());
28 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool());
29 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*());
30 MOCK_METHOD0(AccountChooserImage, gfx::Image());
31 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool());
32 MOCK_CONST_METHOD0(GetDialogButtons, int());
33 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool());
34 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button));
35 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState());
36 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&());
37 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection));
38 MOCK_CONST_METHOD1(RequestedFieldsForSection,
39 const DetailInputs&(DialogSection));
40 MOCK_METHOD1(ComboboxModelForAutofillType,
41 ui::ComboboxModel*(AutofillFieldType));
42 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection));
43 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section));
44 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection));
45 MOCK_METHOD1(EditClickedForSection, void(DialogSection section));
46 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section));
47 MOCK_CONST_METHOD2(IconForField,
48 gfx::Image(AutofillFieldType, const string16&));
49 MOCK_METHOD3(InputValidityMessage,
50 string16(DialogSection, AutofillFieldType, const string16&));
51 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection,
52 const DetailOutputMap&,
53 ValidationType));
54 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection,
55 const DetailInput*,
56 gfx::NativeView,
57 const gfx::Rect&,
58 const string16&,
59 bool was_edit));
60 MOCK_METHOD1(HandleKeyPressEventInInput,
61 bool(const content::NativeWebKeyboardEvent& event));
62 MOCK_METHOD0(FocusMoved, void());
63 MOCK_CONST_METHOD0(SplashPageImage, gfx::Image());
64 MOCK_METHOD0(ViewClosed, void());
65 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>());
66 MOCK_CONST_METHOD0(CurrentAutocheckoutSteps,
67 std::vector<DialogAutocheckoutStep>());
68 MOCK_METHOD0(SignInLinkClicked, void());
69 MOCK_METHOD2(NotificationCheckboxStateChanged,
70 void(DialogNotification::Type, bool));
71 MOCK_METHOD1(LegalDocumentLinkClicked, void(const ui::Range&));
72 MOCK_METHOD0(OverlayButtonPressed, void());
73 MOCK_METHOD0(OnCancel, bool());
74 MOCK_METHOD0(OnAccept, bool());
75 MOCK_METHOD0(profile, Profile*());
76 MOCK_METHOD0(web_contents, content::WebContents*());
77 private:
78 DetailInputs default_inputs_;
79 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC.
80 std::vector<ui::Range> range_;
81 };
82
83 } // namespace autofill
84
85 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698