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

Unified Diff: chrome/test/data/extensions/api_test/file_browser/mount_test/test.js

Issue 2451713002: Propagate the read_only_hardware flag of volumes to js. (Closed)
Patch Set: Rename the field name to is_read_only_removable_device, as it's only valid for removable devices. 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
Index: chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
diff --git a/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js b/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
index 3f73a9fae66505aeb9a5616c29d7490ddce8e6db..631cf5f0307ebe077a992b0cf87a2945e32354cb 100644
--- a/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
+++ b/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
@@ -12,6 +12,7 @@ var expectedVolume1 = {
devicePath: 'system_path_prefix1',
isParentDevice: false,
isReadOnly: false,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: false,
watchable: true,
@@ -28,6 +29,7 @@ var expectedVolume2 = {
devicePath: 'system_path_prefix2',
isParentDevice: true,
isReadOnly: true,
+ isReadOnlyRemovableDevice: true,
hasMedia: true,
configurable: false,
// This is not an MTP device, so it's watchable.
@@ -45,7 +47,8 @@ var expectedVolume3 = {
deviceType: 'optical',
devicePath: 'system_path_prefix3',
isParentDevice: true,
- isReadOnly: false,
+ isReadOnly: true,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: false,
watchable: true,
@@ -58,6 +61,7 @@ var expectedDownloadsVolume = {
volumeLabel: '',
volumeType: 'downloads',
isReadOnly: false,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: false,
watchable: true,
@@ -71,6 +75,7 @@ var expectedDriveVolume = {
sourcePath: /^\/special\/drive[^\/]*$/,
volumeType: 'drive',
isReadOnly: false,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: false,
watchable: true,
@@ -84,6 +89,7 @@ var expectedArchiveVolume = {
sourcePath: /removable\/mount_path3\/archive.zip$/,
volumeType: 'archive',
isReadOnly: true,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: false,
watchable: true,
@@ -96,6 +102,7 @@ var expectedProvidedVolume = {
volumeLabel: '',
volumeType: 'provided',
isReadOnly: true,
+ isReadOnlyRemovableDevice: false,
hasMedia: false,
configurable: true,
watchable: false,
« no previous file with comments | « chrome/common/extensions/api/file_manager_private.idl ('k') | third_party/closure_compiler/externs/file_manager_private.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698