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

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

Issue 340843005: Files.app: Create unit tests for MetadataCache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 6 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
OLDNEW
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 FileEntry. 6 * Mock class for FileEntry.
7 * 7 *
8 * @param {string} volumeId Id of the volume containing the entry. 8 * @param {string} volumeId Id of the volume containing the entry.
9 * @param {string} fullPath Full path for the entry. 9 * @param {string} fullPath Full path for the entry.
10 * @constructor 10 * @constructor
11 */ 11 */
12 function MockFileEntry(volumeId, fullPath) { 12 function MockFileEntry(volumeId, fullPath) {
13 this.volumeId = volumeId; 13 this.volumeId = volumeId;
14 this.fullPath = fullPath; 14 this.fullPath = fullPath;
15 } 15 }
16
17 /**
18 * Returns fake URL.
19 *
20 * @return {string} Fake URL.
21 */
22 MockFileEntry.prototype.toURL = function() {
23 return 'filesystem:' + this.volumeId + this.fullPath;
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698