| 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 21 matching lines...) Expand all Loading... |
| 32 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); | 32 MOCK_CONST_METHOD0(ButtonStripImage, gfx::Image()); |
| 33 MOCK_CONST_METHOD0(GetDialogButtons, int()); | 33 MOCK_CONST_METHOD0(GetDialogButtons, int()); |
| 34 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool()); | 34 MOCK_CONST_METHOD0(ShouldShowDetailArea, bool()); |
| 35 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); | 35 MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); |
| 36 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); | 36 MOCK_CONST_METHOD0(GetDialogOverlay, DialogOverlayState()); |
| 37 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); | 37 MOCK_METHOD0(LegalDocumentLinks, const std::vector<ui::Range>&()); |
| 38 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); | 38 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); |
| 39 MOCK_CONST_METHOD1(RequestedFieldsForSection, | 39 MOCK_CONST_METHOD1(RequestedFieldsForSection, |
| 40 const DetailInputs&(DialogSection)); | 40 const DetailInputs&(DialogSection)); |
| 41 MOCK_METHOD1(ComboboxModelForAutofillType, | 41 MOCK_METHOD1(ComboboxModelForAutofillType, |
| 42 ui::ComboboxModel*(AutofillFieldType)); | 42 ui::ComboboxModel*(ServerFieldType)); |
| 43 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); | 43 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); |
| 44 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); | 44 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); |
| 45 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); | 45 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); |
| 46 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); | 46 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); |
| 47 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); | 47 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); |
| 48 MOCK_CONST_METHOD2(IconForField, | 48 MOCK_CONST_METHOD2(IconForField, |
| 49 gfx::Image(AutofillFieldType, const string16&)); | 49 gfx::Image(ServerFieldType, const string16&)); |
| 50 MOCK_METHOD3(InputValidityMessage, | 50 MOCK_METHOD3(InputValidityMessage, |
| 51 string16(DialogSection, AutofillFieldType, const string16&)); | 51 string16(DialogSection, ServerFieldType, const string16&)); |
| 52 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection, | 52 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection, |
| 53 const DetailOutputMap&, | 53 const DetailOutputMap&, |
| 54 ValidationType)); | 54 ValidationType)); |
| 55 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection, | 55 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection, |
| 56 const DetailInput*, | 56 const DetailInput*, |
| 57 gfx::NativeView, | 57 gfx::NativeView, |
| 58 const gfx::Rect&, | 58 const gfx::Rect&, |
| 59 const string16&, | 59 const string16&, |
| 60 bool was_edit)); | 60 bool was_edit)); |
| 61 MOCK_METHOD1(HandleKeyPressEventInInput, | 61 MOCK_METHOD1(HandleKeyPressEventInInput, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 77 MOCK_METHOD0(web_contents, content::WebContents*()); | 77 MOCK_METHOD0(web_contents, content::WebContents*()); |
| 78 private: | 78 private: |
| 79 DetailInputs default_inputs_; | 79 DetailInputs default_inputs_; |
| 80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. | 80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. |
| 81 std::vector<ui::Range> range_; | 81 std::vector<ui::Range> range_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace autofill | 84 } // namespace autofill |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
| OLD | NEW |