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

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

Issue 14428004: dbus: Add FakeShillManagerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment. 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
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.h ('k') | 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_without_gmock.h" 5 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.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/fake_bluetooth_adapter_client.h" 8 #include "chromeos/dbus/fake_bluetooth_adapter_client.h"
9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" 9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
10 #include "chromeos/dbus/fake_bluetooth_device_client.h" 10 #include "chromeos/dbus/fake_bluetooth_device_client.h"
11 #include "chromeos/dbus/fake_bluetooth_input_client.h" 11 #include "chromeos/dbus/fake_bluetooth_input_client.h"
12 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" 12 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
13 #include "chromeos/dbus/fake_cros_disks_client.h" 13 #include "chromeos/dbus/fake_cros_disks_client.h"
14 #include "chromeos/dbus/fake_shill_manager_client.h"
14 #include "chromeos/dbus/ibus/mock_ibus_client.h" 15 #include "chromeos/dbus/ibus/mock_ibus_client.h"
15 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" 16 #include "chromeos/dbus/ibus/mock_ibus_config_client.h"
16 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" 17 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h"
17 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" 18 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h"
18 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" 19 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h"
19 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h" 20 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h"
20 21
21 namespace chromeos { 22 namespace chromeos {
22 23
23 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock() 24 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock()
24 : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()), 25 : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()),
25 fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()), 26 fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()),
26 fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()), 27 fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()),
27 fake_bluetooth_input_client_(new FakeBluetoothInputClient()), 28 fake_bluetooth_input_client_(new FakeBluetoothInputClient()),
28 fake_bluetooth_profile_manager_client_( 29 fake_bluetooth_profile_manager_client_(
29 new FakeBluetoothProfileManagerClient()), 30 new FakeBluetoothProfileManagerClient()),
30 fake_cros_disks_client_(new FakeCrosDisksClient), 31 fake_cros_disks_client_(new FakeCrosDisksClient),
32 fake_shill_manager_client_(new FakeShillManagerClient),
31 mock_ibus_client_(new MockIBusClient), 33 mock_ibus_client_(new MockIBusClient),
32 mock_ibus_input_context_client_(new MockIBusInputContextClient), 34 mock_ibus_input_context_client_(new MockIBusInputContextClient),
33 ibus_bus_(NULL) { 35 ibus_bus_(NULL) {
34 } 36 }
35 37
36 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { 38 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() {
37 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_, 39 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_,
38 OnDBusThreadManagerDestroying(this)); 40 OnDBusThreadManagerDestroying(this));
39 } 41 }
40 42
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 150 }
149 151
150 ShillIPConfigClient* 152 ShillIPConfigClient*
151 MockDBusThreadManagerWithoutGMock::GetShillIPConfigClient() { 153 MockDBusThreadManagerWithoutGMock::GetShillIPConfigClient() {
152 NOTIMPLEMENTED(); 154 NOTIMPLEMENTED();
153 return NULL; 155 return NULL;
154 } 156 }
155 157
156 ShillManagerClient* 158 ShillManagerClient*
157 MockDBusThreadManagerWithoutGMock::GetShillManagerClient() { 159 MockDBusThreadManagerWithoutGMock::GetShillManagerClient() {
158 NOTIMPLEMENTED(); 160 return fake_shill_manager_client_.get();;
159 return NULL;
160 } 161 }
161 162
162 ShillProfileClient* 163 ShillProfileClient*
163 MockDBusThreadManagerWithoutGMock::GetShillProfileClient() { 164 MockDBusThreadManagerWithoutGMock::GetShillProfileClient() {
164 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
165 return NULL; 166 return NULL;
166 } 167 }
167 168
168 ShillServiceClient* 169 ShillServiceClient*
169 MockDBusThreadManagerWithoutGMock::GetShillServiceClient() { 170 MockDBusThreadManagerWithoutGMock::GetShillServiceClient() {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 263
263 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( 264 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService(
264 const dbus::ObjectPath& object_path) { 265 const dbus::ObjectPath& object_path) {
265 } 266 }
266 267
267 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { 268 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() {
268 return mock_ibus_panel_service_.get(); 269 return mock_ibus_panel_service_.get();
269 } 270 }
270 271
271 } // namespace chromeos 272 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698