We should make sure both 'Use location' & 'Wi-Fi scanning' are enabled before calling setWifiWakeupEnabled. Bug: 131777439 Test: manual Change-Id: I602917cfa7c5581ecb414e8c44b4e20c8f9ea78d
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.