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

Skip to content
Commit a368034a authored by Michael Groover's avatar Michael Groover
Browse files

Setup TelephonyPermissions mocks for all SubscriptionController tests

The WRITE_SMS appop check in TelephonyPermission's phone number access
verification has been moved after the READ_PHONE_STATE and carrier
privilege check. Due to the new phone number access requirements for
target R+ any tests that query for SubscriptionInfo objects must setup
the mocks for the TelephonyPermission checks; this commit does this in
the setUp method as a majority of the SubscriptionController tests will
perform this query.

Bug: 157642567
Test: atest SubscriptionControllerTest
Test: atest TelephonyPermissionsTest
Test: atest PhoneSubInfoControllerTest
Change-Id: I9e5f0bef0c9c9d820492d92baa48e110abf4c517
parent 9e974c13
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