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

Unified Diff: ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js

Issue 858563005: Immediately open MTP and other eligible removable devices with media directory on mount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 years, 11 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: ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js
diff --git a/ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js b/ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js
index 2ec38dad8a2dea8e9f87475cd39dc87690a49805..62e92a269c7ceb7dd4fc94e7cdc4611d3cb43361 100644
--- a/ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js
+++ b/ui/file_manager/file_manager/foreground/js/navigation_list_model_unittest.js
@@ -14,7 +14,7 @@ function setUp() {
}
function testModel() {
- var volumeManager = new MockVolumeManager();
+ var volumeManager = new MockVolumeManagerWrapper();
var shortcutListModel = new MockFolderShortcutDataModel(
[new MockFileEntry('drive', '/root/shortcut')]);
var model = new NavigationListModel(volumeManager, shortcutListModel);
@@ -26,7 +26,7 @@ function testModel() {
}
function testAddAndRemoveShortcuts() {
- var volumeManager = new MockVolumeManager();
+ var volumeManager = new MockVolumeManagerWrapper();
var shortcutListModel = new MockFolderShortcutDataModel(
[new MockFileEntry('drive', '/root/shortcut')]);
var model = new NavigationListModel(volumeManager, shortcutListModel);
@@ -58,7 +58,7 @@ function testAddAndRemoveShortcuts() {
}
function testAddAndRemoveVolumes() {
- var volumeManager = new MockVolumeManager();
+ var volumeManager = new MockVolumeManagerWrapper();
var shortcutListModel = new MockFolderShortcutDataModel(
[new MockFileEntry('drive', '/root/shortcut')]);
var model = new NavigationListModel(volumeManager, shortcutListModel);
@@ -66,8 +66,9 @@ function testAddAndRemoveVolumes() {
assertEquals(3, model.length);
// Removable volume 'hoge' is mounted.
- volumeManager.volumeInfoList.push(MockVolumeManager.createMockVolumeInfo(
- VolumeManagerCommon.VolumeType.REMOVABLE, 'removable:hoge'));
+ volumeManager.volumeInfoList.push(
+ MockVolumeManagerWrapper.createMockVolumeInfo(
+ VolumeManagerCommon.VolumeType.REMOVABLE, 'removable:hoge'));
assertEquals(4, model.length);
assertEquals('drive', model.item(0).volumeInfo.volumeId);
assertEquals('downloads', model.item(1).volumeInfo.volumeId);
@@ -75,8 +76,9 @@ function testAddAndRemoveVolumes() {
assertEquals('/root/shortcut', model.item(3).entry.fullPath);
// Removable volume 'fuga' is mounted.
- volumeManager.volumeInfoList.push(MockVolumeManager.createMockVolumeInfo(
- VolumeManagerCommon.VolumeType.REMOVABLE, 'removable:fuga'));
+ volumeManager.volumeInfoList.push(
+ MockVolumeManagerWrapper.createMockVolumeInfo(
+ VolumeManagerCommon.VolumeType.REMOVABLE, 'removable:fuga'));
assertEquals(5, model.length);
assertEquals('drive', model.item(0).volumeInfo.volumeId);
assertEquals('downloads', model.item(1).volumeInfo.volumeId);

Powered by Google App Engine
This is Rietveld 408576698