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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 9 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 MOCK_METHOD2(InputsAreValid, ValidityMessages(DialogSection, | 60 MOCK_METHOD2(InputsAreValid, ValidityMessages(DialogSection, |
61 const FieldValueMap&)); | 61 const FieldValueMap&)); |
62 MOCK_METHOD6(UserEditedOrActivatedInput, void(DialogSection, | 62 MOCK_METHOD6(UserEditedOrActivatedInput, void(DialogSection, |
63 ServerFieldType, | 63 ServerFieldType, |
64 gfx::NativeView, | 64 gfx::NativeView, |
65 const gfx::Rect&, | 65 const gfx::Rect&, |
66 const string16&, | 66 const string16&, |
67 bool was_edit)); | 67 bool was_edit)); |
68 MOCK_METHOD1(HandleKeyPressEventInInput, | 68 MOCK_METHOD1(HandleKeyPressEventInInput, |
69 bool(const content::NativeWebKeyboardEvent& event)); | 69 bool(const content::NativeWebKeyboardEvent& event)); |
| 70 MOCK_METHOD3(ComboboxItemSelected, void(ui::ComboboxModel*, |
| 71 DialogSection section, |
| 72 int index)); |
70 MOCK_METHOD0(FocusMoved, void()); | 73 MOCK_METHOD0(FocusMoved, void()); |
71 MOCK_CONST_METHOD0(ShouldShowErrorBubble, bool()); | 74 MOCK_CONST_METHOD0(ShouldShowErrorBubble, bool()); |
72 MOCK_METHOD0(ViewClosed, void()); | 75 MOCK_METHOD0(ViewClosed, void()); |
73 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); | 76 MOCK_METHOD0(CurrentNotifications,std::vector<DialogNotification>()); |
74 MOCK_METHOD1(LinkClicked, void(const GURL&)); | 77 MOCK_METHOD1(LinkClicked, void(const GURL&)); |
75 MOCK_METHOD0(SignInLinkClicked, void()); | 78 MOCK_METHOD0(SignInLinkClicked, void()); |
76 MOCK_METHOD2(NotificationCheckboxStateChanged, | 79 MOCK_METHOD2(NotificationCheckboxStateChanged, |
77 void(DialogNotification::Type, bool)); | 80 void(DialogNotification::Type, bool)); |
78 MOCK_METHOD1(LegalDocumentLinkClicked, void(const gfx::Range&)); | 81 MOCK_METHOD1(LegalDocumentLinkClicked, void(const gfx::Range&)); |
79 MOCK_METHOD0(OverlayButtonPressed, void()); | 82 MOCK_METHOD0(OverlayButtonPressed, void()); |
(...skipping 12 matching lines...) Expand all Loading... |
92 DetailInputs default_inputs_; | 95 DetailInputs default_inputs_; |
93 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. | 96 DetailInputs cc_default_inputs_; // Default inputs for SECTION_CC. |
94 std::vector<gfx::Range> range_; | 97 std::vector<gfx::Range> range_; |
95 | 98 |
96 DISALLOW_COPY_AND_ASSIGN(MockAutofillDialogViewDelegate); | 99 DISALLOW_COPY_AND_ASSIGN(MockAutofillDialogViewDelegate); |
97 }; | 100 }; |
98 | 101 |
99 } // namespace autofill | 102 } // namespace autofill |
100 | 103 |
101 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ | 104 #endif // CHROME_BROWSER_UI_AUTOFILL_MOCK_AUTOFILL_DIALOG_VIEW_DELEGATE_H_ |
OLD | NEW |