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

Side by Side Diff: chrome/browser/chromeos/imageburner/burn_device_handler_unittest.cc

Issue 379743004: Add a method in DiskMountManager to refresh mount entries in addition to devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments + Fix up MockDiskMountManager. Created 6 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/chromeos/imageburner/burn_device_handler.h" 5 #include "chrome/browser/chromeos/imageburner/burn_device_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Following methods are not implemented. 74 // Following methods are not implemented.
75 virtual const Disk* FindDiskBySourcePath( 75 virtual const Disk* FindDiskBySourcePath(
76 const std::string& source_path) const OVERRIDE { 76 const std::string& source_path) const OVERRIDE {
77 return NULL; 77 return NULL;
78 } 78 }
79 virtual const MountPointMap& mount_points() const OVERRIDE { 79 virtual const MountPointMap& mount_points() const OVERRIDE {
80 // Note: mount_points_ will always be empty, now. 80 // Note: mount_points_ will always be empty, now.
81 return mount_points_; 81 return mount_points_;
82 } 82 }
83 virtual void RequestMountInfoRefresh() OVERRIDE {} 83 virtual void EnsureMountInfoRefreshed(
84 const EnsureMountInfoRefreshedCallback& callback) OVERRIDE {}
84 virtual void MountPath(const std::string& source_path, 85 virtual void MountPath(const std::string& source_path,
85 const std::string& source_format, 86 const std::string& source_format,
86 const std::string& mount_label, 87 const std::string& mount_label,
87 MountType type) OVERRIDE {} 88 MountType type) OVERRIDE {}
88 virtual void UnmountPath(const std::string& mount_path, 89 virtual void UnmountPath(const std::string& mount_path,
89 UnmountOptions options, 90 UnmountOptions options,
90 const UnmountPathCallback& callback) OVERRIDE {} 91 const UnmountPathCallback& callback) OVERRIDE {}
91 virtual void FormatMountedDevice(const std::string& mount_path) OVERRIDE {} 92 virtual void FormatMountedDevice(const std::string& mount_path) OVERRIDE {}
92 virtual void UnmountDeviceRecursively( 93 virtual void UnmountDeviceRecursively(
93 const std::string& device_path, 94 const std::string& device_path,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 276
276 added_device.clear(); 277 added_device.clear();
277 removed_device.clear(); 278 removed_device.clear();
278 disk_mount_manager_->EmulateRemoveDisk("/dev/unburnable"); 279 disk_mount_manager_->EmulateRemoveDisk("/dev/unburnable");
279 EXPECT_TRUE(added_device.empty()); 280 EXPECT_TRUE(added_device.empty());
280 EXPECT_TRUE(removed_device.empty()); 281 EXPECT_TRUE(removed_device.empty());
281 } 282 }
282 283
283 } // namespace imageburner 284 } // namespace imageburner
284 } // namespace chromeos 285 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.cc ('k') | chromeos/disks/disk_mount_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698