Loading services/surfaceflinger/tests/unittests/SurfaceFlinger_PowerHintTest.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -130,8 +130,7 @@ TEST_F(SurfaceFlingerPowerHintTest, sendDurationsIncludingHwcWaitTime) { ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); const std::chrono::nanoseconds mockVsyncPeriod = 15ms; const std::chrono::nanoseconds mockVsyncPeriod = 15ms; const std::chrono::nanoseconds expectedTargetTime = 14ms; EXPECT_CALL(*mPowerAdvisor, setTargetWorkDuration(_)).Times(1); EXPECT_CALL(*mPowerAdvisor, setTargetWorkDuration(Gt(expectedTargetTime.count()))).Times(1); const nsecs_t now = systemTime(); const nsecs_t now = systemTime(); const std::chrono::nanoseconds mockHwcRunTime = 20ms; const std::chrono::nanoseconds mockHwcRunTime = 20ms; Loading Loading
services/surfaceflinger/tests/unittests/SurfaceFlinger_PowerHintTest.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -130,8 +130,7 @@ TEST_F(SurfaceFlingerPowerHintTest, sendDurationsIncludingHwcWaitTime) { ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); const std::chrono::nanoseconds mockVsyncPeriod = 15ms; const std::chrono::nanoseconds mockVsyncPeriod = 15ms; const std::chrono::nanoseconds expectedTargetTime = 14ms; EXPECT_CALL(*mPowerAdvisor, setTargetWorkDuration(_)).Times(1); EXPECT_CALL(*mPowerAdvisor, setTargetWorkDuration(Gt(expectedTargetTime.count()))).Times(1); const nsecs_t now = systemTime(); const nsecs_t now = systemTime(); const std::chrono::nanoseconds mockHwcRunTime = 20ms; const std::chrono::nanoseconds mockHwcRunTime = 20ms; Loading