| 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" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace dbus { | 13 namespace dbus { |
| 14 | 14 |
| 15 class Bus; | 15 class Bus; |
| 16 | 16 |
| 17 } // namespace dbus | 17 } // namespace dbus |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 class MockBluetoothAdapterClient; | 21 class MockBluetoothAdapterClient; |
| 22 class MockBluetoothDeviceClient; | 22 class MockBluetoothDeviceClient; |
| 23 class MockBluetoothInputClient; | 23 class MockBluetoothInputClient; |
| 24 class MockBluetoothManagerClient; | 24 class MockBluetoothManagerClient; |
| 25 class MockBluetoothNodeClient; | 25 class MockBluetoothNodeClient; |
| 26 class MockBluetoothOutOfBandClient; |
| 26 class MockCashewClient; | 27 class MockCashewClient; |
| 27 class MockCrosDisksClient; | 28 class MockCrosDisksClient; |
| 28 class MockCryptohomeClient; | 29 class MockCryptohomeClient; |
| 29 class MockDebugDaemonClient; | 30 class MockDebugDaemonClient; |
| 30 class MockFlimflamDeviceClient; | 31 class MockFlimflamDeviceClient; |
| 31 class MockFlimflamIPConfigClient; | 32 class MockFlimflamIPConfigClient; |
| 32 class MockFlimflamManagerClient; | 33 class MockFlimflamManagerClient; |
| 33 class MockFlimflamNetworkClient; | 34 class MockFlimflamNetworkClient; |
| 34 class MockFlimflamProfileClient; | 35 class MockFlimflamProfileClient; |
| 35 class MockFlimflamServiceClient; | 36 class MockFlimflamServiceClient; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 52 virtual ~MockDBusThreadManager(); | 53 virtual ~MockDBusThreadManager(); |
| 53 | 54 |
| 54 MOCK_METHOD1(InitIBusBus, void(const std::string& ibus_address)); | 55 MOCK_METHOD1(InitIBusBus, void(const std::string& ibus_address)); |
| 55 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); | 56 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); |
| 56 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void)); | 57 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void)); |
| 57 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); | 58 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); |
| 58 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); | 59 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); |
| 59 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); | 60 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); |
| 60 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); | 61 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); |
| 61 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); | 62 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); |
| 63 MOCK_METHOD0(GetBluetoothOutOfBandClient, BluetoothOutOfBandClient*(void)); |
| 62 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); | 64 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); |
| 63 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); | 65 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); |
| 64 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); | 66 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); |
| 65 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); | 67 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); |
| 66 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); | 68 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); |
| 67 MOCK_METHOD0(GetFlimflamIPConfigClient, FlimflamIPConfigClient*(void)); | 69 MOCK_METHOD0(GetFlimflamIPConfigClient, FlimflamIPConfigClient*(void)); |
| 68 MOCK_METHOD0(GetFlimflamManagerClient, FlimflamManagerClient*(void)); | 70 MOCK_METHOD0(GetFlimflamManagerClient, FlimflamManagerClient*(void)); |
| 69 MOCK_METHOD0(GetFlimflamNetworkClient, FlimflamNetworkClient*(void)); | 71 MOCK_METHOD0(GetFlimflamNetworkClient, FlimflamNetworkClient*(void)); |
| 70 MOCK_METHOD0(GetFlimflamProfileClient, FlimflamProfileClient*(void)); | 72 MOCK_METHOD0(GetFlimflamProfileClient, FlimflamProfileClient*(void)); |
| 71 MOCK_METHOD0(GetFlimflamServiceClient, FlimflamServiceClient*(void)); | 73 MOCK_METHOD0(GetFlimflamServiceClient, FlimflamServiceClient*(void)); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 87 } | 89 } |
| 88 MockBluetoothInputClient* mock_bluetooth_input_client() { | 90 MockBluetoothInputClient* mock_bluetooth_input_client() { |
| 89 return mock_bluetooth_input_client_.get(); | 91 return mock_bluetooth_input_client_.get(); |
| 90 } | 92 } |
| 91 MockBluetoothManagerClient* mock_bluetooth_manager_client() { | 93 MockBluetoothManagerClient* mock_bluetooth_manager_client() { |
| 92 return mock_bluetooth_manager_client_.get(); | 94 return mock_bluetooth_manager_client_.get(); |
| 93 } | 95 } |
| 94 MockBluetoothNodeClient* mock_bluetooth_node_client() { | 96 MockBluetoothNodeClient* mock_bluetooth_node_client() { |
| 95 return mock_bluetooth_node_client_.get(); | 97 return mock_bluetooth_node_client_.get(); |
| 96 } | 98 } |
| 99 MockBluetoothOutOfBandClient* mock_bluetooth_out_of_band_client() { |
| 100 return mock_bluetooth_out_of_band_client_.get(); |
| 101 } |
| 97 MockCashewClient* mock_cashew_client() { | 102 MockCashewClient* mock_cashew_client() { |
| 98 return mock_cashew_client_.get(); | 103 return mock_cashew_client_.get(); |
| 99 } | 104 } |
| 100 MockCrosDisksClient* mock_cros_disks_client() { | 105 MockCrosDisksClient* mock_cros_disks_client() { |
| 101 return mock_cros_disks_client_.get(); | 106 return mock_cros_disks_client_.get(); |
| 102 } | 107 } |
| 103 MockCryptohomeClient* mock_cryptohome_client() { | 108 MockCryptohomeClient* mock_cryptohome_client() { |
| 104 return mock_cryptohome_client_.get(); | 109 return mock_cryptohome_client_.get(); |
| 105 } | 110 } |
| 106 MockDebugDaemonClient* mock_debugdaemon_client() { | 111 MockDebugDaemonClient* mock_debugdaemon_client() { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 MockIBusInputContextClient* mock_ibus_input_context_client() { | 156 MockIBusInputContextClient* mock_ibus_input_context_client() { |
| 152 return mock_ibus_input_context_client_.get(); | 157 return mock_ibus_input_context_client_.get(); |
| 153 } | 158 } |
| 154 | 159 |
| 155 private: | 160 private: |
| 156 scoped_ptr<MockBluetoothAdapterClient> mock_bluetooth_adapter_client_; | 161 scoped_ptr<MockBluetoothAdapterClient> mock_bluetooth_adapter_client_; |
| 157 scoped_ptr<MockBluetoothDeviceClient> mock_bluetooth_device_client_; | 162 scoped_ptr<MockBluetoothDeviceClient> mock_bluetooth_device_client_; |
| 158 scoped_ptr<MockBluetoothInputClient> mock_bluetooth_input_client_; | 163 scoped_ptr<MockBluetoothInputClient> mock_bluetooth_input_client_; |
| 159 scoped_ptr<MockBluetoothManagerClient> mock_bluetooth_manager_client_; | 164 scoped_ptr<MockBluetoothManagerClient> mock_bluetooth_manager_client_; |
| 160 scoped_ptr<MockBluetoothNodeClient> mock_bluetooth_node_client_; | 165 scoped_ptr<MockBluetoothNodeClient> mock_bluetooth_node_client_; |
| 166 scoped_ptr<MockBluetoothOutOfBandClient> mock_bluetooth_out_of_band_client_; |
| 161 scoped_ptr<MockCashewClient> mock_cashew_client_; | 167 scoped_ptr<MockCashewClient> mock_cashew_client_; |
| 162 scoped_ptr<MockCrosDisksClient> mock_cros_disks_client_; | 168 scoped_ptr<MockCrosDisksClient> mock_cros_disks_client_; |
| 163 scoped_ptr<MockCryptohomeClient> mock_cryptohome_client_; | 169 scoped_ptr<MockCryptohomeClient> mock_cryptohome_client_; |
| 164 scoped_ptr<MockDebugDaemonClient> mock_debugdaemon_client_; | 170 scoped_ptr<MockDebugDaemonClient> mock_debugdaemon_client_; |
| 165 scoped_ptr<MockFlimflamDeviceClient> mock_flimflam_device_client_; | 171 scoped_ptr<MockFlimflamDeviceClient> mock_flimflam_device_client_; |
| 166 scoped_ptr<MockFlimflamIPConfigClient> mock_flimflam_ipconfig_client_; | 172 scoped_ptr<MockFlimflamIPConfigClient> mock_flimflam_ipconfig_client_; |
| 167 scoped_ptr<MockFlimflamManagerClient> mock_flimflam_manager_client_; | 173 scoped_ptr<MockFlimflamManagerClient> mock_flimflam_manager_client_; |
| 168 scoped_ptr<MockFlimflamNetworkClient> mock_flimflam_network_client_; | 174 scoped_ptr<MockFlimflamNetworkClient> mock_flimflam_network_client_; |
| 169 scoped_ptr<MockFlimflamProfileClient> mock_flimflam_profile_client_; | 175 scoped_ptr<MockFlimflamProfileClient> mock_flimflam_profile_client_; |
| 170 scoped_ptr<MockFlimflamServiceClient> mock_flimflam_service_client_; | 176 scoped_ptr<MockFlimflamServiceClient> mock_flimflam_service_client_; |
| 171 scoped_ptr<MockGsmSMSClient> mock_gsm_sms_client_; | 177 scoped_ptr<MockGsmSMSClient> mock_gsm_sms_client_; |
| 172 scoped_ptr<MockImageBurnerClient> mock_image_burner_client_; | 178 scoped_ptr<MockImageBurnerClient> mock_image_burner_client_; |
| 173 scoped_ptr<MockIntrospectableClient> mock_introspectable_client_; | 179 scoped_ptr<MockIntrospectableClient> mock_introspectable_client_; |
| 174 scoped_ptr<MockPowerManagerClient> mock_power_manager_client_; | 180 scoped_ptr<MockPowerManagerClient> mock_power_manager_client_; |
| 175 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; | 181 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; |
| 176 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; | 182 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; |
| 177 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; | 183 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; |
| 178 scoped_ptr<MockIBusClient> mock_ibus_client_; | 184 scoped_ptr<MockIBusClient> mock_ibus_client_; |
| 179 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; | 185 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; |
| 180 | 186 |
| 181 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); | 187 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); |
| 182 }; | 188 }; |
| 183 | 189 |
| 184 } // namespace chromeos | 190 } // namespace chromeos |
| 185 | 191 |
| 186 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ | 192 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |