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

Side by Side Diff: chromeos/ime/mock_ime_property_handler.h

Issue 23822002: Adding new mock classes for input method handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
6 #define CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
7
8 #include "chromeos/dbus/ibus/ibus_property.h"
9 #include "chromeos/ime/ibus_bridge.h"
10
11 namespace chromeos {
12
13 class CHROMEOS_EXPORT MockPropertyHandler :
14 public IBusPanelPropertyHandlerInterface {
15 public:
16 MockPropertyHandler();
17 virtual ~MockPropertyHandler();
18
19 virtual void RegisterProperties(const IBusPropertyList& properties) OVERRIDE;
20 virtual void UpdateProperty(const IBusProperty& property) OVERRIDE;
21
22 int register_properties_call_count() {
23 return register_properties_call_count_;
24 }
25
26 const IBusPropertyList& last_registered_properties() {
27 return last_registered_properties_;
28 }
29
30 // Resets all call count.
31 void Reset();
32
33 private:
34 int register_properties_call_count_;
35 IBusPropertyList last_registered_properties_;
36 };
37
38 } // namespace chromeos
39
40 #endif // CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698