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

Skip to content
Commit 63a89f28 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Mock WakeLocks in Telecom for Unit Testing

Currently, the proximity and in-call wakelock controllers use
PowerManager and PowerManager.WakeLock, which are final and can
not be mocked. A container named TelecomWakeLock has been introduced,
which encapsulates WakeLock logic for Unit Testing.

Unit tests are added for the ProximitySensorManager and InCallWakeLockControllerTest.

Change-Id: I4a894d4cd8d9d8952144a41a4d0a4bf4dac4de46
parent 408277aa
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