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

Unified Diff: chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js

Issue 663513003: Add an unittest for background/volume_manager.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Changed import_history_unittest to use MockFileSystem. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js
diff --git a/chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js b/chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js
index 9474ad39efb2a8323e402bfe61e430934e594bc2..1b4da0ce85e2af7ed38751bede7286bcad7992c4 100644
--- a/chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js
+++ b/chrome/test/data/file_manager/unit_tests/mocks/mock_volume_manager.js
@@ -36,7 +36,8 @@ MockVolumeManager.prototype.getVolumeInfo = function(entry) {
* @return {VolumeInfo} Created mock VolumeInfo.
*/
MockVolumeManager.createMockVolumeInfo = function(type, volumeId) {
- var fileSystem = new MockFileSystem(volumeId);
+ var fileSystem = new MockFileSystem(volumeId, 'filesystem:' + volumeId);
+ fileSystem.entries['/'] = new MockDirectoryEntry(fileSystem, '/');
var volumeInfo = new VolumeInfo(
type,

Powered by Google App Engine
This is Rietveld 408576698