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

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

Issue 14037011: dbus: Remove unused MockExperimentalBluetooth*Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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/ibus/mock_ibus_client.h" 8 #include "chromeos/dbus/ibus/mock_ibus_client.h"
9 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" 9 #include "chromeos/dbus/ibus/mock_ibus_config_client.h"
10 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" 10 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h"
11 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" 11 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h"
12 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" 12 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h"
13 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h" 13 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h"
14 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" 14 #include "chromeos/dbus/mock_bluetooth_adapter_client.h"
15 #include "chromeos/dbus/mock_bluetooth_device_client.h" 15 #include "chromeos/dbus/mock_bluetooth_device_client.h"
16 #include "chromeos/dbus/mock_bluetooth_input_client.h" 16 #include "chromeos/dbus/mock_bluetooth_input_client.h"
17 #include "chromeos/dbus/mock_bluetooth_manager_client.h" 17 #include "chromeos/dbus/mock_bluetooth_manager_client.h"
18 #include "chromeos/dbus/mock_bluetooth_node_client.h" 18 #include "chromeos/dbus/mock_bluetooth_node_client.h"
19 #include "chromeos/dbus/mock_bluetooth_out_of_band_client.h" 19 #include "chromeos/dbus/mock_bluetooth_out_of_band_client.h"
20 #include "chromeos/dbus/mock_cros_disks_client.h" 20 #include "chromeos/dbus/mock_cros_disks_client.h"
21 #include "chromeos/dbus/mock_cryptohome_client.h" 21 #include "chromeos/dbus/mock_cryptohome_client.h"
22 #include "chromeos/dbus/mock_debug_daemon_client.h" 22 #include "chromeos/dbus/mock_debug_daemon_client.h"
23 #include "chromeos/dbus/mock_experimental_bluetooth_adapter_client.h"
24 #include "chromeos/dbus/mock_experimental_bluetooth_agent_manager_client.h"
25 #include "chromeos/dbus/mock_experimental_bluetooth_device_client.h"
26 #include "chromeos/dbus/mock_experimental_bluetooth_profile_manager_client.h"
27 #include "chromeos/dbus/mock_shill_device_client.h" 23 #include "chromeos/dbus/mock_shill_device_client.h"
28 #include "chromeos/dbus/mock_shill_ipconfig_client.h" 24 #include "chromeos/dbus/mock_shill_ipconfig_client.h"
29 #include "chromeos/dbus/mock_shill_manager_client.h" 25 #include "chromeos/dbus/mock_shill_manager_client.h"
30 #include "chromeos/dbus/mock_shill_profile_client.h" 26 #include "chromeos/dbus/mock_shill_profile_client.h"
31 #include "chromeos/dbus/mock_shill_service_client.h" 27 #include "chromeos/dbus/mock_shill_service_client.h"
32 #include "chromeos/dbus/mock_gsm_sms_client.h" 28 #include "chromeos/dbus/mock_gsm_sms_client.h"
33 #include "chromeos/dbus/mock_image_burner_client.h" 29 #include "chromeos/dbus/mock_image_burner_client.h"
34 #include "chromeos/dbus/mock_introspectable_client.h" 30 #include "chromeos/dbus/mock_introspectable_client.h"
35 #include "chromeos/dbus/mock_modem_messaging_client.h" 31 #include "chromeos/dbus/mock_modem_messaging_client.h"
36 #include "chromeos/dbus/mock_permission_broker_client.h" 32 #include "chromeos/dbus/mock_permission_broker_client.h"
(...skipping 14 matching lines...) Expand all
51 MockDBusThreadManager::MockDBusThreadManager() 47 MockDBusThreadManager::MockDBusThreadManager()
52 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), 48 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient),
53 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), 49 mock_bluetooth_device_client_(new MockBluetoothDeviceClient),
54 mock_bluetooth_input_client_(new MockBluetoothInputClient), 50 mock_bluetooth_input_client_(new MockBluetoothInputClient),
55 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), 51 mock_bluetooth_manager_client_(new MockBluetoothManagerClient),
56 mock_bluetooth_node_client_(new MockBluetoothNodeClient), 52 mock_bluetooth_node_client_(new MockBluetoothNodeClient),
57 mock_bluetooth_out_of_band_client_(new MockBluetoothOutOfBandClient), 53 mock_bluetooth_out_of_band_client_(new MockBluetoothOutOfBandClient),
58 mock_cros_disks_client_(new MockCrosDisksClient), 54 mock_cros_disks_client_(new MockCrosDisksClient),
59 mock_cryptohome_client_(new MockCryptohomeClient), 55 mock_cryptohome_client_(new MockCryptohomeClient),
60 mock_debugdaemon_client_(new MockDebugDaemonClient), 56 mock_debugdaemon_client_(new MockDebugDaemonClient),
61 mock_experimental_bluetooth_adapter_client_(
62 new MockExperimentalBluetoothAdapterClient),
63 mock_experimental_bluetooth_agent_manager_client_(
64 new MockExperimentalBluetoothAgentManagerClient),
65 mock_experimental_bluetooth_device_client_(
66 new MockExperimentalBluetoothDeviceClient),
67 mock_experimental_bluetooth_profile_manager_client_(
68 new MockExperimentalBluetoothProfileManagerClient),
69 mock_shill_device_client_(new MockShillDeviceClient), 57 mock_shill_device_client_(new MockShillDeviceClient),
70 mock_shill_ipconfig_client_(new MockShillIPConfigClient), 58 mock_shill_ipconfig_client_(new MockShillIPConfigClient),
71 mock_shill_manager_client_(new MockShillManagerClient), 59 mock_shill_manager_client_(new MockShillManagerClient),
72 mock_shill_profile_client_(new MockShillProfileClient), 60 mock_shill_profile_client_(new MockShillProfileClient),
73 mock_shill_service_client_(new MockShillServiceClient), 61 mock_shill_service_client_(new MockShillServiceClient),
74 mock_gsm_sms_client_(new MockGsmSMSClient), 62 mock_gsm_sms_client_(new MockGsmSMSClient),
75 mock_image_burner_client_(new MockImageBurnerClient), 63 mock_image_burner_client_(new MockImageBurnerClient),
76 mock_introspectable_client_(new MockIntrospectableClient), 64 mock_introspectable_client_(new MockIntrospectableClient),
77 mock_modem_messaging_client_(new MockModemMessagingClient), 65 mock_modem_messaging_client_(new MockModemMessagingClient),
78 mock_permission_broker_client_(new MockPermissionBrokerClient), 66 mock_permission_broker_client_(new MockPermissionBrokerClient),
(...skipping 19 matching lines...) Expand all
98 EXPECT_CALL(*this, GetBluetoothNodeClient()) 86 EXPECT_CALL(*this, GetBluetoothNodeClient())
99 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); 87 .WillRepeatedly(Return(mock_bluetooth_node_client_.get()));
100 EXPECT_CALL(*this, GetBluetoothOutOfBandClient()) 88 EXPECT_CALL(*this, GetBluetoothOutOfBandClient())
101 .WillRepeatedly(Return(mock_bluetooth_out_of_band_client_.get())); 89 .WillRepeatedly(Return(mock_bluetooth_out_of_band_client_.get()));
102 EXPECT_CALL(*this, GetCrosDisksClient()) 90 EXPECT_CALL(*this, GetCrosDisksClient())
103 .WillRepeatedly(Return(mock_cros_disks_client())); 91 .WillRepeatedly(Return(mock_cros_disks_client()));
104 EXPECT_CALL(*this, GetCryptohomeClient()) 92 EXPECT_CALL(*this, GetCryptohomeClient())
105 .WillRepeatedly(Return(mock_cryptohome_client())); 93 .WillRepeatedly(Return(mock_cryptohome_client()));
106 EXPECT_CALL(*this, GetDebugDaemonClient()) 94 EXPECT_CALL(*this, GetDebugDaemonClient())
107 .WillRepeatedly(Return(mock_debugdaemon_client())); 95 .WillRepeatedly(Return(mock_debugdaemon_client()));
108 EXPECT_CALL(*this, GetExperimentalBluetoothAdapterClient())
109 .WillRepeatedly(Return(mock_experimental_bluetooth_adapter_client()));
110 EXPECT_CALL(*this, GetExperimentalBluetoothAgentManagerClient())
111 .WillRepeatedly(Return(
112 mock_experimental_bluetooth_agent_manager_client()));
113 EXPECT_CALL(*this, GetExperimentalBluetoothDeviceClient())
114 .WillRepeatedly(Return(mock_experimental_bluetooth_device_client()));
115 EXPECT_CALL(*this, GetExperimentalBluetoothProfileManagerClient())
116 .WillRepeatedly(Return(
117 mock_experimental_bluetooth_profile_manager_client()));
118 EXPECT_CALL(*this, GetShillDeviceClient()) 96 EXPECT_CALL(*this, GetShillDeviceClient())
119 .WillRepeatedly(Return(mock_shill_device_client())); 97 .WillRepeatedly(Return(mock_shill_device_client()));
120 EXPECT_CALL(*this, GetShillIPConfigClient()) 98 EXPECT_CALL(*this, GetShillIPConfigClient())
121 .WillRepeatedly(Return(mock_shill_ipconfig_client())); 99 .WillRepeatedly(Return(mock_shill_ipconfig_client()));
122 EXPECT_CALL(*this, GetShillManagerClient()) 100 EXPECT_CALL(*this, GetShillManagerClient())
123 .WillRepeatedly(Return(mock_shill_manager_client())); 101 .WillRepeatedly(Return(mock_shill_manager_client()));
124 EXPECT_CALL(*this, GetShillProfileClient()) 102 EXPECT_CALL(*this, GetShillProfileClient())
125 .WillRepeatedly(Return(mock_shill_profile_client())); 103 .WillRepeatedly(Return(mock_shill_profile_client()));
126 EXPECT_CALL(*this, GetShillServiceClient()) 104 EXPECT_CALL(*this, GetShillServiceClient())
127 .WillRepeatedly(Return(mock_shill_service_client())); 105 .WillRepeatedly(Return(mock_shill_service_client()));
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 EXPECT_CALL(*mock_bluetooth_device_client_.get(), RemoveObserver(_)) 187 EXPECT_CALL(*mock_bluetooth_device_client_.get(), RemoveObserver(_))
210 .Times(AnyNumber()); 188 .Times(AnyNumber());
211 EXPECT_CALL(*mock_bluetooth_input_client_.get(), AddObserver(_)) 189 EXPECT_CALL(*mock_bluetooth_input_client_.get(), AddObserver(_))
212 .Times(AnyNumber()); 190 .Times(AnyNumber());
213 EXPECT_CALL(*mock_bluetooth_input_client_.get(), RemoveObserver(_)) 191 EXPECT_CALL(*mock_bluetooth_input_client_.get(), RemoveObserver(_))
214 .Times(AnyNumber()); 192 .Times(AnyNumber());
215 EXPECT_CALL(*mock_bluetooth_node_client_.get(), AddObserver(_)) 193 EXPECT_CALL(*mock_bluetooth_node_client_.get(), AddObserver(_))
216 .Times(AnyNumber()); 194 .Times(AnyNumber());
217 EXPECT_CALL(*mock_bluetooth_node_client_.get(), RemoveObserver(_)) 195 EXPECT_CALL(*mock_bluetooth_node_client_.get(), RemoveObserver(_))
218 .Times(AnyNumber()); 196 .Times(AnyNumber());
219 EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
220 AddObserver(_))
221 .Times(AnyNumber());
222 EXPECT_CALL(*mock_experimental_bluetooth_adapter_client_.get(),
223 RemoveObserver(_))
224 .Times(AnyNumber());
225 EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
226 AddObserver(_))
227 .Times(AnyNumber());
228 EXPECT_CALL(*mock_experimental_bluetooth_device_client_.get(),
229 RemoveObserver(_))
230 .Times(AnyNumber());
231 197
232 // Called from PowerMenuButton ctor. 198 // Called from PowerMenuButton ctor.
233 EXPECT_CALL(*mock_power_manager_client_.get(), RequestStatusUpdate(_)) 199 EXPECT_CALL(*mock_power_manager_client_.get(), RequestStatusUpdate(_))
234 .Times(AnyNumber()); 200 .Times(AnyNumber());
235 201
236 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. 202 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos.
237 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) 203 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _))
238 .Times(AnyNumber()); 204 .Times(AnyNumber());
239 EXPECT_CALL(*mock_cros_disks_client_.get(), 205 EXPECT_CALL(*mock_cros_disks_client_.get(),
240 EnumerateAutoMountableDevices(_, _)) 206 EnumerateAutoMountableDevices(_, _))
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 observers_.AddObserver(observer); 247 observers_.AddObserver(observer);
282 } 248 }
283 249
284 void MockDBusThreadManager::RemoveObserver( 250 void MockDBusThreadManager::RemoveObserver(
285 DBusThreadManagerObserver* observer) { 251 DBusThreadManagerObserver* observer) {
286 DCHECK(observer); 252 DCHECK(observer);
287 observers_.RemoveObserver(observer); 253 observers_.RemoveObserver(observer);
288 } 254 }
289 255
290 } // namespace chromeos 256 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.h ('k') | chromeos/dbus/mock_experimental_bluetooth_adapter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698