OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Allow monitoring calls into AutocompleteTextField's observer. | 26 // Allow monitoring calls into AutocompleteTextField's observer. |
27 // Being in a .h file with an anonymous namespace is strange, but this | 27 // Being in a .h file with an anonymous namespace is strange, but this |
28 // is here so the mock interface doesn't have to change in multiple | 28 // is here so the mock interface doesn't have to change in multiple |
29 // places. | 29 // places. |
30 | 30 |
31 class MockAutocompleteTextFieldObserver : public AutocompleteTextFieldObserver { | 31 class MockAutocompleteTextFieldObserver : public AutocompleteTextFieldObserver { |
32 public: | 32 public: |
33 MOCK_METHOD1(OnControlKeyChanged, void(bool pressed)); | 33 MOCK_METHOD1(OnControlKeyChanged, void(bool pressed)); |
34 MOCK_METHOD0(OnPaste, void()); | 34 MOCK_METHOD0(OnPaste, void()); |
| 35 MOCK_METHOD0(CanPasteAndGo, bool()); |
| 36 MOCK_METHOD0(GetPasteActionStringId, int()); |
| 37 MOCK_METHOD0(OnPasteAndGo, void()); |
35 }; | 38 }; |
36 | 39 |
37 } // namespace | 40 } // namespace |
38 | 41 |
39 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 42 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
OLD | NEW |