OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // These have to be sync'd with extension_file_browser_private_apitest.cc | 5 // These have to be sync'd with extension_file_browser_private_apitest.cc |
6 var expectedVolume1 = { | 6 var expectedVolume1 = { |
7 devicePath: 'device_path1', | 7 devicePath: 'device_path1', |
8 mountPath: 'removable/mount_path1', | 8 mountPath: 'removable/mount_path1', |
9 systemPath: 'system_path1', | 9 systemPath: 'system_path1', |
10 filePath: 'file_path1', | 10 filePath: 'file_path1', |
11 deviceLabel: 'device_label1', | 11 deviceLabel: 'device_label1', |
12 driveLabel: 'drive_label1', | 12 driveLabel: 'drive_label1', |
13 deviceType: 'flash', | 13 deviceType: 'usb', |
14 totalSize: 1073741824, | 14 totalSize: 1073741824, |
15 isParent: false, | 15 isParent: false, |
16 isReadOnly: false, | 16 isReadOnly: false, |
17 hasMedia: false, | 17 hasMedia: false, |
18 isOnBootDevice: false | 18 isOnBootDevice: false |
19 }; | 19 }; |
20 | 20 |
21 var expectedVolume2 = { | 21 var expectedVolume2 = { |
22 devicePath: 'device_path2', | 22 devicePath: 'device_path2', |
23 mountPath: 'mount_path2', | 23 mountPath: 'mount_path2', |
24 mountPath: 'removable/mount_path2', | 24 mountPath: 'removable/mount_path2', |
25 systemPath: 'system_path2', | 25 systemPath: 'system_path2', |
26 filePath: 'file_path2', | 26 filePath: 'file_path2', |
27 deviceLabel: 'device_label2', | 27 deviceLabel: 'device_label2', |
28 driveLabel: 'drive_label2', | 28 driveLabel: 'drive_label2', |
29 deviceType: 'hdd', | 29 deviceType: 'mobile', |
30 totalSize: 47723, | 30 totalSize: 47723, |
31 isParent: true, | 31 isParent: true, |
32 isReadOnly: true, | 32 isReadOnly: true, |
33 hasMedia: true, | 33 hasMedia: true, |
34 isOnBootDevice: true | 34 isOnBootDevice: true |
35 }; | 35 }; |
36 | 36 |
37 var expectedVolume3 = { | 37 var expectedVolume3 = { |
38 devicePath: 'device_path3', | 38 devicePath: 'device_path3', |
39 mountPath: 'mount_path3', | 39 mountPath: 'mount_path3', |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 "non_existent_device_path", | 113 "non_existent_device_path", |
114 chrome.test.callbackFail("Device path not found")); | 114 chrome.test.callbackFail("Device path not found")); |
115 }, | 115 }, |
116 | 116 |
117 function getVolumeMetadataBlankPath() { | 117 function getVolumeMetadataBlankPath() { |
118 chrome.fileBrowserPrivate.getVolumeMetadata( | 118 chrome.fileBrowserPrivate.getVolumeMetadata( |
119 "", | 119 "", |
120 chrome.test.callbackFail("Device path not found")); | 120 chrome.test.callbackFail("Device path not found")); |
121 } | 121 } |
122 ]); | 122 ]); |
OLD | NEW |