Improve the wifi description for the case of private DNS broken
Currently, users don't know if the wifi description shows "No internet" means it really doesn't have internet access or no internet is because of private DNS resolution failed. So, Add a new description for wifi when private DNS is broken. Bug: 113242081 Test: make -j44 RunSettingsRoboTests \ ROBOTEST_FILTER=WifiDetailPreferenceControllerTest Change-Id: I44a7e51cf76dc3f2a6b9583f226af6649f9b1f5f
This commit is contained in:
@@ -993,6 +993,14 @@ public class WifiDetailPreferenceControllerTest {
|
||||
updateNetworkCapabilities(nc);
|
||||
inOrder.verify(mockHeaderController).setSummary(summary);
|
||||
|
||||
// UI will be refreshed when private DNS is broken.
|
||||
summary = "Private DNS server cannot be accessed";
|
||||
when(mockAccessPoint.getSettingsSummary(true /* convertSavedAsDisconnected */))
|
||||
.thenReturn(summary);
|
||||
nc.setPrivateDnsBroken(true);
|
||||
updateNetworkCapabilities(nc);
|
||||
inOrder.verify(mockHeaderController).setSummary(summary);
|
||||
|
||||
// UI will be refreshed when device connects to a partial connectivity network.
|
||||
summary = "Limited connection";
|
||||
when(mockAccessPoint.getSettingsSummary(true /*convertSavedAsDisconnected*/))
|
||||
|
Reference in New Issue
Block a user