| 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 VolumeManager. | 6 * Mock class for VolumeManager. |
| 7 * @constructor | 7 * @constructor |
| 8 */ | 8 */ |
| 9 function MockVolumeManager() { | 9 function MockVolumeManager() { |
| 10 this.volumeInfoList = new cr.ui.ArrayDataModel([]); | 10 this.volumeInfoList = new cr.ui.ArrayDataModel([]); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 */ | 37 */ |
| 38 MockVolumeManager.createMockVolumeInfo = function(type, volumeId) { | 38 MockVolumeManager.createMockVolumeInfo = function(type, volumeId) { |
| 39 var fileSystem = new MockFileSystem(volumeId); | 39 var fileSystem = new MockFileSystem(volumeId); |
| 40 | 40 |
| 41 var volumeInfo = new VolumeInfo( | 41 var volumeInfo = new VolumeInfo( |
| 42 type, | 42 type, |
| 43 volumeId, | 43 volumeId, |
| 44 fileSystem, | 44 fileSystem, |
| 45 '', // error | 45 '', // error |
| 46 '', // deviceType | 46 '', // deviceType |
| 47 '', // devicePath |
| 47 false, // isReadonly | 48 false, // isReadonly |
| 48 {isCurrentProfile: true, displayName: ''}, // profile | 49 {isCurrentProfile: true, displayName: ''}, // profile |
| 49 ''); // label | 50 ''); // label |
| 50 | 51 |
| 51 return volumeInfo; | 52 return volumeInfo; |
| 52 }; | 53 }; |
| OLD | NEW |