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

Skip to content
Commit e30e705c authored by Dennis Kiilerich's avatar Dennis Kiilerich
Browse files

Create a RoleManagerWrapper in BugreportManagerServiceImpl.Injector

to allow for overriding the behaviour in tests.

The allowBypassingQualification attribute of the
SYSTEM_AUTOMOTIVE_PROJECTION role has been removed, so
BugreportManagerServiceImplTest#testCancelBugreportWithRole can no
longer add itself to the role using the real RoleManager.
Instead, a wrapper is used to allow the test to override the RoleManager
behaviour.
Note that RoleManager cannot be mocked because it is final.

Flag: EXEMPT bugfix

Bug: 337386451

Test: Verified that
BugreportManagerServiceImplTest#testCancelBugreportWithRole now passes,
and also checked that Android Auto bug reporting still works.

Change-Id: I6d2505969fbfb486df8770ed8c097d81600f01c7
parent 4c6d428e
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