Index: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc |
index a50f73ef3cfd7a60021c4ae9d3a94c963e067e99..4290cbf63ab378c97b7bf62d1ed237be8de0596c 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc |
@@ -1619,23 +1619,6 @@ TEST_F(AutofillDialogControllerTest, ErrorDuringSubmit) { |
EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
} |
-// TODO(dbeam): disallow changing accounts instead and remove this test. |
-TEST_F(AutofillDialogControllerTest, ChangeAccountDuringSubmit) { |
- EXPECT_CALL(*controller()->GetTestingWalletClient(), |
- GetFullWallet(_)).Times(1); |
- |
- SubmitWithWalletItems(CompleteAndValidWalletItems()); |
- |
- EXPECT_FALSE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); |
- EXPECT_FALSE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
- |
- SwitchToWallet(); |
- SwitchToAutofill(); |
- |
- EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); |
- EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
-} |
- |
TEST_F(AutofillDialogControllerTest, ErrorDuringVerifyCvv) { |
EXPECT_CALL(*controller()->GetTestingWalletClient(), |
GetFullWallet(_)).Times(1); |
@@ -1652,24 +1635,6 @@ TEST_F(AutofillDialogControllerTest, ErrorDuringVerifyCvv) { |
EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
} |
-// TODO(dbeam): disallow changing accounts instead and remove this test. |
-TEST_F(AutofillDialogControllerTest, ChangeAccountDuringVerifyCvv) { |
- EXPECT_CALL(*controller()->GetTestingWalletClient(), |
- GetFullWallet(_)).Times(1); |
- |
- SubmitWithWalletItems(CompleteAndValidWalletItems()); |
- controller()->OnDidGetFullWallet(CreateFullWallet("verify_cvv")); |
- |
- ASSERT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); |
- ASSERT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
- |
- SwitchToWallet(); |
- SwitchToAutofill(); |
- |
- EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_OK)); |
- EXPECT_TRUE(controller()->IsDialogButtonEnabled(ui::DIALOG_BUTTON_CANCEL)); |
-} |
- |
// Simulates receiving an INVALID_FORM_FIELD required action while processing a |
// |WalletClientDelegate::OnDid{Save,Update}*()| call. This can happen if Online |
// Wallet's server validation differs from Chrome's local validation. |