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

Skip to content
Commit 8750ab19 authored by Eric Biggers's avatar Eric Biggers
Browse files

LockPatternUtilsTest: don't call the real TrustManagerService

As LockPatternUtilsTest is a unit test that doesn't otherwise interact
with the real system services, inject a mock TrustManager so that
LockPatternUtilsTest#testSetEnabledTrustAgents doesn't call into the
real TrustManagerService#reportEnabledTrustAgentsChanged.  This was
making this test require the ACCESS_KEYGUARD_SECURE_STORAGE permission.
This fix makes it possible to merge the utiltests version of
LockPatternUtilsTest into the coretests version.

Bug: 321737173
Ignore-AOSP-First: Conflict due to security fix ag/25939141
Test: atest FrameworksUtilTests:LockPatternUtilsTest
Change-Id: I81e25db9acbceefbc6e37352820dc0bd76d61b76
parent 37d64fa5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment