Index: ui/file_manager/gallery/js/gallery_data_model_unittest.js |
diff --git a/ui/file_manager/gallery/js/gallery_data_model_unittest.js b/ui/file_manager/gallery/js/gallery_data_model_unittest.js |
index c54ce2d0c9edd3d93a2b154ab8b8c8b9067e4864..1d015e16ac3dc1cbacc4f83d3cfb1ba813c81081 100644 |
--- a/ui/file_manager/gallery/js/gallery_data_model_unittest.js |
+++ b/ui/file_manager/gallery/js/gallery_data_model_unittest.js |
@@ -7,9 +7,25 @@ var model; |
var fileSystem; |
var item; |
+/** |
+ * Mock thumbnail model. |
+ */ |
+function ThumbnailModel() { |
+} |
+ |
+ThumbnailModel.prototype.get = function(entries) { |
+ return Promise.resolve(entries.map(function() { |
+ return {}; |
+ })); |
+}; |
+ |
function setUp() { |
model = new GalleryDataModel( |
- /* Mock MetadataModel */{}, |
+ /* Mock MetadataModel */{ |
+ get: function() { |
+ return Promise.resolve([{}]); |
+ } |
+ }, |
/* Mock EntryListWatcher */{}); |
fileSystem = new MockFileSystem('volumeId'); |
item = new Gallery.Item( |