OLD | NEW |
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_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ |
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class MockDBusThreadManager : public DBusThreadManager { | 47 class MockDBusThreadManager : public DBusThreadManager { |
48 public: | 48 public: |
49 MockDBusThreadManager(); | 49 MockDBusThreadManager(); |
50 virtual ~MockDBusThreadManager(); | 50 virtual ~MockDBusThreadManager(); |
51 | 51 |
52 void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 52 void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
53 void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 53 void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
54 MOCK_METHOD2(InitIBusBus, void(const std::string& ibus_address, | 54 MOCK_METHOD2(InitIBusBus, void(const std::string& ibus_address, |
55 const base::Closure& closure)); | 55 const base::Closure& closure)); |
56 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); | 56 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); |
57 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void)); | |
58 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); | 57 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); |
59 MOCK_METHOD0(GetBluetoothAgentManagerClient, | 58 MOCK_METHOD0(GetBluetoothAgentManagerClient, |
60 BluetoothAgentManagerClient*(void)); | 59 BluetoothAgentManagerClient*(void)); |
61 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); | 60 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); |
62 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); | 61 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); |
63 MOCK_METHOD0(GetBluetoothProfileManagerClient, | 62 MOCK_METHOD0(GetBluetoothProfileManagerClient, |
64 BluetoothProfileManagerClient*(void)); | 63 BluetoothProfileManagerClient*(void)); |
65 MOCK_METHOD0(GetCrasAudioClient, CrasAudioClient*(void)); | 64 MOCK_METHOD0(GetCrasAudioClient, CrasAudioClient*(void)); |
66 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); | 65 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); |
67 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); | 66 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); |
(...skipping 12 matching lines...) Expand all Loading... |
80 MOCK_METHOD0(GetNfcManagerClient, NfcManagerClient*(void)); | 79 MOCK_METHOD0(GetNfcManagerClient, NfcManagerClient*(void)); |
81 MOCK_METHOD0(GetNfcTagClient, NfcTagClient*(void)); | 80 MOCK_METHOD0(GetNfcTagClient, NfcTagClient*(void)); |
82 MOCK_METHOD0(GetPermissionBrokerClient, PermissionBrokerClient*(void)); | 81 MOCK_METHOD0(GetPermissionBrokerClient, PermissionBrokerClient*(void)); |
83 MOCK_METHOD0(GetPowerManagerClient, PowerManagerClient*(void)); | 82 MOCK_METHOD0(GetPowerManagerClient, PowerManagerClient*(void)); |
84 MOCK_METHOD0(GetPowerPolicyController, PowerPolicyController*(void)); | 83 MOCK_METHOD0(GetPowerPolicyController, PowerPolicyController*(void)); |
85 MOCK_METHOD0(GetSessionManagerClient, SessionManagerClient*(void)); | 84 MOCK_METHOD0(GetSessionManagerClient, SessionManagerClient*(void)); |
86 MOCK_METHOD0(GetSMSClient, SMSClient*(void)); | 85 MOCK_METHOD0(GetSMSClient, SMSClient*(void)); |
87 MOCK_METHOD0(GetSystemClockClient, SystemClockClient*(void)); | 86 MOCK_METHOD0(GetSystemClockClient, SystemClockClient*(void)); |
88 MOCK_METHOD0(GetUpdateEngineClient, UpdateEngineClient*(void)); | 87 MOCK_METHOD0(GetUpdateEngineClient, UpdateEngineClient*(void)); |
89 MOCK_METHOD0(GetIBusClient, IBusClient*(void)); | 88 MOCK_METHOD0(GetIBusClient, IBusClient*(void)); |
90 MOCK_METHOD0(GetIBusEngineFactoryService, IBusEngineFactoryService*(void)); | |
91 MOCK_METHOD1(GetIBusEngineService, | |
92 IBusEngineService*(const dbus::ObjectPath& object_path)); | |
93 MOCK_METHOD1(RemoveIBusEngineService, | |
94 void(const dbus::ObjectPath& object_path)); | |
95 | 89 |
96 FakeBluetoothAdapterClient* fake_bluetooth_adapter_client() { | 90 FakeBluetoothAdapterClient* fake_bluetooth_adapter_client() { |
97 return fake_bluetooth_adapter_client_.get(); | 91 return fake_bluetooth_adapter_client_.get(); |
98 } | 92 } |
99 FakeBluetoothAgentManagerClient* fake_bluetooth_agent_manager_client() { | 93 FakeBluetoothAgentManagerClient* fake_bluetooth_agent_manager_client() { |
100 return fake_bluetooth_agent_manager_client_.get(); | 94 return fake_bluetooth_agent_manager_client_.get(); |
101 } | 95 } |
102 FakeBluetoothDeviceClient* fake_bluetooth_device_client() { | 96 FakeBluetoothDeviceClient* fake_bluetooth_device_client() { |
103 return fake_bluetooth_device_client_.get(); | 97 return fake_bluetooth_device_client_.get(); |
104 } | 98 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 scoped_ptr<MockShillProfileClient> mock_shill_profile_client_; | 163 scoped_ptr<MockShillProfileClient> mock_shill_profile_client_; |
170 scoped_ptr<MockShillServiceClient> mock_shill_service_client_; | 164 scoped_ptr<MockShillServiceClient> mock_shill_service_client_; |
171 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; | 165 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; |
172 | 166 |
173 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); | 167 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); |
174 }; | 168 }; |
175 | 169 |
176 } // namespace chromeos | 170 } // namespace chromeos |
177 | 171 |
178 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ | 172 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |