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