Merge "NetworkRequestDialog: Exit the dialog on connect failure" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-15 02:52:27 +00:00
committed by Android (Google) Code Review
5 changed files with 16 additions and 15 deletions

View File

@@ -126,4 +126,13 @@ public class NetworkRequestDialogActivityTest {
verify(mActivity).finish();
}
@Test
public void updateAccessPointList_onUserSelectionConnectFailure_shouldFinishActivity() {
final WifiConfiguration config = new WifiConfiguration();
config.SSID = "Test AP 3";
mActivity.onUserSelectionConnectFailure(config);
verify(mActivity).finish();
}
}