commit | 0ae7e5bdcd2529ce45edd92717c503ead9de3e0c | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Tue Jun 15 16:11:01 2021 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Wed Jun 16 17:53:10 2021 +0900 |
tree | 82957896aa68d168cb8198b854b15e9d9aadd750 | |
parent | c9c745f2f2fd819247edc2228ce5d80e21e09e38 [diff] |
Allow mocking permission in TetheringServiceTest The test will currently fail if it is run in a package that has ACCESS_NETWORK_STATE. Add utilities to mock permissions, and mock the ACCESS_NETWORK_STATE permission to be denied. Bug: 187935317 Test: atest TetheringServiceTest Change-Id: I8df5f2ac21bf0314098e8c2e5ba583676ae8ab38