commit | d9061364e3b18d22e32f9c80011e853699cb6037 | [log] [tgz] |
---|---|---|
author | ryanlwlin <ryanlwlin@google.com> | Thu Nov 26 21:17:12 2020 +0800 |
committer | ryanlwlin <ryanlwlin@google.com> | Thu Dec 03 14:49:20 2020 +0800 |
tree | afdd0401e0c6bbb1bfa7b90f73af5fe966bd66cd | |
parent | 30cadee758a9a1af5aa41496ae99f69049a35b18 [diff] |
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