OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 DOMFileSystem. | 6 * Mock class for DOMFileSystem. |
7 * @param {string} volumeId Volume ID for the file system. | 7 * @param {string} volumeId Volume ID for the file system. |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function MockFileSystem(volumeId) { | 10 function MockFileSystem(volumeId) { |
hirono
2014/10/24 07:12:22
Could you reuse TestFileSystem?
https://code.goog
yawano
2014/10/27 00:25:08
While they are very similar, IMHO, they should be
hirono
2014/10/27 02:15:27
Actually I added TestFileSystem class for testing
| |
11 this.name = ''; | 11 this.name = volumeId; |
12 this.root = new MockFileEntry(volumeId, '/'); | 12 this.root = new MockDirectoryEntry(this, '/'); |
13 } | 13 } |
OLD | NEW |