| 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 "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class MockUpdateEngineClient; | 42 class MockUpdateEngineClient; |
| 43 | 43 |
| 44 // This class provides a mock DBusThreadManager with mock clients | 44 // This class provides a mock DBusThreadManager with mock clients |
| 45 // installed. You can customize the behaviors of mock clients with | 45 // installed. You can customize the behaviors of mock clients with |
| 46 // mock_foo_client() functions. | 46 // mock_foo_client() functions. |
| 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 MOCK_METHOD1(MaybeResetIBusBus, void(const std::string& ibus_address)); |
| 52 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); | 53 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); |
| 54 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void)); |
| 53 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); | 55 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); |
| 54 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); | 56 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); |
| 55 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); | 57 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); |
| 56 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); | 58 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); |
| 57 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); | 59 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); |
| 58 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); | 60 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); |
| 59 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); | 61 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); |
| 60 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); | 62 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); |
| 61 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); | 63 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); |
| 62 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); | 64 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; | 165 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; |
| 164 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; | 166 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; |
| 165 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; | 167 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; |
| 166 | 168 |
| 167 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); | 169 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace chromeos | 172 } // namespace chromeos |
| 171 | 173 |
| 172 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ | 174 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |