Sends fake data into SettingsIntelligence if there is no data in the battery consumption list, otherwise we don't have battery level data to draw into the chart graph. We should draw the battery levels if it is full-charged without any BatteryEntry data. Bug: 184807417 Test: make SettingsRoboTests Test: make SettingsGoogleRoboTests Change-Id: I759e769256f4aa0ec152afff5c265ee3d04c03da
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.