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

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

Issue 13927010: Bluetooth: implement BlueZ 5 backend for Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review 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
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"
9 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
10 #include "chromeos/dbus/fake_bluetooth_device_client.h"
11 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h"
8 #include "chromeos/dbus/ibus/mock_ibus_client.h" 12 #include "chromeos/dbus/ibus/mock_ibus_client.h"
9 #include "chromeos/dbus/ibus/mock_ibus_config_client.h" 13 #include "chromeos/dbus/ibus/mock_ibus_config_client.h"
10 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h" 14 #include "chromeos/dbus/ibus/mock_ibus_engine_factory_service.h"
11 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h" 15 #include "chromeos/dbus/ibus/mock_ibus_engine_service.h"
12 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" 16 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h"
13 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h" 17 #include "chromeos/dbus/ibus/mock_ibus_panel_service.h"
14 18
15 namespace chromeos { 19 namespace chromeos {
16 20
17 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock() 21 MockDBusThreadManagerWithoutGMock::MockDBusThreadManagerWithoutGMock()
18 : mock_ibus_client_(new MockIBusClient), 22 : fake_bluetooth_adapter_client_(new FakeBluetoothAdapterClient()),
23 fake_bluetooth_agent_manager_client_(new FakeBluetoothAgentManagerClient()),
24 fake_bluetooth_device_client_(new FakeBluetoothDeviceClient()),
25 fake_bluetooth_profile_manager_client_(
26 new FakeBluetoothProfileManagerClient()),
27 mock_ibus_client_(new MockIBusClient),
19 mock_ibus_input_context_client_(new MockIBusInputContextClient), 28 mock_ibus_input_context_client_(new MockIBusInputContextClient),
20 ibus_bus_(NULL) { 29 ibus_bus_(NULL) {
21 } 30 }
22 31
23 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() { 32 MockDBusThreadManagerWithoutGMock::~MockDBusThreadManagerWithoutGMock() {
24 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_, 33 FOR_EACH_OBSERVER(DBusThreadManagerObserver, observers_,
25 OnDBusThreadManagerDestroying(this)); 34 OnDBusThreadManagerDestroying(this));
26 } 35 }
27 36
28 void MockDBusThreadManagerWithoutGMock::AddObserver( 37 void MockDBusThreadManagerWithoutGMock::AddObserver(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 return NULL; 106 return NULL;
98 } 107 }
99 108
100 DebugDaemonClient* MockDBusThreadManagerWithoutGMock::GetDebugDaemonClient() { 109 DebugDaemonClient* MockDBusThreadManagerWithoutGMock::GetDebugDaemonClient() {
101 NOTIMPLEMENTED(); 110 NOTIMPLEMENTED();
102 return NULL; 111 return NULL;
103 } 112 }
104 113
105 ExperimentalBluetoothAdapterClient* 114 ExperimentalBluetoothAdapterClient*
106 MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothAdapterClient() { 115 MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothAdapterClient() {
107 NOTIMPLEMENTED(); 116 return fake_bluetooth_adapter_client_.get();
108 return NULL;
109 } 117 }
110 118
111 ExperimentalBluetoothAgentManagerClient* 119 ExperimentalBluetoothAgentManagerClient*
112 MockDBusThreadManagerWithoutGMock:: 120 MockDBusThreadManagerWithoutGMock::
113 GetExperimentalBluetoothAgentManagerClient() { 121 GetExperimentalBluetoothAgentManagerClient() {
114 NOTIMPLEMENTED(); 122 return fake_bluetooth_agent_manager_client_.get();
115 return NULL;
116 } 123 }
117 124
118 ExperimentalBluetoothDeviceClient* 125 ExperimentalBluetoothDeviceClient*
119 MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothDeviceClient() { 126 MockDBusThreadManagerWithoutGMock::GetExperimentalBluetoothDeviceClient() {
120 NOTIMPLEMENTED(); 127 return fake_bluetooth_device_client_.get();
121 return NULL;
122 } 128 }
123 129
124 ExperimentalBluetoothProfileManagerClient* 130 ExperimentalBluetoothProfileManagerClient*
125 MockDBusThreadManagerWithoutGMock:: 131 MockDBusThreadManagerWithoutGMock::
126 GetExperimentalBluetoothProfileManagerClient() { 132 GetExperimentalBluetoothProfileManagerClient() {
127 NOTIMPLEMENTED(); 133 return fake_bluetooth_profile_manager_client_.get();
128 return NULL;
129 } 134 }
130 135
131 ShillDeviceClient* 136 ShillDeviceClient*
132 MockDBusThreadManagerWithoutGMock::GetShillDeviceClient() { 137 MockDBusThreadManagerWithoutGMock::GetShillDeviceClient() {
133 NOTIMPLEMENTED(); 138 NOTIMPLEMENTED();
134 return NULL; 139 return NULL;
135 } 140 }
136 141
137 ShillIPConfigClient* 142 ShillIPConfigClient*
138 MockDBusThreadManagerWithoutGMock::GetShillIPConfigClient() { 143 MockDBusThreadManagerWithoutGMock::GetShillIPConfigClient() {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 254
250 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService( 255 void MockDBusThreadManagerWithoutGMock::RemoveIBusEngineService(
251 const dbus::ObjectPath& object_path) { 256 const dbus::ObjectPath& object_path) {
252 } 257 }
253 258
254 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() { 259 IBusPanelService* MockDBusThreadManagerWithoutGMock::GetIBusPanelService() {
255 return mock_ibus_panel_service_.get(); 260 return mock_ibus_panel_service_.get();
256 } 261 }
257 262
258 } // namespace chromeos 263 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.h ('k') | device/bluetooth/bluetooth_adapter_experimental_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698