For obvious bootstrapping reasons, DNS settings have always used IP address string literals in input fields. However, since we can use the network-assigned nameservers to bootstrap our way to multiple IP addresses of multiple families (!), hostnames provide a clear simplicity and future-proofing advantage. Permitting IP address literals means not only making sure that we can validate X.509v3 certificates for IP addresses, but coping with the inevitable broken configurations where users may have configured IPv4 addresses but no IPv6 addresses. This will unnecessarily complicate life on IPv6-only networks. =) Test: as follows - built - flashed - booted - tried to enter IP string literals - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsModeDialogPreferenceTest Bug: 34953048 Bug: 64133961 Bug: 73641539 Change-Id: I7a58e86ed640ff5600906fb3d8cb9a2c75598831
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.