| 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);
|
|
|