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

Commit 0e7702f7 authored by Felipe Leme's avatar Felipe Leme
Browse files

Added more unit tests for UserManagerService.

This CL adds tests for the following 3 methods:

- boolean isUserVisible(int userId)
- boolean isUserVisibleOnDisplay(int userId, int displayId)
- int getDisplayAssignedToUser(int userId)

It also adds UnitManagerInternalTest and refactors the test infra
so tests for methods whose implementation is the same for UMS / UMI
(i.e., where the method of the former calls the method of the latter
or vice versa) are written just once.

Bug: 244452695
Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest UserManagerInternalTest

Change-Id: I95b53935b8fa01edeb64816e2afda57d4852c888
parent effb3653
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