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 11 matching lines...) Expand all Loading... |
22 MOCK_CONST_METHOD0(CancelButtonText, string16()); | 22 MOCK_CONST_METHOD0(CancelButtonText, string16()); |
23 MOCK_CONST_METHOD0(ConfirmButtonText, string16()); | 23 MOCK_CONST_METHOD0(ConfirmButtonText, string16()); |
24 MOCK_CONST_METHOD0(SaveLocallyText, string16()); | 24 MOCK_CONST_METHOD0(SaveLocallyText, string16()); |
25 MOCK_METHOD0(LegalDocumentsText, string16()); | 25 MOCK_METHOD0(LegalDocumentsText, string16()); |
26 MOCK_CONST_METHOD0(SignedInState, DialogSignedInState()); | 26 MOCK_CONST_METHOD0(SignedInState, DialogSignedInState()); |
27 MOCK_CONST_METHOD0(ShouldShowSpinner, bool()); | 27 MOCK_CONST_METHOD0(ShouldShowSpinner, bool()); |
28 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool()); | 28 MOCK_CONST_METHOD0(ShouldOfferToSaveInChrome, bool()); |
29 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); | 29 MOCK_METHOD0(MenuModelForAccountChooser, ui::MenuModel*()); |
30 MOCK_METHOD0(AccountChooserImage, gfx::Image()); | 30 MOCK_METHOD0(AccountChooserImage, gfx::Image()); |
31 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool()); | 31 MOCK_CONST_METHOD0(ShouldShowProgressBar, bool()); |
| 32 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); |
32 MOCK_CONST_METHOD0(GetDialogButtons, int()); | 33 MOCK_CONST_METHOD0(GetDialogButtons, int()); |
33 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool()); | 34 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool()); |
34 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); | 35 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); |
35 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); | 36 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); |
36 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); | 37 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); |
37 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); | 38 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); |
38 MOCK_CONST_METHOD1(RequestedFieldsForSection, | 39 MOCK_CONST_METHOD1(RequestedFieldsForSection, |
39 const DetailInputs&(DialogSection)); | 40 const DetailInputs&(DialogSection)); |
40 MOCK_METHOD1(ComboboxModelForAutofillType, | 41 MOCK_METHOD1(ComboboxModelForAutofillType, |
41 ui::ComboboxModel*(AutofillFieldType)); | 42 ui::ComboboxModel*(AutofillFieldType)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 MOCK_METHOD0(web_contents, content::WebContents*()); | 77 MOCK_METHOD0(web_contents, content::WebContents*()); |
77 private: | 78 private: |
78 DetailInputs default_inputs_; | 79 DetailInputs default_inputs_; |
79 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. | 80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. |
80 std::vector<ui::Range> range_; | 81 std::vector<ui::Range> range_; |
81 }; | 82 }; |
82 | 83 |
83 } // namespace autofill | 84 } // namespace autofill |
84 | 85 |
85 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ | 86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |