Fix KeyguardViewMediatorTest.

This changelist updates a test to make it compatible with upstream
changes. This update has already been applied downstream.

Test: atest KeyguardViewMediatorTest#wakeupFromDreamingWhenKeyguardHides
Fixes: 293948457
Change-Id: Iaf037cdb44bb108d013785c20cc0272a4608c73a
This commit is contained in:
Bryce Lee
2023-08-01 18:24:43 +00:00
parent ba704fa2f3
commit 7db2b2c9b1

View File

@@ -337,6 +337,8 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
mViewMediator.onSystemReady();
TestableLooper.get(this).processAllMessages();
when(mPowerManager.isInteractive()).thenReturn(true);
// Given device is dreaming
when(mUpdateMonitor.isDreaming()).thenReturn(true);