OLD | NEW |
1 // Copyright (c) 2012 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 file_browser_private_apitest.cc | 5 // These have to be sync'd with 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', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 var expectedDownloadsVolume = { | 51 var expectedDownloadsVolume = { |
52 mountPath: 'Downloads', | 52 mountPath: 'Downloads', |
53 isReadOnly: false, | 53 isReadOnly: false, |
54 }; | 54 }; |
55 | 55 |
56 // List of expected mount points. | 56 // List of expected mount points. |
57 // NOTE: this has to be synced with values in file_browser_private_apitest.cc | 57 // NOTE: this has to be synced with values in file_browser_private_apitest.cc |
58 // and values sorted by mountPath. | 58 // and values sorted by mountPath. |
59 var expectedMountPoints = [ | 59 var expectedMountPoints = [ |
60 { | 60 { |
| 61 sourcePath: '/special/drive', |
| 62 mountPath: 'drive', |
| 63 volumeType: 'drive', |
| 64 mountCondition: '' |
| 65 }, |
| 66 { |
61 mountPath: 'Downloads', | 67 mountPath: 'Downloads', |
62 volumeType: 'downloads', | 68 volumeType: 'downloads', |
63 mountCondition: '' | 69 mountCondition: '' |
64 }, | 70 }, |
65 { | 71 { |
66 sourcePath: 'archive_path', | 72 sourcePath: 'archive_path', |
67 mountPath: 'archive/archive_mount_path', | 73 mountPath: 'archive/archive_mount_path', |
68 volumeType: 'archive', | 74 volumeType: 'archive', |
69 mountCondition: '' | 75 mountCondition: '' |
70 }, | 76 }, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 chrome.test.assertEq(result.length, expectedMountPoints.length, | 197 chrome.test.assertEq(result.length, expectedMountPoints.length, |
192 'getMountPoints returned wrong number of mount points.'); | 198 'getMountPoints returned wrong number of mount points.'); |
193 for (var i = 0; i < expectedMountPoints.length; i++) { | 199 for (var i = 0; i < expectedMountPoints.length; i++) { |
194 chrome.test.assertTrue( | 200 chrome.test.assertTrue( |
195 validateObject(result[i], expectedMountPoints[i], 'mountPoint'), | 201 validateObject(result[i], expectedMountPoints[i], 'mountPoint'), |
196 'getMountPoints result[' + i + '] not as expected'); | 202 'getMountPoints result[' + i + '] not as expected'); |
197 } | 203 } |
198 })); | 204 })); |
199 } | 205 } |
200 ]); | 206 ]); |
OLD | NEW |