Index: ui/file_manager/file_manager/background/js/test_duplicate_finder.js |
diff --git a/ui/file_manager/file_manager/background/js/test_duplicate_finder.js b/ui/file_manager/file_manager/background/js/test_duplicate_finder.js |
index cd09f030f0cd71d1e85a6df2a55b107abbf872cd..0b6982fe00053d73a8e9cbaf44d0f014f620cab4 100644 |
--- a/ui/file_manager/file_manager/background/js/test_duplicate_finder.js |
+++ b/ui/file_manager/file_manager/background/js/test_duplicate_finder.js |
@@ -20,3 +20,27 @@ importer.TestDuplicateFinder = function() { |
importer.TestDuplicateFinder.prototype.checkDuplicate = function(entry) { |
return Promise.resolve(this.returnValue); |
}; |
+ |
+/** @override */ |
+importer.TestDuplicateFinder.prototype.getStatistics = function() { |
+ return { |
+ computeHashTime: 0, |
+ searchHashTime: 0 |
+ }; |
+}; |
+ |
+/** |
+ * @constructor |
+ * @implements {importer.DuplicateFinder.Factory} |
+ */ |
+importer.TestDuplicateFinder.Factory = function() { |
+ /** @private {!Array<!importer.DuplicateFinder>} */ |
+ this.instances = []; |
+}; |
+ |
+/** @override */ |
+importer.TestDuplicateFinder.Factory.prototype.create = function() { |
+ var newInstance = new importer.TestDuplicateFinder(); |
+ this.instances.push(newInstance); |
+ return newInstance; |
+}; |