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

Skip to content
Commit d9061364 authored by ryanlwlin's avatar ryanlwlin
Browse files

refactor MagnificationModeSwitchTest

We did following change in the refactor.
  1. use the spy object instead of mock object if possble to
  reduce stubbing unexpected value.
  2. Not to use ArgumentCaptor to get TouchListener.
  3. set down time to all motion events and recyle them in #tearDown().
  4. divide some tests to assert the condition clearly.

Bug: 173159759
Test: atest MagnificationModeSwitchTest
Change-Id: I2218d983541d5b6d2ea1ee7686770ba7fd4dac26
parent 30cadee7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment