Chromium Code Reviews| 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 CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 6 #define CHROME_BROWSER_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 30 matching lines...) Expand all Loading... | |
| 41 | 41 |
| 42 // Invokes fake device insert events. | 42 // Invokes fake device insert events. |
| 43 void NotifyDeviceInsertEvents(); | 43 void NotifyDeviceInsertEvents(); |
| 44 | 44 |
| 45 // Invokes fake device remove events. | 45 // Invokes fake device remove events. |
| 46 void NotifyDeviceRemoveEvents(); | 46 void NotifyDeviceRemoveEvents(); |
| 47 | 47 |
| 48 // Sets up default results for mock methods. | 48 // Sets up default results for mock methods. |
| 49 void SetupDefaultReplies(); | 49 void SetupDefaultReplies(); |
| 50 | 50 |
| 51 void CreateDiskEntryForMountDevice( | |
|
Lei Zhang
2012/07/30 22:11:32
Briefly explain what this is used for.
kmadhusu
2012/07/30 22:51:14
Done.
| |
| 52 const DiskMountManager::MountPointInfo& mount_info, | |
| 53 const std::string& device_id); | |
| 54 void RemoveDiskEntryForMountDevice( | |
| 55 const DiskMountManager::MountPointInfo& mount_info); | |
| 56 | |
| 51 private: | 57 private: |
| 52 // Is used to implement AddObserver. | 58 // Is used to implement AddObserver. |
| 53 void AddObserverInternal(DiskMountManager::Observer* observer); | 59 void AddObserverInternal(DiskMountManager::Observer* observer); |
| 54 | 60 |
| 55 // Is used to implement RemoveObserver. | 61 // Is used to implement RemoveObserver. |
| 56 void RemoveObserverInternal(DiskMountManager::Observer* observer); | 62 void RemoveObserverInternal(DiskMountManager::Observer* observer); |
| 57 | 63 |
| 58 // Is used to implement disks. | 64 // Is used to implement disks. |
| 59 const DiskMountManager::DiskMap& disksInternal() const { return disks_; } | 65 const DiskMountManager::DiskMap& disksInternal() const { return disks_; } |
| 60 | 66 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 72 // The list of disks found. | 78 // The list of disks found. |
| 73 DiskMountManager::DiskMap disks_; | 79 DiskMountManager::DiskMap disks_; |
| 74 | 80 |
| 75 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); | 81 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); |
| 76 }; | 82 }; |
| 77 | 83 |
| 78 } // namespace disks | 84 } // namespace disks |
| 79 } // namespace chromeos | 85 } // namespace chromeos |
| 80 | 86 |
| 81 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ |
| OLD | NEW |