OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" | 11 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
14 | 13 |
15 @class AutocompleteTextFieldEditor; | 14 @class AutocompleteTextFieldEditor; |
16 | 15 |
17 // Return the right field editor for AutocompleteTextField instance. | 16 // Return the right field editor for AutocompleteTextField instance. |
18 | 17 |
19 @interface AutocompleteTextFieldWindowTestDelegate : | 18 @interface AutocompleteTextFieldWindowTestDelegate : |
20 NSObject<NSWindowDelegate> { | 19 NSObject<NSWindowDelegate> { |
(...skipping 28 matching lines...) Expand all Loading... |
49 MOCK_METHOD0(OnBeforeChange, void()); | 48 MOCK_METHOD0(OnBeforeChange, void()); |
50 MOCK_METHOD0(OnDidChange, void()); | 49 MOCK_METHOD0(OnDidChange, void()); |
51 MOCK_METHOD0(OnDidEndEditing, void()); | 50 MOCK_METHOD0(OnDidEndEditing, void()); |
52 MOCK_METHOD0(OnStartingIME, void()); | 51 MOCK_METHOD0(OnStartingIME, void()); |
53 MOCK_METHOD1(OnDoCommandBySelector, bool(SEL cmd)); | 52 MOCK_METHOD1(OnDoCommandBySelector, bool(SEL cmd)); |
54 MOCK_METHOD1(OnSetFocus, void(bool control_down)); | 53 MOCK_METHOD1(OnSetFocus, void(bool control_down)); |
55 MOCK_METHOD0(OnKillFocus, void()); | 54 MOCK_METHOD0(OnKillFocus, void()); |
56 }; | 55 }; |
57 | 56 |
58 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ | 57 #endif // CHROME_BROWSER_UI_COCOA_AUTOCOMPLETE_TEXT_FIELD_UNITTEST_HELPER_H_ |
OLD | NEW |