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

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

Issue 13890017: dbus:Add FakeImageBurnerClient FakeSystemClockClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 #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"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chromeos/dbus/dbus_thread_manager.h" 12 #include "chromeos/dbus/dbus_thread_manager.h"
13 13
14 namespace dbus { 14 namespace dbus {
15 class Bus; 15 class Bus;
16 class ObjectPath; 16 class ObjectPath;
17 } // namespace dbus 17 } // namespace dbus
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 class DBusThreadManagerObserver; 21 class DBusThreadManagerObserver;
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 FakeShillManagerClient; 29 class FakeShillManagerClient;
30 class FakeImageBurnerClient;
31 class FakeSystemClockClient;
30 class MockIBusClient; 32 class MockIBusClient;
31 class MockIBusConfigClient; 33 class MockIBusConfigClient;
32 class MockIBusEngineFactoryService; 34 class MockIBusEngineFactoryService;
33 class MockIBusEngineService; 35 class MockIBusEngineService;
34 class MockIBusInputContextClient; 36 class MockIBusInputContextClient;
35 class MockIBusPanelService; 37 class MockIBusPanelService;
36 38
37 // This class provides an another mock DBusThreadManager without gmock 39 // This class provides an another mock DBusThreadManager without gmock
38 // dependency. This class is used for places where GMock is not allowed 40 // dependency. This class is used for places where GMock is not allowed
39 // (ex. ui/) or is not used. 41 // (ex. ui/) or is not used.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 120 }
119 121
120 FakeCryptohomeClient* fake_cryptohome_client() { 122 FakeCryptohomeClient* fake_cryptohome_client() {
121 return fake_cryptohome_client_.get(); 123 return fake_cryptohome_client_.get();
122 } 124 }
123 125
124 FakeShillManagerClient* fake_shill_manager_client() { 126 FakeShillManagerClient* fake_shill_manager_client() {
125 return fake_shill_manager_client_.get(); 127 return fake_shill_manager_client_.get();
126 } 128 }
127 129
130 FakeImageBurnerClient* fake_image_burner_client() {
131 return fake_image_burner_client_.get();
132 }
133
134 FakeSystemClockClient* fake_system_clock_client() {
135 return fake_system_clock_client_.get();
136 }
137
128 MockIBusClient* mock_ibus_client() { 138 MockIBusClient* mock_ibus_client() {
129 return mock_ibus_client_.get(); 139 return mock_ibus_client_.get();
130 } 140 }
131 141
132 MockIBusConfigClient* mock_ibus_config_client() { 142 MockIBusConfigClient* mock_ibus_config_client() {
133 return mock_ibus_config_client_.get(); 143 return mock_ibus_config_client_.get();
134 } 144 }
135 145
136 MockIBusInputContextClient* mock_ibus_input_context_client() { 146 MockIBusInputContextClient* mock_ibus_input_context_client() {
137 return mock_ibus_input_context_client_.get(); 147 return mock_ibus_input_context_client_.get();
(...skipping 18 matching lines...) Expand all
156 private: 166 private:
157 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; 167 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_;
158 scoped_ptr<FakeBluetoothAgentManagerClient> 168 scoped_ptr<FakeBluetoothAgentManagerClient>
159 fake_bluetooth_agent_manager_client_; 169 fake_bluetooth_agent_manager_client_;
160 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_; 170 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_;
161 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_; 171 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_;
162 scoped_ptr<FakeBluetoothProfileManagerClient> 172 scoped_ptr<FakeBluetoothProfileManagerClient>
163 fake_bluetooth_profile_manager_client_; 173 fake_bluetooth_profile_manager_client_;
164 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_; 174 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_;
165 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_; 175 scoped_ptr<FakeCryptohomeClient> fake_cryptohome_client_;
176 scoped_ptr<FakeImageBurnerClient> fake_image_burner_client_;
166 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_; 177 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_;
178 scoped_ptr<FakeSystemClockClient> fake_system_clock_client_;
167 179
168 scoped_ptr<MockIBusClient> mock_ibus_client_; 180 scoped_ptr<MockIBusClient> mock_ibus_client_;
169 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_; 181 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_;
170 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; 182 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_;
171 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; 183 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_;
172 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; 184 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_;
173 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_; 185 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_;
174 186
175 dbus::Bus* ibus_bus_; 187 dbus::Bus* ibus_bus_;
176 188
177 ObserverList<DBusThreadManagerObserver> observers_; 189 ObserverList<DBusThreadManagerObserver> observers_;
178 190
179 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); 191 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock);
180 }; 192 };
181 193
182 } // namespace chromeos 194 } // namespace chromeos
183 195
184 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 196 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/image_burner_client.cc ('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