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

Side by Side Diff: chromeos/dbus/mock_dbus_thread_manager.cc

Issue 50243005: ChromeOS: Remove unused IBus classes from chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.h ('k') | chromeos/ime/ibus_daemon_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/mock_dbus_thread_manager.h" 5 #include "chromeos/dbus/mock_dbus_thread_manager.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "chromeos/dbus/dbus_thread_manager_observer.h" 8 #include "chromeos/dbus/dbus_thread_manager_observer.h"
9 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" 9 #include "chromeos/dbus/fake_bluetooth_adapter_client.h"
10 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" 10 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 .WillRepeatedly(Return(mock_shill_profile_client())); 102 .WillRepeatedly(Return(mock_shill_profile_client()));
103 EXPECT_CALL(*this, GetShillServiceClient()) 103 EXPECT_CALL(*this, GetShillServiceClient())
104 .WillRepeatedly(Return(mock_shill_service_client())); 104 .WillRepeatedly(Return(mock_shill_service_client()));
105 EXPECT_CALL(*this, GetGsmSMSClient()) 105 EXPECT_CALL(*this, GetGsmSMSClient())
106 .WillRepeatedly(Return(fake_gsm_sms_client())); 106 .WillRepeatedly(Return(fake_gsm_sms_client()));
107 EXPECT_CALL(*this, GetSessionManagerClient()) 107 EXPECT_CALL(*this, GetSessionManagerClient())
108 .WillRepeatedly(Return(mock_session_manager_client_.get())); 108 .WillRepeatedly(Return(mock_session_manager_client_.get()));
109 109
110 EXPECT_CALL(*this, GetSystemBus()) 110 EXPECT_CALL(*this, GetSystemBus())
111 .WillRepeatedly(ReturnNull()); 111 .WillRepeatedly(ReturnNull());
112 EXPECT_CALL(*this, GetIBusBus())
113 .WillRepeatedly(ReturnNull());
114 112
115 // These observers calls are used in ChromeBrowserMainPartsChromeos. 113 // These observers calls are used in ChromeBrowserMainPartsChromeos.
116 EXPECT_CALL(*mock_session_manager_client_.get(), AddObserver(_)) 114 EXPECT_CALL(*mock_session_manager_client_.get(), AddObserver(_))
117 .Times(AnyNumber()); 115 .Times(AnyNumber());
118 EXPECT_CALL(*mock_session_manager_client_.get(), RemoveObserver(_)) 116 EXPECT_CALL(*mock_session_manager_client_.get(), RemoveObserver(_))
119 .Times(AnyNumber()); 117 .Times(AnyNumber());
120 EXPECT_CALL(*mock_session_manager_client_.get(), HasObserver(_)) 118 EXPECT_CALL(*mock_session_manager_client_.get(), HasObserver(_))
121 .Times(AnyNumber()); 119 .Times(AnyNumber());
122 120
123 // Called from AsyncMethodCaller ctor and dtor. 121 // Called from AsyncMethodCaller ctor and dtor.
(...skipping 27 matching lines...) Expand all
151 observers_.AddObserver(observer); 149 observers_.AddObserver(observer);
152 } 150 }
153 151
154 void MockDBusThreadManager::RemoveObserver( 152 void MockDBusThreadManager::RemoveObserver(
155 DBusThreadManagerObserver* observer) { 153 DBusThreadManagerObserver* observer) {
156 DCHECK(observer); 154 DCHECK(observer);
157 observers_.RemoveObserver(observer); 155 observers_.RemoveObserver(observer);
158 } 156 }
159 157
160 } // namespace chromeos 158 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.h ('k') | chromeos/ime/ibus_daemon_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698