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 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*)); | 26 MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*)); |
27 MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*)); | 27 MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*)); |
28 MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void)); | 28 MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void)); |
29 MOCK_CONST_METHOD1(FindDiskBySourcePath, | 29 MOCK_CONST_METHOD1(FindDiskBySourcePath, |
30 const DiskMountManager::Disk*(const std::string&)); | 30 const DiskMountManager::Disk*(const std::string&)); |
31 MOCK_CONST_METHOD0(mount_points, | 31 MOCK_CONST_METHOD0(mount_points, |
32 const DiskMountManager::MountPointMap&(void)); | 32 const DiskMountManager::MountPointMap&(void)); |
33 MOCK_METHOD0(RequestMountInfoRefresh, void(void)); | 33 MOCK_METHOD0(RequestMountInfoRefresh, void(void)); |
34 MOCK_METHOD4(MountPath, void(const std::string&, const std::string&, | 34 MOCK_METHOD4(MountPath, void(const std::string&, const std::string&, |
35 const std::string&, MountType)); | 35 const std::string&, MountType)); |
36 MOCK_METHOD2(UnmountPath, void(const std::string&, UnmountOptions)); | 36 MOCK_METHOD3(UnmountPath, void(const std::string&, |
| 37 UnmountOptions, |
| 38 const DiskMountManager::UnmountPathCallback&)); |
37 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); | 39 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); |
38 MOCK_METHOD2( | 40 MOCK_METHOD2( |
39 UnmountDeviceRecursively, | 41 UnmountDeviceRecursively, |
40 void(const std::string&, | 42 void(const std::string&, |
41 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); | 43 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); |
42 | 44 |
43 // Invokes fake device insert events. | 45 // Invokes fake device insert events. |
44 void NotifyDeviceInsertEvents(); | 46 void NotifyDeviceInsertEvents(); |
45 | 47 |
46 // Invokes fake device remove events. | 48 // Invokes fake device remove events. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // The list of existing mount points. | 100 // The list of existing mount points. |
99 DiskMountManager::MountPointMap mount_points_; | 101 DiskMountManager::MountPointMap mount_points_; |
100 | 102 |
101 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); | 103 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); |
102 }; | 104 }; |
103 | 105 |
104 } // namespace disks | 106 } // namespace disks |
105 } // namespace chromeos | 107 } // namespace chromeos |
106 | 108 |
107 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 109 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
OLD | NEW |