Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: chrome/test/data/file_manager/unit_tests/mocks/mock_file_system.js

Issue 663513003: Add an unittest for background/volume_manager.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698