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

Side by Side Diff: chrome/test/data/extensions/api_test/file_browser/mount_test/test.js

Issue 23541009: Return Drive mount point by getMountPoints. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 ]);
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698