Now in TabletPowerButtonControllerTest test code, we have two timings:
void PressPowerButton() {
tablet_controller_->OnPowerButtonEvent(true, base::TimeTicks::Now());
}
void ReleasePowerButton() {
tablet_controller_->OnPowerButtonEvent(true, base::TimeTicks::Now());
}
And for several tests that are testing timing related issues, we have: power_manager_client_->SendPowerButtonEvent(true, tick_clock_->NowTicks()), which is using the base::SimpleTestTickClock's timing.
We should unify them, just using |tick_clock_|'s timing in the test.
Comment 1 by bugdroid1@chromium.org
, Sep 9 2017