| Index: chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
|
| diff --git a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
|
| index 2d36b8f7ed1aca00fc4a7b6560ad5bc724a59508..784b6f41a6c482c6f1debbd7e4dfb9d9d962b9f5 100644
|
| --- a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
|
| +++ b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
|
| @@ -17,6 +17,7 @@
|
| #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 "dbus/fake_bus.h"
|
|
|
| namespace chromeos {
|
|
|
| @@ -53,8 +54,8 @@ void MockDBusThreadManagerWithoutGMock::RemoveObserver(
|
| void MockDBusThreadManagerWithoutGMock::InitIBusBus(
|
| const std::string& ibus_address,
|
| const base::Closure& closure) {
|
| - // Non-null bus address is used to ensure the connection to ibus-daemon.
|
| - ibus_bus_ = reinterpret_cast<dbus::Bus*>(0xdeadbeef);
|
| + dbus::Bus::Options options;
|
| + ibus_bus_ = new dbus::FakeBus(options);
|
| }
|
|
|
| dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() {
|
|
|