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

Unified Diff: chrome/browser/chromeos/cros/mock_mount_library.h

Issue 6674043: Rewritten MountLibrary to work with non-blocking mount API calls in libcros.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/mock_mount_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/mock_mount_library.h
===================================================================
--- chrome/browser/chromeos/cros/mock_mount_library.h (revision 78562)
+++ chrome/browser/chromeos/cros/mock_mount_library.h (working copy)
@@ -23,26 +23,31 @@
virtual ~MockMountLibrary();
MOCK_METHOD1(AddObserver, void(MountLibrary::Observer*));
- MOCK_METHOD1(MountPath, bool(const char*));
MOCK_METHOD1(RemoveObserver, void(MountLibrary::Observer*));
- MOCK_CONST_METHOD0(disks, const MountLibrary::DiskVector&(void));
+ MOCK_CONST_METHOD0(disks, const MountLibrary::DiskMap&(void));
+ MOCK_METHOD0(RequestMountInfoRefresh, void(void));
+ MOCK_METHOD1(MountPath, void(const char*));
+ MOCK_METHOD1(UnmountPath, void(const char*));
+
void FireDeviceInsertEvents();
void FireDeviceRemoveEvents();
private:
void AddObserverInternal(MountLibrary::Observer* observer);
void RemoveObserverInternal(MountLibrary::Observer* observer);
- const MountLibrary::DiskVector& disksInternal() const { return disks_; }
+ const MountLibrary::DiskMap& disksInternal() const { return disks_; }
- void UpdateMountStatus(MountEventType evt,
- const std::string& path);
+ void UpdateDeviceChanged(MountLibraryEventType evt,
+ const std::string& path);
+ void UpdateDiskChanged(MountLibraryEventType evt,
+ const MountLibrary::Disk* disk);
ObserverList<MountLibrary::Observer> observers_;
// The list of disks found.
- MountLibrary::DiskVector disks_;
+ MountLibrary::DiskMap disks_;
DISALLOW_COPY_AND_ASSIGN(MockMountLibrary);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/mock_mount_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698