| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.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 virtual string16 LegalDocumentsText() OVERRIDE; | 25 virtual string16 LegalDocumentsText() OVERRIDE; |
| 26 virtual DialogSignedInState SignedInState() const OVERRIDE; | 26 virtual DialogSignedInState SignedInState() const OVERRIDE; |
| 27 virtual bool ShouldShowSpinner() const OVERRIDE; | 27 virtual bool ShouldShowSpinner() const OVERRIDE; |
| 28 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; | 28 virtual bool ShouldOfferToSaveInChrome() const OVERRIDE; |
| 29 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); | 29 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); |
| 30 virtual gfx::Image AccountChooserImage() OVERRIDE; | 30 virtual gfx::Image AccountChooserImage() OVERRIDE; |
| 31 virtual bool ShouldShowProgressBar() const OVERRIDE; | 31 virtual bool ShouldShowProgressBar() const OVERRIDE; |
| 32 virtual int GetDialogButtons() const OVERRIDE; | 32 virtual int GetDialogButtons() const OVERRIDE; |
| 33 virtual bool ShouldShowDetailArea() const OVERRIDE; | 33 virtual bool ShouldShowDetailArea() const OVERRIDE; |
| 34 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 34 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 35 virtual DialogOverlayState GetDialogOverlay() const OVERRIDE; |
| 35 virtual const std::vector<ui::Range>& LegalDocumentLinks() OVERRIDE; | 36 virtual const std::vector<ui::Range>& LegalDocumentLinks() OVERRIDE; |
| 36 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; | 37 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; |
| 37 MOCK_CONST_METHOD1(RequestedFieldsForSection, | 38 MOCK_CONST_METHOD1(RequestedFieldsForSection, |
| 38 const DetailInputs&(DialogSection)); | 39 const DetailInputs&(DialogSection)); |
| 39 MOCK_METHOD1(ComboboxModelForAutofillType, | 40 MOCK_METHOD1(ComboboxModelForAutofillType, |
| 40 ui::ComboboxModel*(AutofillFieldType)); | 41 ui::ComboboxModel*(AutofillFieldType)); |
| 41 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); | 42 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); |
| 42 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 43 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
| 43 virtual SuggestionState SuggestionStateForSection( | 44 virtual SuggestionState SuggestionStateForSection( |
| 44 DialogSection section) OVERRIDE; | 45 DialogSection section) OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 72 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; | 73 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; |
| 73 | 74 |
| 74 virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps() | 75 virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps() |
| 75 const OVERRIDE; | 76 const OVERRIDE; |
| 76 | 77 |
| 77 virtual void SignInLinkClicked() OVERRIDE; | 78 virtual void SignInLinkClicked() OVERRIDE; |
| 78 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 79 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 79 bool checked) OVERRIDE; | 80 bool checked) OVERRIDE; |
| 80 | 81 |
| 81 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; | 82 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; |
| 83 virtual void OverlayButtonPressed() OVERRIDE; |
| 82 virtual void OnCancel() OVERRIDE; | 84 virtual void OnCancel() OVERRIDE; |
| 83 virtual void OnAccept() OVERRIDE; | 85 virtual void OnAccept() OVERRIDE; |
| 84 | 86 |
| 85 MOCK_METHOD0(profile, Profile*()); | 87 MOCK_METHOD0(profile, Profile*()); |
| 86 virtual content::WebContents* web_contents() OVERRIDE; | 88 virtual content::WebContents* web_contents() OVERRIDE; |
| 87 private: | 89 private: |
| 88 DetailInputs default_inputs_; | 90 DetailInputs default_inputs_; |
| 89 std::vector<ui::Range> range_; | 91 std::vector<ui::Range> range_; |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace autofill | 94 } // namespace autofill |
| 93 | 95 |
| 94 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ | 96 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ |
| OLD | NEW |