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

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

Issue 12577004: Added default expectation for MockDBusThreadManager::GetIBusConfigClient(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 | « no previous file | no next file » | 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 "chromeos/dbus/dbus_thread_manager_observer.h" 7 #include "chromeos/dbus/dbus_thread_manager_observer.h"
8 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" 8 #include "chromeos/dbus/mock_bluetooth_adapter_client.h"
9 #include "chromeos/dbus/mock_bluetooth_device_client.h" 9 #include "chromeos/dbus/mock_bluetooth_device_client.h"
10 #include "chromeos/dbus/mock_bluetooth_input_client.h" 10 #include "chromeos/dbus/mock_bluetooth_input_client.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 EXPECT_CALL(*this, GetPowerManagerClient()) 100 EXPECT_CALL(*this, GetPowerManagerClient())
101 .WillRepeatedly(Return(mock_power_manager_client_.get())); 101 .WillRepeatedly(Return(mock_power_manager_client_.get()));
102 EXPECT_CALL(*this, GetSessionManagerClient()) 102 EXPECT_CALL(*this, GetSessionManagerClient())
103 .WillRepeatedly(Return(mock_session_manager_client_.get())); 103 .WillRepeatedly(Return(mock_session_manager_client_.get()));
104 EXPECT_CALL(*this, GetSMSClient()) 104 EXPECT_CALL(*this, GetSMSClient())
105 .WillRepeatedly(Return(mock_sms_client_.get())); 105 .WillRepeatedly(Return(mock_sms_client_.get()));
106 EXPECT_CALL(*this, GetUpdateEngineClient()) 106 EXPECT_CALL(*this, GetUpdateEngineClient())
107 .WillRepeatedly(Return(mock_update_engine_client_.get())); 107 .WillRepeatedly(Return(mock_update_engine_client_.get()));
108 EXPECT_CALL(*this, GetIBusInputContextClient()) 108 EXPECT_CALL(*this, GetIBusInputContextClient())
109 .WillRepeatedly(ReturnNull()); 109 .WillRepeatedly(ReturnNull());
110 EXPECT_CALL(*this, GetIBusConfigClient())
111 .WillRepeatedly(ReturnNull());
110 112
111 EXPECT_CALL(*this, GetSystemBus()) 113 EXPECT_CALL(*this, GetSystemBus())
112 .WillRepeatedly(ReturnNull()); 114 .WillRepeatedly(ReturnNull());
113 EXPECT_CALL(*this, GetIBusBus()) 115 EXPECT_CALL(*this, GetIBusBus())
114 .WillRepeatedly(ReturnNull()); 116 .WillRepeatedly(ReturnNull());
115 117
116 // |power_policy_controller_| calls some of these from the constructor, so 118 // |power_policy_controller_| calls some of these from the constructor, so
117 // set these expectations before creating the controller. 119 // set these expectations before creating the controller.
118 EXPECT_CALL(*mock_power_manager_client_.get(), AddObserver(_)) 120 EXPECT_CALL(*mock_power_manager_client_.get(), AddObserver(_))
119 .Times(AnyNumber()); 121 .Times(AnyNumber());
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 observers_.AddObserver(observer); 210 observers_.AddObserver(observer);
209 } 211 }
210 212
211 void MockDBusThreadManager::RemoveObserver( 213 void MockDBusThreadManager::RemoveObserver(
212 DBusThreadManagerObserver* observer) { 214 DBusThreadManagerObserver* observer) {
213 DCHECK(observer); 215 DCHECK(observer);
214 observers_.RemoveObserver(observer); 216 observers_.RemoveObserver(observer);
215 } 217 }
216 218
217 } // namespace chromeos 219 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698