Fix StatusBar test
Runnable was not being applied
Test: atest StatusBarTest
Fixes: 216532410
Fixes: 223731528
Change-Id: If5ce110b506b6b4229dd6ea5a39542369742bc51
Merged-In: If5ce110b506b6b4229dd6ea5a39542369742bc51
(cherry picked from commit 79f9dd01e0)
This commit is contained in:
@@ -351,6 +351,10 @@ public class StatusBarTest extends SysuiTestCase {
|
|||||||
when(mStatusBarComponentFactory.create()).thenReturn(mStatusBarComponent);
|
when(mStatusBarComponentFactory.create()).thenReturn(mStatusBarComponent);
|
||||||
when(mStatusBarComponent.getNotificationShadeWindowViewController()).thenReturn(
|
when(mStatusBarComponent.getNotificationShadeWindowViewController()).thenReturn(
|
||||||
mNotificationShadeWindowViewController);
|
mNotificationShadeWindowViewController);
|
||||||
|
doAnswer(invocation -> {
|
||||||
|
((Runnable) invocation.getArgument(0)).run();
|
||||||
|
return null;
|
||||||
|
}).when(mNotificationShadeWindowController).batchApplyWindowLayoutParams(any());
|
||||||
|
|
||||||
mShadeController = new ShadeControllerImpl(mCommandQueue,
|
mShadeController = new ShadeControllerImpl(mCommandQueue,
|
||||||
mStatusBarStateController, mNotificationShadeWindowController,
|
mStatusBarStateController, mNotificationShadeWindowController,
|
||||||
|
|||||||
Reference in New Issue
Block a user