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

Unified Diff: ui/file_manager/file_manager/foreground/js/task_controller_unittest.js

Issue 971723002: Files.app: Rename FileSystemMetadata with MetadataModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 10 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: ui/file_manager/file_manager/foreground/js/task_controller_unittest.js
diff --git a/ui/file_manager/file_manager/foreground/js/task_controller_unittest.js b/ui/file_manager/file_manager/foreground/js/task_controller_unittest.js
index 15f3325b8f8b521de6b568f7ea6cb27b537d13c5..62e66f7a17c75129b468cc4cea28790fb584061f 100644
--- a/ui/file_manager/file_manager/foreground/js/task_controller_unittest.js
+++ b/ui/file_manager/file_manager/foreground/js/task_controller_unittest.js
@@ -6,11 +6,11 @@ window.metrics = {
recordEnum: function() {}
};
-function MockFileSystemMetadata(properties) {
+function MockMetadataModel(properties) {
this.properties_ = properties;
}
-MockFileSystemMetadata.prototype.get = function() {
+MockMetadataModel.prototype.get = function() {
return Promise.resolve([this.properties_]);
};
@@ -48,7 +48,7 @@ function testDoEntryAction(callback) {
defaultActionMenuItem: document.createElement('div')
}
},
- new MockFileSystemMetadata({}),
+ new MockMetadataModel({}),
new cr.EventTarget(),
null,
function() {
@@ -61,7 +61,7 @@ function testDoEntryAction(callback) {
isOnDrive: function() {
return true;
},
- getFileSystemMetadata: function() {}
+ getMetadataModel: function() {}
});
});
@@ -98,7 +98,7 @@ function testOpenSuggestAppsDialogWithMetadata(callback) {
}
}
},
- new MockFileSystemMetadata({contentMimeType: 'application/rtf'}),
+ new MockMetadataModel({contentMimeType: 'application/rtf'}),
new cr.EventTarget(),
null,
null);
@@ -141,7 +141,7 @@ function testOpenSuggestAppsDialogWithoutMetadata(callback) {
}
}
},
- new MockFileSystemMetadata({}),
+ new MockMetadataModel({}),
new cr.EventTarget(),
null,
null);
@@ -171,7 +171,7 @@ function testOpenSuggestAppsDialogFailure(callback) {
defaultActionMenuItem: document.createElement('div')
}
},
- new MockFileSystemMetadata({contentMimeType: 'image/png'}),
+ new MockMetadataModel({contentMimeType: 'image/png'}),
new cr.EventTarget(),
null,
null);

Powered by Google App Engine
This is Rietveld 408576698