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

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

Issue 1221093002: Add support for refreshing contents of providers which don't support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 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 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 e288fd53e117d7b32b863325d99ca9641b24b6dd..3f73a9fae66505aeb9a5616c29d7490ddce8e6db 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
@@ -14,6 +14,7 @@ var expectedVolume1 = {
isReadOnly: false,
hasMedia: false,
configurable: false,
+ watchable: true,
source: 'device',
profile: {profileId: '', displayName: '', isCurrentProfile: true},
};
@@ -29,6 +30,9 @@ var expectedVolume2 = {
isReadOnly: true,
hasMedia: true,
configurable: false,
+ // This is not an MTP device, so it's watchable.
+ // TODO(mtomasz): Add a test for a real MTP device.
+ watchable: true,
source: 'device',
profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
@@ -44,6 +48,7 @@ var expectedVolume3 = {
isReadOnly: false,
hasMedia: false,
configurable: false,
+ watchable: true,
source: 'device',
profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
@@ -55,6 +60,7 @@ var expectedDownloadsVolume = {
isReadOnly: false,
hasMedia: false,
configurable: false,
+ watchable: true,
source: 'system',
profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
@@ -67,6 +73,7 @@ var expectedDriveVolume = {
isReadOnly: false,
hasMedia: false,
configurable: false,
+ watchable: true,
source: 'network',
profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
@@ -79,6 +86,7 @@ var expectedArchiveVolume = {
isReadOnly: true,
hasMedia: false,
configurable: false,
+ watchable: true,
source: 'file',
profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
@@ -90,6 +98,7 @@ var expectedProvidedVolume = {
isReadOnly: true,
hasMedia: false,
configurable: true,
+ watchable: false,
extensionId: 'testing-extension-id',
source: 'network',
mountContext: 'auto',

Powered by Google App Engine
This is Rietveld 408576698