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

Unified Diff: chromeos/disks/mock_disk_mount_manager.cc

Issue 11366144: [Media Gallery][ChromeOS] Improve device media gallery names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 years, 1 month 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
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 9b6171e2c4a0cdb93472b6cb0d9b31fb365fe914..9d6f32d012a52690dbcb873501d87e9171ef10d7 100644
--- a/chromeos/disks/mock_disk_mount_manager.cc
+++ b/chromeos/disks/mock_disk_mount_manager.cc
@@ -183,7 +183,11 @@ void MockDiskMountManager::SetupDefaultReplies() {
void MockDiskMountManager::CreateDiskEntryForMountDevice(
const DiskMountManager::MountPointInfo& mount_info,
const std::string& device_id,
- const std::string& device_label) {
+ const std::string& device_label,
+ const std::string& vendor_name,
+ const std::string& product_name,
+ DeviceType device_type,
+ uint64 total_size_in_bytes) {
Disk* disk = new DiskMountManager::Disk(std::string(mount_info.source_path),
std::string(mount_info.mount_path),
std::string(), // system_path
@@ -191,13 +195,13 @@ void MockDiskMountManager::CreateDiskEntryForMountDevice(
device_label, // device_label
std::string(), // drive_label
std::string(), // vendor_id
- std::string(), // vendor_name
+ vendor_name,
std::string(), // product_id
- std::string(), // product_name
+ product_name,
device_id, // fs_uuid
std::string(), // system_path_prefix
- DEVICE_TYPE_USB, // device_type
- 1073741824, // total_size_in_bytes
+ device_type,
+ total_size_in_bytes,
false, // is_parent
false, // is_read_only
true, // has_media

Powered by Google App Engine
This is Rietveld 408576698