Skip to content
Snippets Groups Projects
Commit 293ac5b0 authored by Rupesh Bansal's avatar Rupesh Bansal
Browse files

Fixed failing tests

Bug: 260673693
Test: atest DisplayBrightnessStrategySelectorTest
Change-Id: I4297d49a4fd711da0fb4ed35616eb85cf3ccb196
parent 01f07725
No related branches found
No related tags found
No related merge requests found
......@@ -144,6 +144,7 @@ public final class DisplayBrightnessStrategySelectorTest {
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment