Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: chromeos/disks/mock_disk_mount_manager.h

Issue 2451603002: Add a method to remount all removable devices in DiskMountManager. (Closed)
Patch Set: Add is_mounted() method. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 28 matching lines...) Expand all
39 void(const EnsureMountInfoRefreshedCallback&, bool)); 39 void(const EnsureMountInfoRefreshedCallback&, bool));
40 MOCK_METHOD5(MountPath, 40 MOCK_METHOD5(MountPath,
41 void(const std::string&, 41 void(const std::string&,
42 const std::string&, 42 const std::string&,
43 const std::string&, 43 const std::string&,
44 MountType, 44 MountType,
45 MountAccessMode)); 45 MountAccessMode));
46 MOCK_METHOD3(UnmountPath, void(const std::string&, 46 MOCK_METHOD3(UnmountPath, void(const std::string&,
47 UnmountOptions, 47 UnmountOptions,
48 const DiskMountManager::UnmountPathCallback&)); 48 const DiskMountManager::UnmountPathCallback&));
49 MOCK_METHOD1(RemountAllRemovableDrives, void(MountAccessMode));
49 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); 50 MOCK_METHOD1(FormatMountedDevice, void(const std::string&));
50 MOCK_METHOD2( 51 MOCK_METHOD2(
51 UnmountDeviceRecursively, 52 UnmountDeviceRecursively,
52 void(const std::string&, 53 void(const std::string&,
53 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); 54 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&));
54 55
55 // Invokes fake device insert events. 56 // Invokes fake device insert events.
56 void NotifyDeviceInsertEvents(); 57 void NotifyDeviceInsertEvents();
57 58
58 // Invokes fake device remove events. 59 // Invokes fake device remove events.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // The list of existing mount points. 120 // The list of existing mount points.
120 DiskMountManager::MountPointMap mount_points_; 121 DiskMountManager::MountPointMap mount_points_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 123 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
123 }; 124 };
124 125
125 } // namespace disks 126 } // namespace disks
126 } // namespace chromeos 127 } // namespace chromeos
127 128
128 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 129 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/disks/disk_mount_manager_unittest.cc ('k') | chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698