OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Mock class for FileEntry. | 6 * Mock class for FileEntry. |
7 * | 7 * |
8 * @param {string} volumeId Id of the volume containing the entry. | 8 * @param {string} volumeId Id of the volume containing the entry. |
9 * @param {string} fullPath Full path for the entry. | 9 * @param {string} fullPath Full path for the entry. |
10 * @constructor | 10 * @constructor |
11 */ | 11 */ |
12 function MockFileEntry(volumeId, fullPath) { | 12 function MockFileEntry(volumeId, fullPath) { |
13 this.volumeId = volumeId; | 13 this.volumeId = volumeId; |
14 this.fullPath = fullPath; | 14 this.fullPath = fullPath; |
15 } | 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 |