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
Loading
Please register or sign in to comment