OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_DBUS_IBUS_MOCK_IBUS_INPUT_CONTEXT_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_INPUT_CONTEXT_CLIENT_H_ |
| 7 |
| 8 #include "chromeos/dbus/ibus/ibus_input_context_client.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace chromeos { |
| 12 class MockIBusInputContextClient : public IBusInputContextClient { |
| 13 public: |
| 14 MockIBusInputContextClient(); |
| 15 virtual ~MockIBusInputContextClient(); |
| 16 |
| 17 MOCK_METHOD2(Initialize, void(dbus::Bus* bus, |
| 18 const dbus::ObjectPath& object_path)); |
| 19 MOCK_METHOD0(ResetObjectProxy, void()); |
| 20 MOCK_CONST_METHOD0(IsConnected, bool()); |
| 21 MOCK_METHOD1(SetCommitTextHandler, |
| 22 void(const CommitTextHandler& commit_text_handler)); |
| 23 MOCK_METHOD1(SetForwardKeyEventHandler, |
| 24 void(const ForwardKeyEventHandler& forward_key_event_handler)); |
| 25 MOCK_METHOD1( |
| 26 SetUpdatePreeditTextHandler, |
| 27 void(const UpdatePreeditTextHandler& update_preedit_text_handler)); |
| 28 MOCK_METHOD1(SetShowPreeditTextHandler, |
| 29 void(const ShowPreeditTextHandler& show_preedit_text_handler)); |
| 30 MOCK_METHOD1(SetHidePreeditTextHandler, |
| 31 void(const HidePreeditTextHandler& hide_preedit_text_handler)); |
| 32 MOCK_METHOD0(UnsetCommitTextHandler, void()); |
| 33 MOCK_METHOD0(UnsetForwardKeyEventHandler, void()); |
| 34 MOCK_METHOD0(UnsetUpdatePreeditTextHandler, void()); |
| 35 MOCK_METHOD0(UnsetShowPreeditTextHandler, void()); |
| 36 MOCK_METHOD0(UnsetHidePreeditTextHandler, void()); |
| 37 MOCK_METHOD1(SetCapabilities, void(uint32 capabilities)); |
| 38 MOCK_METHOD0(FocusIn, void()); |
| 39 MOCK_METHOD0(FocusOut, void()); |
| 40 MOCK_METHOD0(Reset, void()); |
| 41 MOCK_METHOD4(SetCursorLocation, void(int32 x, int32 y, int32 w, int32 h)); |
| 42 MOCK_METHOD4(ProcessKeyEvent, void(uint32 keyval, |
| 43 uint32 keycode, |
| 44 uint32 state, |
| 45 const ProcessKeyEventCallback& callback)); |
| 46 }; |
| 47 } // namespace chromeos |
| 48 |
| 49 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_INPUT_CONTEXT_CLIENT_H_ |
OLD | NEW |