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

Unified Diff: ui/file_manager/gallery/js/gallery_item_unittest.js

Issue 936143003: Start to use new metadata item in ImageEncoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/gallery/js/gallery_item_unittest.js
diff --git a/ui/file_manager/gallery/js/gallery_item_unittest.js b/ui/file_manager/gallery/js/gallery_item_unittest.js
index e3c545b28593bb85fecba06b6eb8620a5e1956fc..d2a4e179be2a6c934d5bd88b49e7fd1c5f53a631 100644
--- a/ui/file_manager/gallery/js/gallery_item_unittest.js
+++ b/ui/file_manager/gallery/js/gallery_item_unittest.js
@@ -63,6 +63,13 @@ function testSaveToFile(callback) {
{isReadOnly: false},
{name: 'oldMetadata'},
metadataCache,
+ // Mock of FileSystemMetadata.
+ {
+ get: function() {
+ return Promise.resolve({});
+ },
+ notifyEntriesChanged: function() {}
+ },
/* original */ true);
assertEquals('oldMetadata', item.getMetadata().name);
assertFalse(fetchedMediaCleared);

Powered by Google App Engine
This is Rietveld 408576698