| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" | 5 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h" | 7 #include "chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h" |
| 8 #include "chrome/browser/chromeos/dbus/mock_bluetooth_manager_client.h" | 8 #include "chrome/browser/chromeos/dbus/mock_bluetooth_manager_client.h" |
| 9 #include "chrome/browser/chromeos/dbus/mock_cros_disks_client.h" |
| 9 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" | 10 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" |
| 10 #include "chrome/browser/chromeos/dbus/mock_sensors_client.h" | 11 #include "chrome/browser/chromeos/dbus/mock_sensors_client.h" |
| 11 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" | 12 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" |
| 12 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" | 13 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" |
| 13 | 14 |
| 14 using ::testing::Return; | 15 using ::testing::Return; |
| 15 | 16 |
| 16 namespace chromeos { | 17 namespace chromeos { |
| 17 | 18 |
| 18 MockDBusThreadManager::MockDBusThreadManager() | 19 MockDBusThreadManager::MockDBusThreadManager() |
| 19 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), | 20 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), |
| 20 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), | 21 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), |
| 21 mock_power_manager_client_(new MockPowerManagerClient), | 22 mock_power_manager_client_(new MockPowerManagerClient), |
| 22 mock_sensors_client_(new MockSensorsClient), | 23 mock_sensors_client_(new MockSensorsClient), |
| 23 mock_session_manager_client_(new MockSessionManagerClient), | 24 mock_session_manager_client_(new MockSessionManagerClient), |
| 24 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient) { | 25 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient) { |
| 25 EXPECT_CALL(*this, GetBluetoothAdapterClient()) | 26 EXPECT_CALL(*this, GetBluetoothAdapterClient()) |
| 26 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); | 27 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); |
| 27 EXPECT_CALL(*this, GetBluetoothManagerClient()) | 28 EXPECT_CALL(*this, GetBluetoothManagerClient()) |
| 28 .WillRepeatedly(Return(mock_bluetooth_manager_client())); | 29 .WillRepeatedly(Return(mock_bluetooth_manager_client())); |
| 30 EXPECT_CALL(*this, GetCrosDisksClient()) |
| 31 .WillRepeatedly(Return(mock_cros_disks_client())); |
| 29 EXPECT_CALL(*this, GetPowerManagerClient()) | 32 EXPECT_CALL(*this, GetPowerManagerClient()) |
| 30 .WillRepeatedly(Return(mock_power_manager_client_.get())); | 33 .WillRepeatedly(Return(mock_power_manager_client_.get())); |
| 31 EXPECT_CALL(*this, GetSensorsClient()) | 34 EXPECT_CALL(*this, GetSensorsClient()) |
| 32 .WillRepeatedly(Return(mock_sensors_client_.get())); | 35 .WillRepeatedly(Return(mock_sensors_client_.get())); |
| 33 EXPECT_CALL(*this, GetSessionManagerClient()) | 36 EXPECT_CALL(*this, GetSessionManagerClient()) |
| 34 .WillRepeatedly(Return(mock_session_manager_client_.get())); | 37 .WillRepeatedly(Return(mock_session_manager_client_.get())); |
| 35 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) | 38 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) |
| 36 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); | 39 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); |
| 37 } | 40 } |
| 38 | 41 |
| 39 MockDBusThreadManager::~MockDBusThreadManager() {} | 42 MockDBusThreadManager::~MockDBusThreadManager() {} |
| 40 | 43 |
| 41 } // namespace chromeos | 44 } // namespace chromeos |
| OLD | NEW |