Files app: Remove type ArrayDataModel from NavigationListModel
Change NavigationListModel constructor to accept only FolderShortcutsDataModel in shortcutListModel argument because NavigationListModel uses methods specific to FolderShortcutsDataModel that aren't available on ArrayDataModel. Add method asFolderShortcutsDataModel() to MockFolderShortcutDataModel to type cast to FolderShortcutsDataModel to pass the mock to NavigationListModel. NOTE: Currently MockFolderShortcutDataModel doesn't implement the whole FolderShortcutsDataModel API, it rather implements the API needed by the tests. Fixes: 931481 Change-Id: Iac0c08dcb900fd2a16249baa6eb16c7d8c137a18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2056003 Commit-Queue: Noel Gordon <noel@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#741379}
Showing
Please register or sign in to comment