Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc

Issue 1402463004: [Smart Lock, UI] Change cancel button to Never, save prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/password_manager/save_password_infobar_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc b/chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc
index e316ab7abbec307629c5e60d63d66d439f8732f1..4b9aaa66a1c8598cfda5d5510455920c05cad1ff 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc
@@ -128,8 +128,7 @@ void SavePasswordInfoBarDelegateTest::TearDown() {
TEST_F(SavePasswordInfoBarDelegateTest, CancelTestCredentialSourceAPI) {
scoped_ptr<MockPasswordFormManager> password_form_manager(
CreateMockFormManager());
- EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist())
- .Times(testing::Exactly(0));
+ EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist());
scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate(
password_form_manager.Pass(),
password_manager::CredentialSourceType::CREDENTIAL_SOURCE_API, false));
@@ -140,8 +139,7 @@ TEST_F(SavePasswordInfoBarDelegateTest,
CancelTestCredentialSourcePasswordManager) {
scoped_ptr<MockPasswordFormManager> password_form_manager(
CreateMockFormManager());
- EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist())
- .Times(testing::Exactly(1));
+ EXPECT_CALL(*password_form_manager.get(), PermanentlyBlacklist());
scoped_ptr<ConfirmInfoBarDelegate> infobar(CreateDelegate(
password_form_manager.Pass(), password_manager::CredentialSourceType::
CREDENTIAL_SOURCE_PASSWORD_MANAGER,
« no previous file with comments | « chrome/browser/password_manager/save_password_infobar_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698