| 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/disks/mock_disk_mount_manager.h" | 5 #include "chromeos/disks/mock_disk_mount_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 EXPECT_CALL(*this, disks()) | 151 EXPECT_CALL(*this, disks()) |
| 152 .WillRepeatedly(ReturnRef(disks_)); | 152 .WillRepeatedly(ReturnRef(disks_)); |
| 153 EXPECT_CALL(*this, mount_points()) | 153 EXPECT_CALL(*this, mount_points()) |
| 154 .WillRepeatedly(ReturnRef(mount_points_)); | 154 .WillRepeatedly(ReturnRef(mount_points_)); |
| 155 EXPECT_CALL(*this, FindDiskBySourcePath(_)) | 155 EXPECT_CALL(*this, FindDiskBySourcePath(_)) |
| 156 .Times(AnyNumber()); | 156 .Times(AnyNumber()); |
| 157 EXPECT_CALL(*this, EnsureMountInfoRefreshed(_, _)).Times(AnyNumber()); | 157 EXPECT_CALL(*this, EnsureMountInfoRefreshed(_, _)).Times(AnyNumber()); |
| 158 EXPECT_CALL(*this, MountPath(_, _, _, _, _)).Times(AnyNumber()); | 158 EXPECT_CALL(*this, MountPath(_, _, _, _, _)).Times(AnyNumber()); |
| 159 EXPECT_CALL(*this, UnmountPath(_, _, _)) | 159 EXPECT_CALL(*this, UnmountPath(_, _, _)) |
| 160 .Times(AnyNumber()); | 160 .Times(AnyNumber()); |
| 161 EXPECT_CALL(*this, RemountAllRemovableDrives(_)).Times(AnyNumber()); |
| 161 EXPECT_CALL(*this, FormatMountedDevice(_)) | 162 EXPECT_CALL(*this, FormatMountedDevice(_)) |
| 162 .Times(AnyNumber()); | 163 .Times(AnyNumber()); |
| 163 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) | 164 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) |
| 164 .Times(AnyNumber()); | 165 .Times(AnyNumber()); |
| 165 } | 166 } |
| 166 | 167 |
| 167 void MockDiskMountManager::CreateDiskEntryForMountDevice( | 168 void MockDiskMountManager::CreateDiskEntryForMountDevice( |
| 168 const DiskMountManager::MountPointInfo& mount_info, | 169 const DiskMountManager::MountPointInfo& mount_info, |
| 169 const std::string& device_id, | 170 const std::string& device_id, |
| 170 const std::string& device_label, | 171 const std::string& device_label, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 } | 228 } |
| 228 | 229 |
| 229 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, | 230 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, |
| 230 const std::string& path) { | 231 const std::string& path) { |
| 231 for (auto& observer : observers_) | 232 for (auto& observer : observers_) |
| 232 observer.OnDeviceEvent(event, path); | 233 observer.OnDeviceEvent(event, path); |
| 233 } | 234 } |
| 234 | 235 |
| 235 } // namespace disks | 236 } // namespace disks |
| 236 } // namespace chromeos | 237 } // namespace chromeos |
| OLD | NEW |