| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 EXPECT_CALL(*this, AddObserver(_)) | 155 EXPECT_CALL(*this, AddObserver(_)) |
| 156 .Times(AnyNumber()); | 156 .Times(AnyNumber()); |
| 157 EXPECT_CALL(*this, RemoveObserver(_)) | 157 EXPECT_CALL(*this, RemoveObserver(_)) |
| 158 .Times(AnyNumber()); | 158 .Times(AnyNumber()); |
| 159 EXPECT_CALL(*this, disks()) | 159 EXPECT_CALL(*this, disks()) |
| 160 .WillRepeatedly(ReturnRef(disks_)); | 160 .WillRepeatedly(ReturnRef(disks_)); |
| 161 EXPECT_CALL(*this, mount_points()) | 161 EXPECT_CALL(*this, mount_points()) |
| 162 .WillRepeatedly(ReturnRef(mount_points_)); | 162 .WillRepeatedly(ReturnRef(mount_points_)); |
| 163 EXPECT_CALL(*this, FindDiskBySourcePath(_)) | 163 EXPECT_CALL(*this, FindDiskBySourcePath(_)) |
| 164 .Times(AnyNumber()); | 164 .Times(AnyNumber()); |
| 165 EXPECT_CALL(*this, RequestMountInfoRefresh()) | 165 EXPECT_CALL(*this, EnsureMountInfoRefreshed(_)) |
| 166 .Times(AnyNumber()); | 166 .Times(AnyNumber()); |
| 167 EXPECT_CALL(*this, MountPath(_, _, _, _)) | 167 EXPECT_CALL(*this, MountPath(_, _, _, _)) |
| 168 .Times(AnyNumber()); | 168 .Times(AnyNumber()); |
| 169 EXPECT_CALL(*this, UnmountPath(_, _, _)) | 169 EXPECT_CALL(*this, UnmountPath(_, _, _)) |
| 170 .Times(AnyNumber()); | 170 .Times(AnyNumber()); |
| 171 EXPECT_CALL(*this, FormatMountedDevice(_)) | 171 EXPECT_CALL(*this, FormatMountedDevice(_)) |
| 172 .Times(AnyNumber()); | 172 .Times(AnyNumber()); |
| 173 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) | 173 EXPECT_CALL(*this, UnmountDeviceRecursively(_, _)) |
| 174 .Times(AnyNumber()); | 174 .Times(AnyNumber()); |
| 175 } | 175 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 FOR_EACH_OBSERVER(Observer, observers_, OnDiskEvent(event, disk)); | 240 FOR_EACH_OBSERVER(Observer, observers_, OnDiskEvent(event, disk)); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, | 243 void MockDiskMountManager::NotifyDeviceChanged(DeviceEvent event, |
| 244 const std::string& path) { | 244 const std::string& path) { |
| 245 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceEvent(event, path)); | 245 FOR_EACH_OBSERVER(Observer, observers_, OnDeviceEvent(event, path)); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace disks | 248 } // namespace disks |
| 249 } // namespace chromeos | 249 } // namespace chromeos |
| OLD | NEW |