summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2023-12-18 17:52:19 +0000
committer Eric Biggers <ebiggers@google.com> 2023-12-18 23:06:32 +0000
commit10531da3d5634372e2ece5ce77348955472006c9 (patch)
tree85098ef708a5c996107943745d05ffdb63d18e3f /api/api.go
parent60b7604d20a31f9e2ee39a65b65784bb7563131e (diff)
Fix and improve TrustManagerServiceTest
- Make these unit tests have fewer dependencies on the system. For example, don't use the system's real UserManagerService and LockSettingsService. Use userId 50 instead of userId 0 to help avoid unwanted dependencies. - Set up more things in setUp() so that individual tests don't need to. - Run the TrustManagerService handler on a separate thread so that code that flushes the message queue does not cause a deadlock. The existing tests are fine without this, but this is needed for a later CL that adds tests that call reportKeyguardShowingChanged(). This fixes failures in firstBootCompleted_defaultTrustAgentEnabled, newSystemTrustAgent_notEnabledWhenDefaultAgentIsSet, and serviceBooted_knownAgentsNotSet_enabledAgentsNotUpdated. Bug: 296464083 Test: atest TrustManagerServiceTest Change-Id: I6d1baacd38275b3cc9ba583b98ed1b139123ea9b
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions