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

Unified Diff: chrome/browser/chromeos/disks/mock_disk_mount_manager.h

Issue 10829160: Created a helper function "FindDiskBySourcePath" in DiskMountManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/disks/mock_disk_mount_manager.h
diff --git a/chrome/browser/chromeos/disks/mock_disk_mount_manager.h b/chrome/browser/chromeos/disks/mock_disk_mount_manager.h
index 78d787b7e65d4d867979a5d76562ffb4fd572629..1ad71bb382ee0a53f48ef75a3b2eabbfe34d5258 100644
--- a/chrome/browser/chromeos/disks/mock_disk_mount_manager.h
+++ b/chrome/browser/chromeos/disks/mock_disk_mount_manager.h
@@ -26,6 +26,8 @@ class MockDiskMountManager : public DiskMountManager {
MOCK_METHOD1(AddObserver, void(DiskMountManager::Observer*));
MOCK_METHOD1(RemoveObserver, void(DiskMountManager::Observer*));
MOCK_CONST_METHOD0(disks, const DiskMountManager::DiskMap&(void));
+ MOCK_CONST_METHOD1(FindDiskBySourcePath,
+ const DiskMountManager::Disk*(const std::string&));
MOCK_CONST_METHOD0(mount_points,
const DiskMountManager::MountPointMap&(void));
MOCK_METHOD0(RequestMountInfoRefresh, void(void));
@@ -72,6 +74,11 @@ class MockDiskMountManager : public DiskMountManager {
// This function is primarily for MediaDeviceNotificationsTest.
const DiskMountManager::MountPointMap& mountPointsInternal() const;
+ // Returns Disk object associated with the |source_path| or NULL on failure.
+ // This function is primarily for MediaDeviceNotificationsTest.
tbarzic 2012/08/06 18:12:08 nit: I'd loose the second sentence here. (it is us
kmadhusu 2012/08/06 21:17:38 Done.
+ const DiskMountManager::Disk* FindDiskBySourcePathInternal(
+ const std::string& source_path) const;
+
// Notifies observers about device status update.
void NotifyDeviceChanged(DiskMountManagerEventType event,
const std::string& path);

Powered by Google App Engine
This is Rietveld 408576698