OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 MOCK_METHOD1(AddObserver, void(MountLibrary::Observer*)); | 25 MOCK_METHOD1(AddObserver, void(MountLibrary::Observer*)); |
26 MOCK_METHOD1(RemoveObserver, void(MountLibrary::Observer*)); | 26 MOCK_METHOD1(RemoveObserver, void(MountLibrary::Observer*)); |
27 MOCK_CONST_METHOD0(disks, const MountLibrary::DiskMap&(void)); | 27 MOCK_CONST_METHOD0(disks, const MountLibrary::DiskMap&(void)); |
28 MOCK_CONST_METHOD0(mount_points, const MountLibrary::MountPointMap&(void)); | 28 MOCK_CONST_METHOD0(mount_points, const MountLibrary::MountPointMap&(void)); |
29 | 29 |
30 MOCK_METHOD0(RequestMountInfoRefresh, void(void)); | 30 MOCK_METHOD0(RequestMountInfoRefresh, void(void)); |
31 MOCK_METHOD3(MountPath, void(const char*, MountType, | 31 MOCK_METHOD3(MountPath, void(const char*, MountType, |
32 const MountPathOptions&)); | 32 const MountPathOptions&)); |
33 MOCK_METHOD1(UnmountPath, void(const char*)); | 33 MOCK_METHOD1(UnmountPath, void(const char*)); |
| 34 MOCK_METHOD1(FormatUnmountedDevice, void(const char*)); |
| 35 MOCK_METHOD1(FormatMountedDevice, void(const char*)); |
34 MOCK_METHOD3(UnmountDeviceRecursive, void(const char*, | 36 MOCK_METHOD3(UnmountDeviceRecursive, void(const char*, |
35 MountLibrary::UnmountDeviceRecursiveCallbackType, void*)); | 37 MountLibrary::UnmountDeviceRecursiveCallbackType, void*)); |
36 | 38 |
37 void FireDeviceInsertEvents(); | 39 void FireDeviceInsertEvents(); |
38 void FireDeviceRemoveEvents(); | 40 void FireDeviceRemoveEvents(); |
39 | 41 |
40 void SetupDefaultReplies(); | 42 void SetupDefaultReplies(); |
41 | 43 |
42 private: | 44 private: |
43 void AddObserverInternal(MountLibrary::Observer* observer); | 45 void AddObserverInternal(MountLibrary::Observer* observer); |
(...skipping 10 matching lines...) Expand all Loading... |
54 | 56 |
55 // The list of disks found. | 57 // The list of disks found. |
56 MountLibrary::DiskMap disks_; | 58 MountLibrary::DiskMap disks_; |
57 | 59 |
58 DISALLOW_COPY_AND_ASSIGN(MockMountLibrary); | 60 DISALLOW_COPY_AND_ASSIGN(MockMountLibrary); |
59 }; | 61 }; |
60 | 62 |
61 } // namespace chromeos | 63 } // namespace chromeos |
62 | 64 |
63 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ | 65 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_MOUNT_LIBRARY_H_ |
OLD | NEW |