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

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

Issue 2201023002: Change access mode of disk devices when mounting based on config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 4 months 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
« no previous file with comments | « chromeos/disks/disk_mount_manager.cc ('k') | chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
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,
41 const std::string&, MountType)); 41 void(const std::string&,
42 const std::string&,
43 const std::string&,
44 MountType,
45 MountAccessMode));
42 MOCK_METHOD3(UnmountPath, void(const std::string&, 46 MOCK_METHOD3(UnmountPath, void(const std::string&,
43 UnmountOptions, 47 UnmountOptions,
44 const DiskMountManager::UnmountPathCallback&)); 48 const DiskMountManager::UnmountPathCallback&));
45 MOCK_METHOD1(FormatMountedDevice, void(const std::string&)); 49 MOCK_METHOD1(FormatMountedDevice, void(const std::string&));
46 MOCK_METHOD2( 50 MOCK_METHOD2(
47 UnmountDeviceRecursively, 51 UnmountDeviceRecursively,
48 void(const std::string&, 52 void(const std::string&,
49 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&)); 53 const DiskMountManager::UnmountDeviceRecursivelyCallbackType&));
50 54
51 // Invokes fake device insert events. 55 // Invokes fake device insert events.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // The list of existing mount points. 119 // The list of existing mount points.
116 DiskMountManager::MountPointMap mount_points_; 120 DiskMountManager::MountPointMap mount_points_;
117 121
118 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 122 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
119 }; 123 };
120 124
121 } // namespace disks 125 } // namespace disks
122 } // namespace chromeos 126 } // namespace chromeos
123 127
124 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 128 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/disks/disk_mount_manager.cc ('k') | chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698