Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2242)

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc

Issue 49773003: ChromeOS: Remove MockDBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc b/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
index 45f3780b0a58f5fba6db93af7078ca4ea42bf6eb..f50182543adf184e0447f0a281b10f2242252ac7 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
@@ -151,9 +151,9 @@ class InputMethodManagerImplTest : public testing::Test {
// Helper function to initialize IBus bus connection for testing. Do not use
// ibus related mocks before calling this function.
void InitIBusBus() {
- fake_dbus_thread_manager_->InitIBusBus("dummy address",
- base::Bind(&base::DoNothing));
- mock_ibus_client_ = fake_dbus_thread_manager_->mock_ibus_client();
+ mock_ibus_client_ = new MockIBusClient;
+ fake_dbus_thread_manager_->SetIBusClient(
+ scoped_ptr<IBusClient>(mock_ibus_client_));
mock_ibus_daemon_controller_->EmulateConnect();
}

Powered by Google App Engine
This is Rietveld 408576698