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

Unified Diff: chromeos/disks/mock_disk_mount_manager.h

Issue 207383004: Adds a new removable storage provider for imageWriterPrivate on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/disks/mock_disk_mount_manager.h
diff --git a/chromeos/disks/mock_disk_mount_manager.h b/chromeos/disks/mock_disk_mount_manager.h
index ef3967be06f45fa59de194ae9119bee14c5fca08..077513361dbf006c8cb06e450b22d8c701928c7c 100644
--- a/chromeos/disks/mock_disk_mount_manager.h
+++ b/chromeos/disks/mock_disk_mount_manager.h
@@ -67,6 +67,12 @@ class MockDiskMountManager : public DiskMountManager {
void RemoveDiskEntryForMountDevice(
const DiskMountManager::MountPointInfo& mount_info);
+ // Adds a fake disk entry. This takes ownership of the pointer.
hashimoto 2014/03/24 04:37:09 You should use scoped_ptr instead of having this k
Drew Haven 2014/03/24 22:33:25 Done.
+ void AddDiskEntry(Disk* disk);
tbarzic 2014/03/22 02:01:02 you can use CreateDiskEntryForMountDevice/RemoveDi
hashimoto 2014/03/24 04:37:09 +1
Drew Haven 2014/03/24 22:33:25 The reason I wanted this was because many of the p
tbarzic 2014/03/24 22:48:42 What I had in mind was to change CreateDiskEntryF
+
+ // Removes a fake disk entry. This will delete the pointer.
+ void RemoveDiskEntry(Disk* disk);
hashimoto 2014/03/24 04:37:09 Why don't you pass device_path to this method?
Drew Haven 2014/03/24 22:33:25 Done.
+
private:
// Is used to implement AddObserver.
void AddObserverInternal(DiskMountManager::Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698