diff options
| author | 2022-09-09 17:35:46 +0900 | |
|---|---|---|
| committer | 2022-09-09 08:47:47 +0000 | |
| commit | 4121d6bd7d7d23fa6dccaa73f53ff20884737f4a (patch) | |
| tree | 07d4afc4987795c8fa4ba47664def382123a6f2c /libs/androidfw/StringPool.cpp | |
| parent | f5ee8436e1ba86e46e105832f53b9b8cb9a76b91 (diff) | |
Make ATMService#mUiContext mockable
Some vendor-specific (lightweight) unit tests use the real class for
ActivityRecord but mock ActivityTaskManagerService (e.g.
ArcLaunchParamsModifierTest).
The problem is that ActivityRecord directly accesses
ATMService#mUiContext to get the DevicePolicyManager service and the
property itself is marked as final, so this cannot be replaced with a
mock and instantiating ActivityRecord fails.
Bug: 244515960
Test: atest ArcLaunchParamsModifierTest
Change-Id: I2fc015d9f3dc4ce88607355b8e2a2849c2ac7fb4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions