Tested manually by: (1) Setting up a gmail account. (2) Setting up a screen pattern. (3) Going to Settings > System > Reset Options > Factory Wipe (4) Hit the Erase button. (5) Enter pattern into the Screenlock prompt. (6) Notice the Google credential confirmation screen. Prior to this change we would skip (5) if there was a Google account on the device. Test: make RunSettingsRoboTests ROBOTEST_FILTER=andorid.settings.MasterClear Bug: 72694056 Change-Id: Ie07c678ecbc8361e8e1792f82efdfb1261db49fb
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.