| OLD | NEW |
| (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 MockIMEPropertyHandler : |
| 14 public IBusPanelPropertyHandlerInterface { |
| 15 public: |
| 16 MockIMEPropertyHandler(); |
| 17 virtual ~MockIMEPropertyHandler(); |
| 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_ |
| OLD | NEW |