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

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

Issue 10908277: [Chrome OS] Construct device label and unique id using vendor and product details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit and updated comments in mock_disk_mount_manager.h Created 8 years, 3 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 CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 5 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 6 #define 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 51 // Creates a fake disk entry for the mounted device. This function is
52 // primarily for MediaDeviceNotificationsTest. 52 // primarily for RemovableDeviceNotificationsTest.
53 void CreateDiskEntryForMountDevice( 53 void CreateDiskEntryForMountDevice(
54 const DiskMountManager::MountPointInfo& mount_info, 54 const DiskMountManager::MountPointInfo& mount_info,
55 const std::string& device_id); 55 const std::string& device_id,
56 const std::string& device_label);
56 57
57 // Removes the fake disk entry associated with the mounted device. This 58 // Removes the fake disk entry associated with the mounted device. This
58 // function is primarily for MediaDeviceNotificationsTest. 59 // function is primarily for RemovableDeviceNotificationsTest.
59 void RemoveDiskEntryForMountDevice( 60 void RemoveDiskEntryForMountDevice(
60 const DiskMountManager::MountPointInfo& mount_info); 61 const DiskMountManager::MountPointInfo& mount_info);
61 62
62 private: 63 private:
63 // Is used to implement AddObserver. 64 // Is used to implement AddObserver.
64 void AddObserverInternal(DiskMountManager::Observer* observer); 65 void AddObserverInternal(DiskMountManager::Observer* observer);
65 66
66 // Is used to implement RemoveObserver. 67 // Is used to implement RemoveObserver.
67 void RemoveObserverInternal(DiskMountManager::Observer* observer); 68 void RemoveObserverInternal(DiskMountManager::Observer* observer);
68 69
(...skipping 23 matching lines...) Expand all
92 // The list of existing mount points. 93 // The list of existing mount points.
93 DiskMountManager::MountPointMap mount_points_; 94 DiskMountManager::MountPointMap mount_points_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 96 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
96 }; 97 };
97 98
98 } // namespace disks 99 } // namespace disks
99 } // namespace chromeos 100 } // namespace chromeos
100 101
101 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 102 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698