Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e5ba105 authored by Xiang Wang's avatar Xiang Wang Committed by Android (Google) Code Review
Browse files

Merge "Check target duration sent instead of exact value" into tm-dev

parents f18ac6ca 7f193474
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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;