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

Commit dde6d4d1 authored by Miriam Polzer's avatar Miriam Polzer
Browse files

HSUM user fixes for ChooserActivityTest

This CL contains two fixes for the ChooserActivityTest:
- Set the work profile id based on HSUM or non HSUM.
- Create a list controller mock based on the overriden work profile and
  not on system user.

With both of these together, tests are not crashing anymore on HSUM, and
the testWorkTab_workUserNotRunning_workTargetsShown test succeeds.

Other tests are still failing and more work will be required to make
those tests HSUM-compatible.

Fix: 383079863
Test: atest com.android.internal.app.ChooserActivityTest
Flag: EXEMPT TEST_ONLY
Change-Id: I7b744f1bd78b2a48f9b71b3b3c6e4259e5e4f56d
parent c13717cd
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