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

Side by Side Diff: chrome/browser/chromeos/disks/mock_disk_mount_manager.h

Issue 10830165: Retry: [CrOS] Enumerate existing mount points and check for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 private: 62 private:
63 // Is used to implement AddObserver. 63 // Is used to implement AddObserver.
64 void AddObserverInternal(DiskMountManager::Observer* observer); 64 void AddObserverInternal(DiskMountManager::Observer* observer);
65 65
66 // Is used to implement RemoveObserver. 66 // Is used to implement RemoveObserver.
67 void RemoveObserverInternal(DiskMountManager::Observer* observer); 67 void RemoveObserverInternal(DiskMountManager::Observer* observer);
68 68
69 // Is used to implement disks. 69 // Is used to implement disks.
70 const DiskMountManager::DiskMap& disksInternal() const { return disks_; } 70 const DiskMountManager::DiskMap& disksInternal() const { return disks_; }
71 71
72 // This function is primarily for MediaDeviceNotificationsTest.
73 const DiskMountManager::MountPointMap& mountPointsInternal() const;
Lei Zhang 2012/08/03 18:39:54 mountPointsInternalForTest() ?
tbarzic 2012/08/03 18:42:49 I don't think "ForTest" is needed.. this is a mock
kmadhusu 2012/08/03 18:42:51 The current name matches other helper function nam
74
72 // Notifies observers about device status update. 75 // Notifies observers about device status update.
73 void NotifyDeviceChanged(DiskMountManagerEventType event, 76 void NotifyDeviceChanged(DiskMountManagerEventType event,
74 const std::string& path); 77 const std::string& path);
75 78
76 // Notifies observers about disk status update. 79 // Notifies observers about disk status update.
77 void NotifyDiskChanged(DiskMountManagerEventType event, 80 void NotifyDiskChanged(DiskMountManagerEventType event,
78 const DiskMountManager::Disk* disk); 81 const DiskMountManager::Disk* disk);
79 82
80 // The list of observers. 83 // The list of observers.
81 ObserverList<DiskMountManager::Observer> observers_; 84 ObserverList<DiskMountManager::Observer> observers_;
82 85
83 // The list of disks found. 86 // The list of disks found.
84 DiskMountManager::DiskMap disks_; 87 DiskMountManager::DiskMap disks_;
85 88
89 // The list of existing mount points.
90 DiskMountManager::MountPointMap mount_points_;
91
86 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 92 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
87 }; 93 };
88 94
89 } // namespace disks 95 } // namespace disks
90 } // namespace chromeos 96 } // namespace chromeos
91 97
92 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698