Merge "Clean up useless defender dialog code" into tm-qpr-dev am: 2d30eaa3bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20516820 Change-Id: Icd0d4853960504be5e6c358ab76af84bae752df6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -244,20 +244,4 @@ public class BatteryTipDialogFragmentTest {
|
||||
assertThat(shadowDialog.getMessage()).isEqualTo(
|
||||
mContext.getText(R.string.battery_tip_dialog_summary_message));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnCreateDialog_defenderTip_fireDialog() {
|
||||
mDialogFragment = BatteryTipDialogFragment.newInstance(mDefenderTip, METRICS_KEY);
|
||||
|
||||
FragmentController.setupFragment(mDialogFragment, FragmentActivity.class,
|
||||
0 /* containerViewId */, null /* bundle */);
|
||||
|
||||
final AlertDialog dialog = ShadowAlertDialogCompat.getLatestAlertDialog();
|
||||
ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog);
|
||||
|
||||
assertThat(shadowDialog.getTitle()).isEqualTo(
|
||||
mContext.getString(R.string.battery_tip_limited_temporarily_title));
|
||||
assertThat(shadowDialog.getMessage()).isEqualTo(
|
||||
mContext.getString(R.string.battery_tip_limited_temporarily_dialog_msg, "80%"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user