commit | d2cdd6013990e313de0e00dfcb2e8c6766597488 | [log] [tgz] |
---|---|---|
author | Weng Su <wengsu@google.com> | Tue Jan 18 17:48:28 2022 +0000 |
committer | Weng Su <wengsu@google.com> | Tue Jan 18 17:48:28 2022 +0000 |
tree | b56e849f15c280001875b1845c8516e5226c3bf8 | |
parent | b81f2b77f03e45c1c8af11e1a41a06aa4cfdaccb [diff] |
Fix Robolectric failures for new registerReceiver security design - Security team add new interface to Context.registerReceiver() with a third parameter. - The new interface might have some issues in the test environment. - Spy the registerReceiver() and unregisterReceiver() to avoid unexpected issues. Bug: 214938188 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=WifiPrimarySwitchPreferenceControllerTest Change-Id: I5bf9fc860a3de99145bc7535ba57cb514b403966