| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 MOCK_METHOD0(Init, void(void)); | 30 MOCK_METHOD0(Init, void(void)); |
| 31 MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*)); | 31 MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*)); |
| 32 MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*)); | 32 MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*)); |
| 33 MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void)); | 33 MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void)); |
| 34 MOCK_CONST_METHOD1(FindDiskBySourcePath, | 34 MOCK_CONST_METHOD1(FindDiskBySourcePath, |
| 35 const DiskMountManager::Disk*(const std::string&)); | 35 const DiskMountManager::Disk*(const std::string&)); |
| 36 MOCK_CONST_METHOD0(mount_points, | 36 MOCK_CONST_METHOD0(mount_points, |
| 37 const DiskMountManager::MountPointMap&(void)); | 37 const DiskMountManager::MountPointMap&(void)); |
| 38 MOCK_METHOD2(EnsureMountInfoRefreshed, | 38 MOCK_METHOD2(EnsureMountInfoRefreshed, |
| 39 void(const EnsureMountInfoRefreshedCallback&, bool)); | 39 void(const EnsureMountInfoRefreshedCallback&, bool)); |
| 40 MOCK_METHOD4(MountPath, void(const std::string&, const std::string&, | 40 MOCK_METHOD5(MountPath, void(const std::string&, const std::string&, |
| 41 const std::string&, MountType)); | 41 const std::string&, MountType, |
| 42 MountAccessMode)); |
| 42 MOCK_METHOD3(UnmountPath, void(const std::string&, | 43 MOCK_METHOD3(UnmountPath, void(const std::string&, |
| 43 UnmountOptions, | 44 UnmountOptions, |
| 44 const DiskMountManager::UnmountPathCallback&)); | 45 const DiskMountManager::UnmountPathCallback&)); |
| 45 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); | 46 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); |
| 46 MOCK_METHOD2( | 47 MOCK_METHOD2( |
| 47 UnmountDeviceRecursively, | 48 UnmountDeviceRecursively, |
| 48 void(const std::string&, | 49 void(const std::string&, |
| 49 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); | 50 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); |
| 50 | 51 |
| 51 // Invokes fake device insert events. | 52 // Invokes fake device insert events. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // The list of existing mount points. | 116 // The list of existing mount points. |
| 116 DiskMountManager::MountPointMap mount_points_; | 117 DiskMountManager::MountPointMap mount_points_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); | 119 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace disks | 122 } // namespace disks |
| 122 } // namespace chromeos | 123 } // namespace chromeos |
| 123 | 124 |
| 124 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 125 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| OLD | NEW |