Domain is required for client to validate server's certificate. This change disable Save button for a new Wi-Fi network of a specified CA certificate but empty domain. Bug: 161378819 Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigController2Test manual 1. Install a certificate. 2. Add a new Wi-Fi network of EAP method PEAP 3. Set CA certificate to the certificate installed at 1. 4. Save button should be disabled. 5. Input something in domain field. 6. Save button should be enabled. Change-Id: I65c8b29ec7a03b21403ddbfc087ce48c2a4a69e4
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.