diff options
Diffstat (limited to 'chromeos/dbus/mock_dbus_thread_manager.cc')
-rw-r--r-- | chromeos/dbus/mock_dbus_thread_manager.cc | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/chromeos/dbus/mock_dbus_thread_manager.cc b/chromeos/dbus/mock_dbus_thread_manager.cc index f3dbdc6..99e1a35 100644 --- a/chromeos/dbus/mock_dbus_thread_manager.cc +++ b/chromeos/dbus/mock_dbus_thread_manager.cc @@ -5,6 +5,12 @@ #include "chromeos/dbus/mock_dbus_thread_manager.h" #include "chromeos/dbus/dbus_thread_manager_observer.h" +#include "chromeos/dbus/ibus/mock_ibus_client.h" +#include "chromeos/dbus/ibus/mock_ibus_config_client.h" +#include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" +#include "chromeos/dbus/ibus/mock_ibus_engine_service.h" +#include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" +#include "chromeos/dbus/ibus/mock_ibus_panel_service.h" #include "chromeos/dbus/mock_bluetooth_adapter_client.h" #include "chromeos/dbus/mock_bluetooth_device_client.h" #include "chromeos/dbus/mock_bluetooth_input_client.h" @@ -76,7 +82,13 @@ MockDBusThreadManager::MockDBusThreadManager() mock_session_manager_client_(new MockSessionManagerClient), mock_sms_client_(new MockSMSClient), mock_system_clock_client_(new MockSystemClockClient), - mock_update_engine_client_(new MockUpdateEngineClient) { + mock_update_engine_client_(new MockUpdateEngineClient), + mock_ibus_client_(new MockIBusClient), + mock_ibus_config_client_(new MockIBusConfigClient), + mock_ibus_input_context_client_(new MockIBusInputContextClient), + mock_ibus_engine_service_(new MockIBusEngineService), + mock_ibus_engine_factory_service_(new MockIBusEngineFactoryService), + mock_ibus_panel_service_(new MockIBusPanelService) { EXPECT_CALL(*this, GetBluetoothAdapterClient()) .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); EXPECT_CALL(*this, GetBluetoothDeviceClient()) @@ -135,10 +147,19 @@ MockDBusThreadManager::MockDBusThreadManager() .WillRepeatedly(Return(mock_system_clock_client())); EXPECT_CALL(*this, GetUpdateEngineClient()) .WillRepeatedly(Return(mock_update_engine_client_.get())); - EXPECT_CALL(*this, GetIBusInputContextClient()) - .WillRepeatedly(ReturnNull()); + EXPECT_CALL(*this, GetIBusClient()) + .WillRepeatedly(Return(mock_ibus_client_.get())); EXPECT_CALL(*this, GetIBusConfigClient()) - .WillRepeatedly(ReturnNull()); + .WillRepeatedly(Return(mock_ibus_config_client_.get())); + EXPECT_CALL(*this, GetIBusInputContextClient()) + .WillRepeatedly(Return(mock_ibus_input_context_client_.get())); + EXPECT_CALL(*this, GetIBusEngineFactoryService()) + .WillRepeatedly(Return(mock_ibus_engine_factory_service_.get())); + EXPECT_CALL(*this, GetIBusEngineService(_)) + .WillRepeatedly(Return(mock_ibus_engine_service_.get())); + EXPECT_CALL(*this, GetIBusPanelService()) + .WillRepeatedly(Return(mock_ibus_panel_service_.get())); + EXPECT_CALL(*this, GetSystemBus()) .WillRepeatedly(ReturnNull()); |