commit | 293ac5b08a5e47063616330626ea58aaacde88dc | [log] [tgz] |
---|---|---|
author | Rupesh Bansal <brup@google.com> | Tue Nov 29 11:53:59 2022 +0000 |
committer | Rupesh Bansal <brup@google.com> | Tue Nov 29 11:53:59 2022 +0000 |
tree | 94c2730cde44d9cdb5f88ef3a12dedcdc2ccb858 | |
parent | 01f077251f7ede45765b05a1ab690e9b13d955be [diff] |
Fixed failing tests Bug: 260673693 Test: atest DisplayBrightnessStrategySelectorTest Change-Id: I4297d49a4fd711da0fb4ed35616eb85cf3ccb196
diff --git a/services/tests/servicestests/src/com/android/server/display/brightness/DisplayBrightnessStrategySelectorTest.java b/services/tests/servicestests/src/com/android/server/display/brightness/DisplayBrightnessStrategySelectorTest.java index ccc43f2..a5d7a10 100644 --- a/services/tests/servicestests/src/com/android/server/display/brightness/DisplayBrightnessStrategySelectorTest.java +++ b/services/tests/servicestests/src/com/android/server/display/brightness/DisplayBrightnessStrategySelectorTest.java
@@ -144,6 +144,7 @@ DisplayManagerInternal.DisplayPowerRequest displayPowerRequest = mock( DisplayManagerInternal.DisplayPowerRequest.class); displayPowerRequest.screenBrightnessOverride = Float.NaN; + when(mTemporaryBrightnessStrategy.getTemporaryScreenBrightness()).thenReturn(Float.NaN); assertEquals(mDisplayBrightnessStrategySelector.selectStrategy(displayPowerRequest, Display.STATE_ON), mInvalidBrightnessStrategy); }