From DataUsageSummaryPreferenceController. NetworkPolicyEditor.read() is not called, so NetworkPolicyEditor.getPolicy() will always returns null. Data limit info is already set in getDataUsageInfo(). Bug: 295260929 Test: robo test Change-Id: I56a40cc906aa95207785886e704b1a59ea344e9c
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.