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

Unified Diff: chromeos/disks/mock_disk_mount_manager.cc

Issue 2440443003: Preserve the hardware read-only flag in Disk object. (Closed)
Patch Set: Move comments to the constructor args. Created 4 years, 2 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
« no previous file with comments | « chromeos/disks/disk_mount_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/disks/mock_disk_mount_manager.cc
diff --git a/chromeos/disks/mock_disk_mount_manager.cc b/chromeos/disks/mock_disk_mount_manager.cc
index 99ba785a7094478a932fe0aed5bbc32d5de78b56..8ed6ff0f8b741e4936fb78e96dce96ce1e4f3bcf 100644
--- a/chromeos/disks/mock_disk_mount_manager.cc
+++ b/chromeos/disks/mock_disk_mount_manager.cc
@@ -73,6 +73,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::unique_ptr<DiskMountManager::Disk> disk1_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(),
+ false, // write_disabled_by_policy
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -100,6 +101,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::unique_ptr<DiskMountManager::Disk> disk2_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(kTestMountPath),
+ false, // write_disabled_by_policy
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(kTestDeviceLabel), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -122,6 +124,7 @@ void MockDiskMountManager::NotifyDeviceRemoveEvents() {
std::unique_ptr<DiskMountManager::Disk> disk_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(kTestMountPath),
+ false, // write_disabled_by_policy
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(kTestDeviceLabel), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -176,6 +179,7 @@ void MockDiskMountManager::CreateDiskEntryForMountDevice(
std::unique_ptr<DiskMountManager::Disk> disk_ptr =
base::MakeUnique<DiskMountManager::Disk>(
mount_info.source_path, mount_info.mount_path,
+ false, // write_disabled_by_policy
std::string(), // system_path
mount_info.source_path, device_label,
std::string(), // drive_label
« no previous file with comments | « chromeos/disks/disk_mount_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698