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 29 matching lines...) Expand all Loading... |
40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); | 40 MOCK_CONST_METHOD1(SectionIsActive, bool(DialogSection)); |
41 MOCK_CONST_METHOD1(RequestedFieldsForSection, | 41 MOCK_CONST_METHOD1(RequestedFieldsForSection, |
42 const DetailInputs&(DialogSection)); | 42 const DetailInputs&(DialogSection)); |
43 MOCK_METHOD1(ComboboxModelForAutofillType, | 43 MOCK_METHOD1(ComboboxModelForAutofillType, |
44 ui::ComboboxModel*(ServerFieldType)); | 44 ui::ComboboxModel*(ServerFieldType)); |
45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); | 45 MOCK_METHOD1(MenuModelForSection, ui::MenuModel*(DialogSection)); |
46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); | 46 MOCK_CONST_METHOD1(LabelForSection, string16(DialogSection section)); |
47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); | 47 MOCK_METHOD1(SuggestionStateForSection, SuggestionState(DialogSection)); |
48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); | 48 MOCK_METHOD1(EditClickedForSection, void(DialogSection section)); |
49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); | 49 MOCK_METHOD1(EditCancelledForSection, void(DialogSection section)); |
| 50 // TODO(groby): Remove this deprecated method after Mac starts using |
| 51 // IconsForFields. http://crbug.com/292876 |
50 MOCK_CONST_METHOD2(IconForField, | 52 MOCK_CONST_METHOD2(IconForField, |
51 gfx::Image(ServerFieldType, const string16&)); | 53 gfx::Image(ServerFieldType, const string16&)); |
| 54 MOCK_CONST_METHOD1(IconsForFields, FieldIconMap(const FieldValueMap&)); |
| 55 MOCK_CONST_METHOD1(FieldControlsIcons, bool(ServerFieldType)); |
52 MOCK_METHOD3(InputValidityMessage, | 56 MOCK_METHOD3(InputValidityMessage, |
53 string16(DialogSection, ServerFieldType, const string16&)); | 57 string16(DialogSection, ServerFieldType, const string16&)); |
54 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection, | 58 MOCK_METHOD3(InputsAreValid, ValidityData(DialogSection, |
55 const DetailOutputMap&, | 59 const DetailOutputMap&, |
56 ValidationType)); | 60 ValidationType)); |
57 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection, | 61 MOCK_METHOD6(UserEditedOrActivatedInput,void(DialogSection, |
58 const DetailInput*, | 62 const DetailInput*, |
59 gfx::NativeView, | 63 gfx::NativeView, |
60 const gfx::Rect&, | 64 const gfx::Rect&, |
61 const string16&, | 65 const string16&, |
(...skipping 15 matching lines...) Expand all Loading... |
77 MOCK_METHOD0(GetWebContents, content::WebContents*()); | 81 MOCK_METHOD0(GetWebContents, content::WebContents*()); |
78 private: | 82 private: |
79 DetailInputs default_inputs_; | 83 DetailInputs default_inputs_; |
80 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. | 84 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. |
81 std::vector<gfx::Range> range_; | 85 std::vector<gfx::Range> range_; |
82 }; | 86 }; |
83 | 87 |
84 } // namespace autofill | 88 } // namespace autofill |
85 | 89 |
86 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 90 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |