- 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
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.