| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 MOCK_CONST_METHOD0(SaveLocallyTooltip, string16()); | 25 MOCK_CONST_METHOD0(SaveLocallyTooltip, string16()); |
| 26 MOCK_METHOD0(LegalDocumentsText, string16()); | 26 MOCK_METHOD0(LegalDocumentsText, string16()); |
| 27 MOCK_CONST_METHOD0(SignedInState, DialogSignedInState()); | 27 MOCK_CONST_METHOD0(SignedInState, DialogSignedInState()); |
| 28 MOCK_CONST_METHOD0(ShouldShowSpinner, bool()); | 28 MOCK_CONST_METHOD0(ShouldShowSpinner, bool()); |
| 29 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool()); | 29 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool()); |
| 30 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); | 30 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); |
| 31 MOCK_METHOD0(AccountChooserImage, gfx::Image()); | 31 MOCK_METHOD0(AccountChooserImage, gfx::Image()); |
| 32 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool()); | 32 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool()); |
| 33 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); | 33 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); |
| 34 MOCK_CONST_METHOD0(GetDialogButtons, int()); | 34 MOCK_CONST_METHOD0(GetDialogButtons, int()); |
| 35 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool()); | |
| 36 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); | 35 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); |
| 37 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); | 36 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); |
| 38 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); | 37 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); |
| 39 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); | 38 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); |
| 40 MOCK_CONST_METHOD1(RequestedFieldsForSection, | 39 MOCK_CONST_METHOD1(RequestedFieldsForSection, |
| 41 const DetailInputs&(DialogSection)); | 40 const DetailInputs&(DialogSection)); |
| 42 MOCK_METHOD1(ComboboxModelForAutofillType, | 41 MOCK_METHOD1(ComboboxModelForAutofillType, |
| 43 ui::ComboboxModel*(ServerFieldType)); | 42 ui::ComboboxModel*(ServerFieldType)); |
| 44 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); | 43 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); |
| 45 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); | 44 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 58 gfx::NativeView, | 57 gfx::NativeView, |
| 59 const gfx::Rect&, | 58 const gfx::Rect&, |
| 60 const string16&, | 59 const string16&, |
| 61 bool was_edit)); | 60 bool was_edit)); |
| 62 MOCK_METHOD1(HandleKeyPressEventInInput, | 61 MOCK_METHOD1(HandleKeyPressEventInInput, |
| 63 bool(const content::NativeWebKeyboardEvent& event)); | 62 bool(const content::NativeWebKeyboardEvent& event)); |
| 64 MOCK_METHOD0(FocusMoved, void()); | 63 MOCK_METHOD0(FocusMoved, void()); |
| 65 MOCK_CONST_METHOD0(SplashPageImage, gfx::Image()); | 64 MOCK_CONST_METHOD0(SplashPageImage, gfx::Image()); |
| 66 MOCK_METHOD0(ViewClosed, void()); | 65 MOCK_METHOD0(ViewClosed, void()); |
| 67 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); | 66 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); |
| 68 MOCK_CONST_METHOD0(CurrentAutocheckoutSteps, | |
| 69 std::vector<DialogAutocheckoutStep>()); | |
| 70 MOCK_METHOD0(SignInLinkClicked, void()); | 67 MOCK_METHOD0(SignInLinkClicked, void()); |
| 71 MOCK_METHOD2(NotificationCheckboxStateChanged, | 68 MOCK_METHOD2(NotificationCheckboxStateChanged, |
| 72 void(DialogNotification::Type, bool)); | 69 void(DialogNotification::Type, bool)); |
| 73 MOCK_METHOD1(LegalDocumentLinkClicked, void(const ui::Range&)); | 70 MOCK_METHOD1(LegalDocumentLinkClicked, void(const ui::Range&)); |
| 74 MOCK_METHOD0(OverlayButtonPressed, void()); | 71 MOCK_METHOD0(OverlayButtonPressed, void()); |
| 75 MOCK_METHOD0(OnCancel, bool()); | 72 MOCK_METHOD0(OnCancel, bool()); |
| 76 MOCK_METHOD0(OnAccept, bool()); | 73 MOCK_METHOD0(OnAccept, bool()); |
| 77 MOCK_METHOD0(profile, Profile*()); | 74 MOCK_METHOD0(profile, Profile*()); |
| 78 MOCK_METHOD0(GetWebContents, content::WebContents*()); | 75 MOCK_METHOD0(GetWebContents, content::WebContents*()); |
| 79 private: | 76 private: |
| 80 DetailInputs default_inputs_; | 77 DetailInputs default_inputs_; |
| 81 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. | 78 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. |
| 82 std::vector<ui::Range> range_; | 79 std::vector<ui::Range> range_; |
| 83 }; | 80 }; |
| 84 | 81 |
| 85 } // namespace autofill | 82 } // namespace autofill |
| 86 | 83 |
| 87 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 84 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |