diff options
| author | 2022-12-28 09:19:32 +0000 | |
|---|---|---|
| committer | 2023-01-06 05:42:59 +0000 | |
| commit | f8ce15fa3b5f62cc63daa3f7353b91152502d89e (patch) | |
| tree | 15ba3cc800672f1f82c892c83dea642bb847286b /services/coverage/java | |
| parent | 425847b933e1f3db688f3de1439924ec4961c237 (diff) | |
refactor(#AlwaysOnMagnifier): Use real controller instead of mock in MagnificationControllerTest
We change to use a real FullScreenMagnificationController instance in test. Originally, we use mock controller with stub methods. In some cases, it can not reflect the real code behavior. Therefore, we change to use a real controller.
In MagnificationController, we remove the condition check in onRequestMagnificationSpec() method. The onRequestMagnificationSpec() method would be triggered only when the fullscreen magnifier is magnified. In this case, the request doesn't matter and we should always disable the window magnification.
Test: atest MagnificationControllerTest
Change-Id: If390a43b1858296d9050fa3ec909efcf3d378ae9
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions