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 #include "chromeos/dbus/mock_dbus_thread_manager.h" | 5 #include "chromeos/dbus/mock_dbus_thread_manager.h" |
6 | 6 |
7 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" | 7 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" |
8 #include "chromeos/dbus/mock_bluetooth_device_client.h" | 8 #include "chromeos/dbus/mock_bluetooth_device_client.h" |
9 #include "chromeos/dbus/mock_bluetooth_input_client.h" | 9 #include "chromeos/dbus/mock_bluetooth_input_client.h" |
10 #include "chromeos/dbus/mock_bluetooth_manager_client.h" | 10 #include "chromeos/dbus/mock_bluetooth_manager_client.h" |
11 #include "chromeos/dbus/mock_bluetooth_node_client.h" | 11 #include "chromeos/dbus/mock_bluetooth_node_client.h" |
12 #include "chromeos/dbus/mock_bluetooth_out_of_band_client.h" | 12 #include "chromeos/dbus/mock_bluetooth_out_of_band_client.h" |
13 #include "chromeos/dbus/mock_cashew_client.h" | 13 #include "chromeos/dbus/mock_cashew_client.h" |
14 #include "chromeos/dbus/mock_cros_disks_client.h" | 14 #include "chromeos/dbus/mock_cros_disks_client.h" |
15 #include "chromeos/dbus/mock_cryptohome_client.h" | 15 #include "chromeos/dbus/mock_cryptohome_client.h" |
16 #include "chromeos/dbus/mock_debug_daemon_client.h" | 16 #include "chromeos/dbus/mock_debug_daemon_client.h" |
17 #include "chromeos/dbus/mock_flimflam_device_client.h" | 17 #include "chromeos/dbus/mock_flimflam_device_client.h" |
18 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h" | 18 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h" |
19 #include "chromeos/dbus/mock_flimflam_manager_client.h" | 19 #include "chromeos/dbus/mock_flimflam_manager_client.h" |
20 #include "chromeos/dbus/mock_flimflam_network_client.h" | 20 #include "chromeos/dbus/mock_flimflam_network_client.h" |
21 #include "chromeos/dbus/mock_flimflam_profile_client.h" | 21 #include "chromeos/dbus/mock_flimflam_profile_client.h" |
22 #include "chromeos/dbus/mock_flimflam_service_client.h" | 22 #include "chromeos/dbus/mock_flimflam_service_client.h" |
23 #include "chromeos/dbus/mock_gsm_sms_client.h" | 23 #include "chromeos/dbus/mock_gsm_sms_client.h" |
24 #include "chromeos/dbus/mock_image_burner_client.h" | 24 #include "chromeos/dbus/mock_image_burner_client.h" |
25 #include "chromeos/dbus/mock_introspectable_client.h" | 25 #include "chromeos/dbus/mock_introspectable_client.h" |
| 26 #include "chromeos/dbus/mock_media_transfer_protocol_daemon_client.h" |
26 #include "chromeos/dbus/mock_modem_messaging_client.h" | 27 #include "chromeos/dbus/mock_modem_messaging_client.h" |
27 #include "chromeos/dbus/mock_power_manager_client.h" | 28 #include "chromeos/dbus/mock_power_manager_client.h" |
28 #include "chromeos/dbus/mock_session_manager_client.h" | 29 #include "chromeos/dbus/mock_session_manager_client.h" |
29 #include "chromeos/dbus/mock_sms_client.h" | 30 #include "chromeos/dbus/mock_sms_client.h" |
30 #include "chromeos/dbus/mock_speech_synthesizer_client.h" | 31 #include "chromeos/dbus/mock_speech_synthesizer_client.h" |
31 #include "chromeos/dbus/mock_update_engine_client.h" | 32 #include "chromeos/dbus/mock_update_engine_client.h" |
32 | 33 |
33 using ::testing::AnyNumber; | 34 using ::testing::AnyNumber; |
34 using ::testing::Return; | 35 using ::testing::Return; |
35 using ::testing::ReturnNull; | 36 using ::testing::ReturnNull; |
(...skipping 14 matching lines...) Expand all Loading... |
50 mock_debugdaemon_client_(new MockDebugDaemonClient), | 51 mock_debugdaemon_client_(new MockDebugDaemonClient), |
51 mock_flimflam_device_client_(new MockFlimflamDeviceClient), | 52 mock_flimflam_device_client_(new MockFlimflamDeviceClient), |
52 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient), | 53 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient), |
53 mock_flimflam_manager_client_(new MockFlimflamManagerClient), | 54 mock_flimflam_manager_client_(new MockFlimflamManagerClient), |
54 mock_flimflam_network_client_(new MockFlimflamNetworkClient), | 55 mock_flimflam_network_client_(new MockFlimflamNetworkClient), |
55 mock_flimflam_profile_client_(new MockFlimflamProfileClient), | 56 mock_flimflam_profile_client_(new MockFlimflamProfileClient), |
56 mock_flimflam_service_client_(new MockFlimflamServiceClient), | 57 mock_flimflam_service_client_(new MockFlimflamServiceClient), |
57 mock_gsm_sms_client_(new MockGsmSMSClient), | 58 mock_gsm_sms_client_(new MockGsmSMSClient), |
58 mock_image_burner_client_(new MockImageBurnerClient), | 59 mock_image_burner_client_(new MockImageBurnerClient), |
59 mock_introspectable_client_(new MockIntrospectableClient), | 60 mock_introspectable_client_(new MockIntrospectableClient), |
| 61 mock_media_transfer_protocol_daemon_client_( |
| 62 new MockMediaTransferProtocolDaemonClient), |
60 mock_modem_messaging_client_(new MockModemMessagingClient), | 63 mock_modem_messaging_client_(new MockModemMessagingClient), |
61 mock_power_manager_client_(new MockPowerManagerClient), | 64 mock_power_manager_client_(new MockPowerManagerClient), |
62 mock_session_manager_client_(new MockSessionManagerClient), | 65 mock_session_manager_client_(new MockSessionManagerClient), |
63 mock_sms_client_(new MockSMSClient), | 66 mock_sms_client_(new MockSMSClient), |
64 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient), | 67 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient), |
65 mock_update_engine_client_(new MockUpdateEngineClient) { | 68 mock_update_engine_client_(new MockUpdateEngineClient) { |
66 EXPECT_CALL(*this, GetBluetoothAdapterClient()) | 69 EXPECT_CALL(*this, GetBluetoothAdapterClient()) |
67 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); | 70 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); |
68 EXPECT_CALL(*this, GetBluetoothDeviceClient()) | 71 EXPECT_CALL(*this, GetBluetoothDeviceClient()) |
69 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); | 72 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); |
(...skipping 24 matching lines...) Expand all Loading... |
94 EXPECT_CALL(*this, GetFlimflamProfileClient()) | 97 EXPECT_CALL(*this, GetFlimflamProfileClient()) |
95 .WillRepeatedly(Return(mock_flimflam_profile_client())); | 98 .WillRepeatedly(Return(mock_flimflam_profile_client())); |
96 EXPECT_CALL(*this, GetFlimflamServiceClient()) | 99 EXPECT_CALL(*this, GetFlimflamServiceClient()) |
97 .WillRepeatedly(Return(mock_flimflam_service_client())); | 100 .WillRepeatedly(Return(mock_flimflam_service_client())); |
98 EXPECT_CALL(*this, GetGsmSMSClient()) | 101 EXPECT_CALL(*this, GetGsmSMSClient()) |
99 .WillRepeatedly(Return(mock_gsm_sms_client())); | 102 .WillRepeatedly(Return(mock_gsm_sms_client())); |
100 EXPECT_CALL(*this, GetImageBurnerClient()) | 103 EXPECT_CALL(*this, GetImageBurnerClient()) |
101 .WillRepeatedly(Return(mock_image_burner_client())); | 104 .WillRepeatedly(Return(mock_image_burner_client())); |
102 EXPECT_CALL(*this, GetIntrospectableClient()) | 105 EXPECT_CALL(*this, GetIntrospectableClient()) |
103 .WillRepeatedly(Return(mock_introspectable_client())); | 106 .WillRepeatedly(Return(mock_introspectable_client())); |
| 107 EXPECT_CALL(*this, GetMediaTransferProtocolDaemonClient()) |
| 108 .WillRepeatedly(Return(mock_media_transfer_protocol_daemon_client())); |
104 EXPECT_CALL(*this, GetModemMessagingClient()) | 109 EXPECT_CALL(*this, GetModemMessagingClient()) |
105 .WillRepeatedly(Return(mock_modem_messaging_client())); | 110 .WillRepeatedly(Return(mock_modem_messaging_client())); |
106 EXPECT_CALL(*this, GetPowerManagerClient()) | 111 EXPECT_CALL(*this, GetPowerManagerClient()) |
107 .WillRepeatedly(Return(mock_power_manager_client_.get())); | 112 .WillRepeatedly(Return(mock_power_manager_client_.get())); |
108 EXPECT_CALL(*this, GetSessionManagerClient()) | 113 EXPECT_CALL(*this, GetSessionManagerClient()) |
109 .WillRepeatedly(Return(mock_session_manager_client_.get())); | 114 .WillRepeatedly(Return(mock_session_manager_client_.get())); |
110 EXPECT_CALL(*this, GetSMSClient()) | 115 EXPECT_CALL(*this, GetSMSClient()) |
111 .WillRepeatedly(Return(mock_sms_client_.get())); | 116 .WillRepeatedly(Return(mock_sms_client_.get())); |
112 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) | 117 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) |
113 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); | 118 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 176 |
172 // Called from BrightnessController::GetBrightnessPercent as part of ash tray | 177 // Called from BrightnessController::GetBrightnessPercent as part of ash tray |
173 // initialization. | 178 // initialization. |
174 EXPECT_CALL(*mock_power_manager_client_.get(), GetScreenBrightnessPercent(_)) | 179 EXPECT_CALL(*mock_power_manager_client_.get(), GetScreenBrightnessPercent(_)) |
175 .Times(AnyNumber()); | 180 .Times(AnyNumber()); |
176 } | 181 } |
177 | 182 |
178 MockDBusThreadManager::~MockDBusThreadManager() {} | 183 MockDBusThreadManager::~MockDBusThreadManager() {} |
179 | 184 |
180 } // namespace chromeos | 185 } // namespace chromeos |
OLD | NEW |