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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 .Times(AnyNumber()); | 143 .Times(AnyNumber()); |
144 EXPECT_CALL(*this, RemoveObserver(_)) | 144 EXPECT_CALL(*this, RemoveObserver(_)) |
145 .Times(AnyNumber()); | 145 .Times(AnyNumber()); |
146 EXPECT_CALL(*this, disks()) | 146 EXPECT_CALL(*this, disks()) |
147 .WillRepeatedly(ReturnRef(disks_)); | 147 .WillRepeatedly(ReturnRef(disks_)); |
148 EXPECT_CALL(*this, mount_points()) | 148 EXPECT_CALL(*this, mount_points()) |
149 .WillRepeatedly(ReturnRef(mount_points_)); | 149 .WillRepeatedly(ReturnRef(mount_points_)); |
150 EXPECT_CALL(*this, FindDiskBySourcePath(_)) | 150 EXPECT_CALL(*this, FindDiskBySourcePath(_)) |
151 .Times(AnyNumber()); | 151 .Times(AnyNumber()); |
152 EXPECT_CALL(*this, EnsureMountInfoRefreshed(_, _)).Times(AnyNumber()); | 152 EXPECT_CALL(*this, EnsureMountInfoRefreshed(_, _)).Times(AnyNumber()); |
153 EXPECT_CALL(*this, MountPath(_, _, _, _)) | 153 EXPECT_CALL(*this, MountPath(_, _, _, _, _)).Times(AnyNumber()); |
154 .Times(AnyNumber()); | |
155 EXPECT_CALL(*this, UnmountPath(_, _, _)) | 154 EXPECT_CALL(*this, UnmountPath(_, _, _)) |
156 .Times(AnyNumber()); | 155 .Times(AnyNumber()); |
157 EXPECT_CALL(*this, FormatMountedDevice(_)) | 156 EXPECT_CALL(*this, FormatMountedDevice(_)) |
158 .Times(AnyNumber()); | 157 .Times(AnyNumber()); |
159 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) | 158 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) |
160 .Times(AnyNumber()); | 159 .Times(AnyNumber()); |
161 } | 160 } |
162 | 161 |
163 void MockDiskMountManager::CreateDiskEntryForMountDevice( | 162 void MockDiskMountManager::CreateDiskEntryForMountDevice( |
164 const DiskMountManager::MountPointInfo& mount_info, | 163 const DiskMountManager::MountPointInfo& mount_info, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 FOR_EACH_OBSERVER(Observer, observers_, OnDiskEvent(event, disk)); | 233 FOR_EACH_OBSERVER(Observer, observers_, OnDiskEvent(event, disk)); |
235 } | 234 } |
236 | 235 |
237 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, | 236 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, |
238 const std::string& path) { | 237 const std::string& path) { |
239 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceEvent(event, path)); | 238 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceEvent(event, path)); |
240 } | 239 } |
241 | 240 |
242 } // namespace disks | 241 } // namespace disks |
243 } // namespace chromeos | 242 } // namespace chromeos |
OLD | NEW |