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

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

Issue 14392007: dbus: Use stubs for some clients and utils for MockDBusThreadManagerWithoutGMock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff from 14508007 Created 7 years, 7 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/chromeos.gyp ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.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 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 11 matching lines...) Expand all
22 class FakeBluetoothAdapterClient; 22 class FakeBluetoothAdapterClient;
23 class FakeBluetoothAgentManagerClient; 23 class FakeBluetoothAgentManagerClient;
24 class FakeBluetoothDeviceClient; 24 class FakeBluetoothDeviceClient;
25 class FakeBluetoothInputClient; 25 class FakeBluetoothInputClient;
26 class FakeBluetoothProfileManagerClient; 26 class FakeBluetoothProfileManagerClient;
27 class FakeCrosDisksClient; 27 class FakeCrosDisksClient;
28 class FakeCryptohomeClient; 28 class FakeCryptohomeClient;
29 class FakeOldBluetoothAdapterClient; 29 class FakeOldBluetoothAdapterClient;
30 class FakeOldBluetoothDeviceClient; 30 class FakeOldBluetoothDeviceClient;
31 class FakeOldBluetoothManagerClient; 31 class FakeOldBluetoothManagerClient;
32 class FakePowerManagerClient;
33 class FakeSessionManagerClient;
32 class FakeShillManagerClient; 34 class FakeShillManagerClient;
35 class FakeUpdateEngineClient;
33 class MockIBusClient; 36 class MockIBusClient;
34 class MockIBusConfigClient; 37 class MockIBusConfigClient;
35 class MockIBusEngineFactoryService; 38 class MockIBusEngineFactoryService;
36 class MockIBusEngineService; 39 class MockIBusEngineService;
37 class MockIBusInputContextClient; 40 class MockIBusInputContextClient;
38 class MockIBusPanelService; 41 class MockIBusPanelService;
39 42
40 // This class provides an another mock DBusThreadManager without gmock 43 // This class provides an another mock DBusThreadManager without gmock
41 // dependency. This class is used for places where GMock is not allowed 44 // dependency. This class is used for places where GMock is not allowed
42 // (ex. ui/) or is not used. 45 // (ex. ui/) or is not used.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // These fake_bluetooth_*_client_ are for ExperimentalBluetooth*Client. 163 // These fake_bluetooth_*_client_ are for ExperimentalBluetooth*Client.
161 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; 164 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_;
162 scoped_ptr<FakeBluetoothAgentManagerClient> 165 scoped_ptr<FakeBluetoothAgentManagerClient>
163 fake_bluetooth_agent_manager_client_; 166 fake_bluetooth_agent_manager_client_;
164 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_; 167 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_;
165 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_; 168 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_;
166 scoped_ptr<FakeBluetoothProfileManagerClient> 169 scoped_ptr<FakeBluetoothProfileManagerClient>
167 fake_bluetooth_profile_manager_client_; 170 fake_bluetooth_profile_manager_client_;
168 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_; 171 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_;
169 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_; 172 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_;
173 scoped_ptr<FakePowerManagerClient> fake_power_manager_client_;
174 scoped_ptr<FakeSessionManagerClient> fake_session_manager_client_;
170 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_; 175 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_;
176 scoped_ptr<FakeUpdateEngineClient> fake_update_engine_client_;
171 177
172 // These fake_old_bluetooth_*_client_ are for old Bluetooth*Client. 178 // These fake_old_bluetooth_*_client_ are for old Bluetooth*Client.
173 // Will be removed once http://crbug.com/221813 is resolved. 179 // Will be removed once http://crbug.com/221813 is resolved.
174 scoped_ptr<FakeOldBluetoothManagerClient> fake_old_bluetooth_manager_client_; 180 scoped_ptr<FakeOldBluetoothManagerClient> fake_old_bluetooth_manager_client_;
175 scoped_ptr<FakeOldBluetoothAdapterClient> fake_old_bluetooth_adapter_client_; 181 scoped_ptr<FakeOldBluetoothAdapterClient> fake_old_bluetooth_adapter_client_;
176 scoped_ptr<FakeOldBluetoothDeviceClient> fake_old_bluetooth_device_client_; 182 scoped_ptr<FakeOldBluetoothDeviceClient> fake_old_bluetooth_device_client_;
177 183
178 scoped_ptr<MockIBusClient> mock_ibus_client_; 184 scoped_ptr<MockIBusClient> mock_ibus_client_;
179 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_; 185 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_;
180 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; 186 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_;
181 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; 187 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_;
182 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; 188 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_;
183 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_; 189 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_;
184 190
191 scoped_ptr<PowerPolicyController> power_policy_controller_;
satorux1 2013/05/01 04:39:58 Is it ok to use the real implementation? Looks thi
Haruki Sato 2013/05/01 05:38:58 It's a kind of translator or or a wrapper of Power
185 dbus::Bus* ibus_bus_; 192 dbus::Bus* ibus_bus_;
186 193
187 ObserverList<DBusThreadManagerObserver> observers_; 194 ObserverList<DBusThreadManagerObserver> observers_;
188 195
189 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); 196 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock);
190 }; 197 };
191 198
192 } // namespace chromeos 199 } // namespace chromeos
193 200
194 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 201 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698