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

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

Issue 10830003: Extract and dispatch device uuid in media device attached notification message. (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
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 30 matching lines...) Expand all
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 // Creates a fake disk entry for the mounted device. This function is
52 // primarily for MediaDeviceNotificationsTest.
Lei Zhang 2012/07/30 23:00:49 You may want to mention this is needed so MediaDev
kmadhusu 2012/07/30 23:08:29 I thought "This function is primarily for MediaDev
53 void CreateDiskEntryForMountDevice(
54 const DiskMountManager::MountPointInfo& mount_info,
55 const std::string& device_id);
56
57 // Removes the fake disk entry associated with the mounted device. This
58 // function is primarily for MediaDeviceNotificationsTest.
59 void RemoveDiskEntryForMountDevice(
60 const DiskMountManager::MountPointInfo& mount_info);
61
51 private: 62 private:
52 // Is used to implement AddObserver. 63 // Is used to implement AddObserver.
53 void AddObserverInternal(DiskMountManager::Observer* observer); 64 void AddObserverInternal(DiskMountManager::Observer* observer);
54 65
55 // Is used to implement RemoveObserver. 66 // Is used to implement RemoveObserver.
56 void RemoveObserverInternal(DiskMountManager::Observer* observer); 67 void RemoveObserverInternal(DiskMountManager::Observer* observer);
57 68
58 // Is used to implement disks. 69 // Is used to implement disks.
59 const DiskMountManager::DiskMap& disksInternal() const { return disks_; } 70 const DiskMountManager::DiskMap& disksInternal() const { return disks_; }
60 71
(...skipping 11 matching lines...) Expand all
72 // The list of disks found. 83 // The list of disks found.
73 DiskMountManager::DiskMap disks_; 84 DiskMountManager::DiskMap disks_;
74 85
75 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 86 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
76 }; 87 };
77 88
78 } // namespace disks 89 } // namespace disks
79 } // namespace chromeos 90 } // namespace chromeos
80 91
81 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/disks/disk_mount_manager.cc ('k') | chrome/browser/chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698