| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * Mock class for FileEntry. | |
| 7 * | |
| 8 * @param {string} volumeId Id of the volume containing the entry. | |
| 9 * @param {string} fullPath Full path for the entry. | |
| 10 * @constructor | |
| 11 */ | |
| 12 function MockFileEntry(volumeId, fullPath) { | |
| 13 this.volumeId = volumeId; | |
| 14 this.fullPath = fullPath; | |
| 15 } | |
| 16 | |
| 17 /** | |
| 18 * Returns fake URL. | |
| 19 * | |
| 20 * @return {string} Fake URL. | |
| 21 */ | |
| 22 MockFileEntry.prototype.toURL = function() { | |
| 23 return 'filesystem:' + this.volumeId + this.fullPath; | |
| 24 }; | |
| OLD | NEW |