Convert BatterySaverController to TogglePrefController. This was the first MasterSwitchController, so we needed to add the preference case to updateState. Test: Robotests Change-Id: I32f3dee0b183807c66c19513b8b064af8f369c2a Fixes: 67996992
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.