Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa46e969 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Remove redundant test setup

Bug: 410637225
Test: DesktopTasksControllerTest
Flag: com.android.window.flags.enable_move_to_next_display_shortcut
Change-Id: I3efd81cb220b0543f7b1c2860a7c34c7e602e10f
parent 949f36cf
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -4021,15 +4021,6 @@ class DesktopTasksControllerTest(flags: FlagsParameterization) : ShellTestCase()
            taskRepository.addDesk(displayId = SECOND_DISPLAY, deskId = 2)
        }

        // Create a mock for the target display area: second display
        val secondDisplayArea = DisplayAreaInfo(MockToken().token(), SECOND_DISPLAY, 0)
        whenever(rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(SECOND_DISPLAY))
            .thenReturn(secondDisplayArea)

        // Set up external display content
        val secondaryDisplay = mock(Display::class.java)
        whenever(displayController.getDisplay(SECOND_DISPLAY)).thenReturn(secondaryDisplay)

        desktopState.overrideDesktopModeSupportPerDisplay[SECOND_DISPLAY] =
            isDesktopModeSupportedOnDestination