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

Skip to content
Commit cf6549f2 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Refactor dependency on AccessibilityManager.

The class is final, so the attempt to mock it in the Telecom unit tests
was resulting in Mockito just using the actual class.  This was causing
test flakes.

To fix this, added a new interface that abstracts out the few methods
from AM that our code actually uses.  We mock these in the unit tests and
rely on the real class in production.

Test: Ran all Telecom unit tests to verify no regressions.
Fixes: 270428514
Change-Id: I0e58896640e5ff5c9d7446665ff0ca42cf15597c
parent cfaab432
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