| 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/ibus/mock_ibus_client.h" | 7 #include "chromeos/dbus/ibus/mock_ibus_client.h" |
| 8 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" | 8 #include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" |
| 9 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" | 9 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" |
| 10 #include "chromeos/dbus/mock_bluetooth_device_client.h" | 10 #include "chromeos/dbus/mock_bluetooth_device_client.h" |
| 11 #include "chromeos/dbus/mock_bluetooth_input_client.h" | 11 #include "chromeos/dbus/mock_bluetooth_input_client.h" |
| 12 #include "chromeos/dbus/mock_bluetooth_manager_client.h" | 12 #include "chromeos/dbus/mock_bluetooth_manager_client.h" |
| 13 #include "chromeos/dbus/mock_bluetooth_node_client.h" | 13 #include "chromeos/dbus/mock_bluetooth_node_client.h" |
| 14 #include "chromeos/dbus/mock_bluetooth_out_of_band_client.h" |
| 14 #include "chromeos/dbus/mock_cashew_client.h" | 15 #include "chromeos/dbus/mock_cashew_client.h" |
| 15 #include "chromeos/dbus/mock_cros_disks_client.h" | 16 #include "chromeos/dbus/mock_cros_disks_client.h" |
| 16 #include "chromeos/dbus/mock_cryptohome_client.h" | 17 #include "chromeos/dbus/mock_cryptohome_client.h" |
| 17 #include "chromeos/dbus/mock_debug_daemon_client.h" | 18 #include "chromeos/dbus/mock_debug_daemon_client.h" |
| 18 #include "chromeos/dbus/mock_flimflam_device_client.h" | 19 #include "chromeos/dbus/mock_flimflam_device_client.h" |
| 19 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h" | 20 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h" |
| 20 #include "chromeos/dbus/mock_flimflam_manager_client.h" | 21 #include "chromeos/dbus/mock_flimflam_manager_client.h" |
| 21 #include "chromeos/dbus/mock_flimflam_network_client.h" | 22 #include "chromeos/dbus/mock_flimflam_network_client.h" |
| 22 #include "chromeos/dbus/mock_flimflam_profile_client.h" | 23 #include "chromeos/dbus/mock_flimflam_profile_client.h" |
| 23 #include "chromeos/dbus/mock_flimflam_service_client.h" | 24 #include "chromeos/dbus/mock_flimflam_service_client.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 using ::testing::_; | 37 using ::testing::_; |
| 37 | 38 |
| 38 namespace chromeos { | 39 namespace chromeos { |
| 39 | 40 |
| 40 MockDBusThreadManager::MockDBusThreadManager() | 41 MockDBusThreadManager::MockDBusThreadManager() |
| 41 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), | 42 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), |
| 42 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), | 43 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), |
| 43 mock_bluetooth_input_client_(new MockBluetoothInputClient), | 44 mock_bluetooth_input_client_(new MockBluetoothInputClient), |
| 44 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), | 45 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), |
| 45 mock_bluetooth_node_client_(new MockBluetoothNodeClient), | 46 mock_bluetooth_node_client_(new MockBluetoothNodeClient), |
| 47 mock_bluetooth_out_of_band_client_(new MockBluetoothOutOfBandClient), |
| 46 mock_cashew_client_(new MockCashewClient), | 48 mock_cashew_client_(new MockCashewClient), |
| 47 mock_cros_disks_client_(new MockCrosDisksClient), | 49 mock_cros_disks_client_(new MockCrosDisksClient), |
| 48 mock_cryptohome_client_(new MockCryptohomeClient), | 50 mock_cryptohome_client_(new MockCryptohomeClient), |
| 49 mock_debugdaemon_client_(new MockDebugDaemonClient), | 51 mock_debugdaemon_client_(new MockDebugDaemonClient), |
| 50 mock_flimflam_device_client_(new MockFlimflamDeviceClient), | 52 mock_flimflam_device_client_(new MockFlimflamDeviceClient), |
| 51 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient), | 53 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient), |
| 52 mock_flimflam_manager_client_(new MockFlimflamManagerClient), | 54 mock_flimflam_manager_client_(new MockFlimflamManagerClient), |
| 53 mock_flimflam_network_client_(new MockFlimflamNetworkClient), | 55 mock_flimflam_network_client_(new MockFlimflamNetworkClient), |
| 54 mock_flimflam_profile_client_(new MockFlimflamProfileClient), | 56 mock_flimflam_profile_client_(new MockFlimflamProfileClient), |
| 55 mock_flimflam_service_client_(new MockFlimflamServiceClient), | 57 mock_flimflam_service_client_(new MockFlimflamServiceClient), |
| (...skipping 11 matching lines...) Expand all Loading... |
| 67 EXPECT_CALL(*this, GetBluetoothAdapterClient()) | 69 EXPECT_CALL(*this, GetBluetoothAdapterClient()) |
| 68 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); | 70 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); |
| 69 EXPECT_CALL(*this, GetBluetoothDeviceClient()) | 71 EXPECT_CALL(*this, GetBluetoothDeviceClient()) |
| 70 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); | 72 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); |
| 71 EXPECT_CALL(*this, GetBluetoothInputClient()) | 73 EXPECT_CALL(*this, GetBluetoothInputClient()) |
| 72 .WillRepeatedly(Return(mock_bluetooth_input_client_.get())); | 74 .WillRepeatedly(Return(mock_bluetooth_input_client_.get())); |
| 73 EXPECT_CALL(*this, GetBluetoothManagerClient()) | 75 EXPECT_CALL(*this, GetBluetoothManagerClient()) |
| 74 .WillRepeatedly(Return(mock_bluetooth_manager_client())); | 76 .WillRepeatedly(Return(mock_bluetooth_manager_client())); |
| 75 EXPECT_CALL(*this, GetBluetoothNodeClient()) | 77 EXPECT_CALL(*this, GetBluetoothNodeClient()) |
| 76 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); | 78 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); |
| 79 EXPECT_CALL(*this, GetBluetoothOutOfBandClient()) |
| 80 .WillRepeatedly(Return(mock_bluetooth_out_of_band_client_.get())); |
| 77 EXPECT_CALL(*this, GetCashewClient()) | 81 EXPECT_CALL(*this, GetCashewClient()) |
| 78 .WillRepeatedly(Return(mock_cashew_client())); | 82 .WillRepeatedly(Return(mock_cashew_client())); |
| 79 EXPECT_CALL(*this, GetCrosDisksClient()) | 83 EXPECT_CALL(*this, GetCrosDisksClient()) |
| 80 .WillRepeatedly(Return(mock_cros_disks_client())); | 84 .WillRepeatedly(Return(mock_cros_disks_client())); |
| 81 EXPECT_CALL(*this, GetCryptohomeClient()) | 85 EXPECT_CALL(*this, GetCryptohomeClient()) |
| 82 .WillRepeatedly(Return(mock_cryptohome_client())); | 86 .WillRepeatedly(Return(mock_cryptohome_client())); |
| 83 EXPECT_CALL(*this, GetDebugDaemonClient()) | 87 EXPECT_CALL(*this, GetDebugDaemonClient()) |
| 84 .WillRepeatedly(Return(mock_debugdaemon_client())); | 88 .WillRepeatedly(Return(mock_debugdaemon_client())); |
| 85 EXPECT_CALL(*this, GetFlimflamDeviceClient()) | 89 EXPECT_CALL(*this, GetFlimflamDeviceClient()) |
| 86 .WillRepeatedly(Return(mock_flimflam_device_client())); | 90 .WillRepeatedly(Return(mock_flimflam_device_client())); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 .Times(AnyNumber()); | 140 .Times(AnyNumber()); |
| 137 | 141 |
| 138 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. | 142 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. |
| 139 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) | 143 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) |
| 140 .Times(AnyNumber()); | 144 .Times(AnyNumber()); |
| 141 } | 145 } |
| 142 | 146 |
| 143 MockDBusThreadManager::~MockDBusThreadManager() {} | 147 MockDBusThreadManager::~MockDBusThreadManager() {} |
| 144 | 148 |
| 145 } // namespace chromeos | 149 } // namespace chromeos |
| OLD | NEW |