Before fix, privacy toggle in the Network details page causes a disconnection + reconnection even when selecting the same setting. Check current setting first to prevent unnecessary reconnection. Fix: 303093138 Test: manual - select same privacy setting Test: unit test Change-Id: I71208e3cd256fdc0dd5e895fa1a68fdab47aed9a
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.