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.
5 #ifndef CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
6 #define CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_
8 #include "chromeos/dbus/ibus/ibus_property.h"
9 #include "chromeos/ime/ibus_bridge.h"
13 class CHROMEOS_EXPORT MockIMEPropertyHandler
:
14 public IBusPanelPropertyHandlerInterface
{
16 MockIMEPropertyHandler();
17 virtual ~MockIMEPropertyHandler();
19 virtual void RegisterProperties(const IBusPropertyList
& properties
) OVERRIDE
;
20 virtual void UpdateProperty(const IBusProperty
& property
) OVERRIDE
;
22 int register_properties_call_count() {
23 return register_properties_call_count_
;
26 const IBusPropertyList
& last_registered_properties() {
27 return last_registered_properties_
;
30 // Resets all call count.
34 int register_properties_call_count_
;
35 IBusPropertyList last_registered_properties_
;
38 } // namespace chromeos
40 #endif // CHROMEOS_IME_MOCK_IME_PROPERTY_HANDLER_H_