summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus
diff options
context:
space:
mode:
authornona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 03:32:33 +0000
committernona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-10 03:32:33 +0000
commitf4cb55d06f1c0b9dbfbe058f55755604fb33324f (patch)
tree99dc5d0e95517774179be63aa85837ea728d7144 /chromeos/dbus
parentea810fc3d28d89f2eb2e169d4db6b24a38614690 (diff)
downloadchromium_src-f4cb55d06f1c0b9dbfbe058f55755604fb33324f.zip
chromium_src-f4cb55d06f1c0b9dbfbe058f55755604fb33324f.tar.gz
chromium_src-f4cb55d06f1c0b9dbfbe058f55755604fb33324f.tar.bz2
Add unit tests for ibus-daemon connection and component extension ime initialization.
With this change, ui_unittests is also need update. We can't call or even check the call count of IBusClient/IBUsInputContextClient stuff before InitIBusBus. BUG=None TEST=ran unit_tests both Release/Debug configuration. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198975 Review URL: https://chromiumcodereview.appspot.com/14845003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199357 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus')
-rw-r--r--chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
index 11f98c1..813b664 100644
--- a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc
@@ -54,12 +54,6 @@ MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock()
fake_old_bluetooth_manager_client_(new FakeOldBluetoothManagerClient),
fake_old_bluetooth_adapter_client_(new FakeOldBluetoothAdapterClient),
fake_old_bluetooth_device_client_(new FakeOldBluetoothDeviceClient),
- 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),
ibus_bus_(NULL) {
power_policy_controller_.reset(
new PowerPolicyController(this, fake_power_manager_client_.get()));
@@ -87,6 +81,12 @@ void MockDBusThreadManagerWithoutGMock::InitIBusBus(
const base::Closure& closure) {
// Non-null bus address is used to ensure the connection to ibus-daemon.
ibus_bus_ = reinterpret_cast<dbus::Bus*>(0xdeadbeef);
+ mock_ibus_client_.reset(new MockIBusClient);
+ mock_ibus_config_client_.reset(new MockIBusConfigClient);
+ mock_ibus_input_context_client_.reset(new MockIBusInputContextClient);
+ mock_ibus_engine_service_.reset(new MockIBusEngineService);
+ mock_ibus_engine_factory_service_.reset(new MockIBusEngineFactoryService);
+ mock_ibus_panel_service_.reset(new MockIBusPanelService);
}
dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() {
@@ -183,7 +183,7 @@ ShillIPConfigClient*
ShillManagerClient*
MockDBusThreadManagerWithoutGMock::GetShillManagerClient() {
- return fake_shill_manager_client_.get();;
+ return fake_shill_manager_client_.get();
}
ShillProfileClient*