Merge "Add dialog for enabling a provider in settings"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6065f10f11
@@ -390,7 +390,7 @@ public class CredentialManagerPreferenceControllerTest {
|
||||
Intent intent = new Intent(Settings.ACTION_CREDENTIAL_PROVIDER);
|
||||
intent.setData(Uri.parse("package:" + packageName));
|
||||
assertThat(controller.verifyReceivedIntent(intent)).isTrue();
|
||||
controller.completeEnableProviderDialogBox(DialogInterface.BUTTON_POSITIVE, packageName);
|
||||
controller.completeEnableProviderDialogBox(DialogInterface.BUTTON_POSITIVE, packageName, true);
|
||||
assertThat(mReceivedResultCode.get()).isEqualTo(Activity.RESULT_OK);
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ public class CredentialManagerPreferenceControllerTest {
|
||||
Intent intent = new Intent(Settings.ACTION_CREDENTIAL_PROVIDER);
|
||||
intent.setData(Uri.parse("package:" + packageName));
|
||||
assertThat(controller.verifyReceivedIntent(intent)).isTrue();
|
||||
controller.completeEnableProviderDialogBox(DialogInterface.BUTTON_NEGATIVE, packageName);
|
||||
controller.completeEnableProviderDialogBox(DialogInterface.BUTTON_NEGATIVE, packageName, true);
|
||||
assertThat(mReceivedResultCode.get()).isEqualTo(Activity.RESULT_CANCELED);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user