Fix test after MockToken refactor

MockToken class was extracted from DesktopModeControllerTest. But
conflicting changes landed which broke the build and the changes were
reverted. Applying the changes again by reverting the revert and fixing
the test.

Bug: 260645044,261234251,260645044
Test: atest DesktopModeControllerTest DesktopTasksControllerTest
Change-Id: I95f66c35c671e774c3a4f7ba6b64167595f69b60
This commit is contained in:
Ats Jenk
2022-12-14 17:22:52 -08:00
parent fab81f10e5
commit 1c86204d10

View File

@@ -365,7 +365,7 @@ public class DesktopModeControllerTest extends ShellTestCase {
@Test
public void testHandleTransitionRequest_taskToFront_returnsWct() {
RunningTaskInfo trigger = new RunningTaskInfo();
trigger.token = new MockToken().mToken;
trigger.token = new MockToken().token();
trigger.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM);
WindowContainerTransaction wct = mController.handleRequest(
mock(IBinder.class),