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_power_manager_client.h" | 9 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" |
10 #include "chrome/browser/chromeos/dbus/mock_sensors_client.h" | 10 #include "chrome/browser/chromeos/dbus/mock_sensors_client.h" |
11 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" | 11 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" |
12 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" | 12 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" |
| 13 #include "chrome/browser/chromeos/dbus/mock_cros_disks_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), |
| 26 mock_cros_disks_client_(new MockCrosDisksClient) { |
25 EXPECT_CALL(*this, GetBluetoothAdapterClient()) | 27 EXPECT_CALL(*this, GetBluetoothAdapterClient()) |
26 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); | 28 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); |
27 EXPECT_CALL(*this, GetBluetoothManagerClient()) | 29 EXPECT_CALL(*this, GetBluetoothManagerClient()) |
28 .WillRepeatedly(Return(mock_bluetooth_manager_client())); | 30 .WillRepeatedly(Return(mock_bluetooth_manager_client())); |
29 EXPECT_CALL(*this, GetPowerManagerClient()) | 31 EXPECT_CALL(*this, GetPowerManagerClient()) |
30 .WillRepeatedly(Return(mock_power_manager_client_.get())); | 32 .WillRepeatedly(Return(mock_power_manager_client_.get())); |
31 EXPECT_CALL(*this, GetSensorsClient()) | 33 EXPECT_CALL(*this, GetSensorsClient()) |
32 .WillRepeatedly(Return(mock_sensors_client_.get())); | 34 .WillRepeatedly(Return(mock_sensors_client_.get())); |
33 EXPECT_CALL(*this, GetSessionManagerClient()) | 35 EXPECT_CALL(*this, GetSessionManagerClient()) |
34 .WillRepeatedly(Return(mock_session_manager_client_.get())); | 36 .WillRepeatedly(Return(mock_session_manager_client_.get())); |
35 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) | 37 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) |
36 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); | 38 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); |
| 39 EXPECT_CALL(*this, GetCrosDisksClient()) |
| 40 .WillRepeatedly(Return(mock_cros_disks_client_.get())); |
37 } | 41 } |
38 | 42 |
39 MockDBusThreadManager::~MockDBusThreadManager() {} | 43 MockDBusThreadManager::~MockDBusThreadManager() {} |
40 | 44 |
41 } // namespace chromeos | 45 } // namespace chromeos |
OLD | NEW |