In some networks, network validation may only get success result for http probe but fail result for https probe. For this kind of network, it may still work at some websites or apps, but user didn't know about that. In order to fix this issue, we will check if network has partial connectivity and notify user to make a choice if they want to use this partial connectivity or not. Bug: 113450764 Bug: 128489091 Test: 1. Build pass. 2. make -j44 RunSettingsRoboTests ROBOTEST_FILTER=WifiDetailPreferenceControllerTest 3. Change captive_portal_https_url to https://invalid.com to simulate partial connectivity. Change-Id: I0e87f6f2ede173f45a7b6fcf842b4f9a83d8efa1 Merged-In: I0e87f6f2ede173f45a7b6fcf842b4f9a83d8efa1
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.