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

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

Issue 23680003: Delete IBusPanelService from DBusThreadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the codebase. Created 7 years, 3 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
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 20 matching lines...) Expand all
31 class FakeImageBurnerClient; 31 class FakeImageBurnerClient;
32 class FakeSessionManagerClient; 32 class FakeSessionManagerClient;
33 class FakeShillDeviceClient; 33 class FakeShillDeviceClient;
34 class FakeShillManagerClient; 34 class FakeShillManagerClient;
35 class FakeSystemClockClient; 35 class FakeSystemClockClient;
36 class FakeUpdateEngineClient; 36 class FakeUpdateEngineClient;
37 class MockIBusClient; 37 class MockIBusClient;
38 class MockIBusEngineFactoryService; 38 class MockIBusEngineFactoryService;
39 class MockIBusEngineService; 39 class MockIBusEngineService;
40 class MockIBusInputContextClient; 40 class MockIBusInputContextClient;
41 class MockIBusPanelService;
42 41
43 // This class provides an another mock DBusThreadManager without gmock 42 // This class provides an another mock DBusThreadManager without gmock
44 // dependency. This class is used for places where GMock is not allowed 43 // dependency. This class is used for places where GMock is not allowed
45 // (ex. ui/) or is not used. 44 // (ex. ui/) or is not used.
46 // TODO(haruki): Along with crbug.com/223061, we can rename this class to 45 // TODO(haruki): Along with crbug.com/223061, we can rename this class to
47 // clarify that this can also provides fakes and stubs. 46 // clarify that this can also provides fakes and stubs.
48 class MockDBusThreadManagerWithoutGMock : public DBusThreadManager { 47 class MockDBusThreadManagerWithoutGMock : public DBusThreadManager {
49 public: 48 public:
50 MockDBusThreadManagerWithoutGMock(); 49 MockDBusThreadManagerWithoutGMock();
51 virtual ~MockDBusThreadManagerWithoutGMock(); 50 virtual ~MockDBusThreadManagerWithoutGMock();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual SMSClient* GetSMSClient() OVERRIDE; 83 virtual SMSClient* GetSMSClient() OVERRIDE;
85 virtual SystemClockClient* GetSystemClockClient() OVERRIDE; 84 virtual SystemClockClient* GetSystemClockClient() OVERRIDE;
86 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE; 85 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE;
87 virtual IBusClient* GetIBusClient() OVERRIDE; 86 virtual IBusClient* GetIBusClient() OVERRIDE;
88 virtual IBusInputContextClient* GetIBusInputContextClient() OVERRIDE; 87 virtual IBusInputContextClient* GetIBusInputContextClient() OVERRIDE;
89 virtual IBusEngineFactoryService* GetIBusEngineFactoryService() OVERRIDE; 88 virtual IBusEngineFactoryService* GetIBusEngineFactoryService() OVERRIDE;
90 virtual IBusEngineService* GetIBusEngineService( 89 virtual IBusEngineService* GetIBusEngineService(
91 const dbus::ObjectPath& object_path) OVERRIDE; 90 const dbus::ObjectPath& object_path) OVERRIDE;
92 virtual void RemoveIBusEngineService( 91 virtual void RemoveIBusEngineService(
93 const dbus::ObjectPath& object_path) OVERRIDE; 92 const dbus::ObjectPath& object_path) OVERRIDE;
94 virtual IBusPanelService* GetIBusPanelService() OVERRIDE;
95 93
96 FakeBluetoothAdapterClient* fake_bluetooth_adapter_client() { 94 FakeBluetoothAdapterClient* fake_bluetooth_adapter_client() {
97 return fake_bluetooth_adapter_client_.get(); 95 return fake_bluetooth_adapter_client_.get();
98 } 96 }
99 97
100 FakeBluetoothAgentManagerClient* fake_bluetooth_agent_manager_client() { 98 FakeBluetoothAgentManagerClient* fake_bluetooth_agent_manager_client() {
101 return fake_bluetooth_agent_manager_client_.get(); 99 return fake_bluetooth_agent_manager_client_.get();
102 } 100 }
103 101
104 FakeBluetoothDeviceClient* fake_bluetooth_device_client() { 102 FakeBluetoothDeviceClient* fake_bluetooth_device_client() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 160 }
163 161
164 MockIBusEngineService* mock_ibus_engine_service() { 162 MockIBusEngineService* mock_ibus_engine_service() {
165 return mock_ibus_engine_service_.get(); 163 return mock_ibus_engine_service_.get();
166 } 164 }
167 165
168 MockIBusEngineFactoryService* mock_ibus_engine_factory_service() { 166 MockIBusEngineFactoryService* mock_ibus_engine_factory_service() {
169 return mock_ibus_engine_factory_service_.get(); 167 return mock_ibus_engine_factory_service_.get();
170 } 168 }
171 169
172 MockIBusPanelService* mock_ibus_panel_service() {
173 return mock_ibus_panel_service_.get();
174 }
175
176 void set_ibus_bus(dbus::Bus* ibus_bus) { 170 void set_ibus_bus(dbus::Bus* ibus_bus) {
177 ibus_bus_ = ibus_bus; 171 ibus_bus_ = ibus_bus;
178 } 172 }
179 173
180 private: 174 private:
181 // Note: Keep this before other members so they can call AddObserver() in 175 // Note: Keep this before other members so they can call AddObserver() in
182 // their c'tors. 176 // their c'tors.
183 ObserverList<DBusThreadManagerObserver> observers_; 177 ObserverList<DBusThreadManagerObserver> observers_;
184 178
185 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; 179 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_;
(...skipping 11 matching lines...) Expand all
197 scoped_ptr<FakeShillDeviceClient> fake_shill_device_client_; 191 scoped_ptr<FakeShillDeviceClient> fake_shill_device_client_;
198 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_; 192 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_;
199 scoped_ptr<FakeSystemClockClient> fake_system_clock_client_; 193 scoped_ptr<FakeSystemClockClient> fake_system_clock_client_;
200 scoped_ptr<FakePowerManagerClient> fake_power_manager_client_; 194 scoped_ptr<FakePowerManagerClient> fake_power_manager_client_;
201 scoped_ptr<FakeUpdateEngineClient> fake_update_engine_client_; 195 scoped_ptr<FakeUpdateEngineClient> fake_update_engine_client_;
202 196
203 scoped_ptr<MockIBusClient> mock_ibus_client_; 197 scoped_ptr<MockIBusClient> mock_ibus_client_;
204 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; 198 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_;
205 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; 199 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_;
206 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; 200 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_;
207 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_;
208 201
209 scoped_ptr<PowerPolicyController> power_policy_controller_; 202 scoped_ptr<PowerPolicyController> power_policy_controller_;
210 dbus::Bus* ibus_bus_; 203 dbus::Bus* ibus_bus_;
211 204
212 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); 205 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock);
213 }; 206 };
214 207
215 } // namespace chromeos 208 } // namespace chromeos
216 209
217 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 210 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager.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