Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field_unittest_helper.h

Issue 207047: [Mac] Convert Omnibox paste-and-go to use AutocompleteTextFieldObserver. (Closed)
Patch Set: Oops - remove test before its time. Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698