Fix Telecom Test breakage due to Bluetooth permission change
BT code changed permissions to use Context#checkSelfPermission, which caused Telecom unit tests to fail in setup() phase. This caused a cascading issue where Logging sessions would be setup bug never ended, causing Session recursion tests to fail when the logging sessions were never previously cleaned up. 1) Fixed permission check mocking in tests. 2) Put bound on recursion in Session#toString to ensure we do not hit this scenario. Fixes: 186694546 Fixes: 186708966 AOSP: aosp/1690692 Test: atest TelecomUnitTests Change-Id: Ibb4e2a86cccc50f23511f20c32b59af181301246
Loading
Please register or sign in to comment