In ag/10785119, WifiStatusTracker#setListening calls ConnectivityManager#unregisterNetworkCallback twice. Modify the fail test to match it. Bug: 151696220 Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiMasterSwitchPreferenceControllerTest Change-Id: Idd9917ce204e2abbc4bfbf760222191adadf4afa
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.