diff options
| author | 2024-04-29 18:05:25 -0700 | |
|---|---|---|
| committer | 2024-04-30 11:09:57 -0700 | |
| commit | e30e705cb6534cd4ede799b2fc8c6dda809be4f5 (patch) | |
| tree | ff3a8692cfcc06b39b044721ddaf8199acc7213f /libs/androidfw/StringPool.cpp | |
| parent | 4c6d428e7bc6f512256dbbe47edcb630aaef2613 (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions