Chromium Code Reviews| Index: ui/file_manager/file_manager/background/js/mock_media_scanner.js |
| diff --git a/ui/file_manager/file_manager/background/js/mock_media_scanner.js b/ui/file_manager/file_manager/background/js/mock_media_scanner.js |
| index 407c02f886273ed279fa0c4976f368ab1c35574c..25dd2239a05d7144ea4bda1fb97e64692c8d6904 100644 |
| --- a/ui/file_manager/file_manager/background/js/mock_media_scanner.js |
| +++ b/ui/file_manager/file_manager/background/js/mock_media_scanner.js |
| @@ -115,6 +115,9 @@ function TestScanResult(fileEntries) { |
| /** @type {number} */ |
| this.scanDuration = 100; |
| + /** @type {number} */ |
| + this.duplicateFileCount = 0; |
| + |
| /** @type {function} */ |
| this.resolveResult_; |
| @@ -144,16 +147,6 @@ TestScanResult.prototype.getFileEntries = function() { |
| }; |
| /** @override */ |
| -TestScanResult.prototype.getTotalBytes = function() { |
| - return this.totalBytes; |
| -}; |
| - |
| -/** @override */ |
| -TestScanResult.prototype.getScanDurationMs = function() { |
| - return this.scanDuration; |
| -}; |
| - |
| -/** @override */ |
| TestScanResult.prototype.finalize = function() { |
| return this.resolveResult_(this); |
| }; |
| @@ -173,6 +166,15 @@ TestScanResult.prototype.isInvalidated = function() { |
| return false; |
| }; |
| +TestScanResult.prototype.getStatistics = function() { |
|
mtomasz
2015/02/12 01:51:03
nit: jsdoc missing?
Ben Kwa
2015/02/17 23:01:29
Done.
|
| + return { |
| + scanDuration: this.scanDuration, |
| + newFileCount: this.fileEntries.length, |
| + duplicateFileCount: this.duplicateFileCount, |
| + sizeBytes: this.totalBytes |
| + }; |
| +}; |
| + |
| /** |
| * @constructor |
| * @implements {importer.DirectoryWatcher} |