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

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

Issue 906973007: PasswordStore: Clean up expectations about rewriting vectors of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FillMatchingLogins + a typo Created 5 years, 9 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
Index: chrome/browser/password_manager/password_store_mac_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_mac_unittest.cc b/chrome/browser/password_manager/password_store_mac_unittest.cc
index 71ac708072e6375fd6ebb07d1a996d10da87e112..5025e3570862170d556a1fb5bb7382dd509781b6 100644
--- a/chrome/browser/password_manager/password_store_mac_unittest.cc
+++ b/chrome/browser/password_manager/password_store_mac_unittest.cc
@@ -1249,7 +1249,7 @@ TEST_F(PasswordStoreMacTest, TestStoreUpdate) {
}
matching_items.clear();
- login_db()->GetLogins(*query_form, &matching_items);
+ EXPECT_TRUE(login_db()->GetLogins(*query_form, &matching_items));
EXPECT_EQ(updates[i].password ? 1U : 0U, matching_items.size())
<< "iteration " << i;
}
@@ -1312,13 +1312,13 @@ TEST_F(PasswordStoreMacTest, TestDBKeychainAssociation) {
owned_keychain_adapter.PasswordsFillingForm(www_form->signon_realm,
www_form->scheme);
EXPECT_EQ(0u, matching_items.size());
- login_db()->GetLogins(*www_form, &matching_items);
+ EXPECT_TRUE(login_db()->GetLogins(*www_form, &matching_items));
EXPECT_EQ(0u, matching_items.size());
// No trace of m.facebook.com.
matching_items = owned_keychain_adapter.PasswordsFillingForm(
m_form.signon_realm, m_form.scheme);
EXPECT_EQ(0u, matching_items.size());
- login_db()->GetLogins(m_form, &matching_items);
+ EXPECT_TRUE(login_db()->GetLogins(m_form, &matching_items));
EXPECT_EQ(0u, matching_items.size());
}
@@ -1486,7 +1486,7 @@ TEST_F(PasswordStoreMacTest, TestRemoveLoginsMultiProfile) {
FinishAsyncProcessing();
ScopedVector<PasswordForm> matching_items;
- login_db()->GetLogins(*www_form, &matching_items);
+ EXPECT_TRUE(login_db()->GetLogins(*www_form, &matching_items));
EXPECT_EQ(1u, matching_items.size());
matching_items.clear();
@@ -1494,7 +1494,7 @@ TEST_F(PasswordStoreMacTest, TestRemoveLoginsMultiProfile) {
FinishAsyncProcessing();
// Check the second facebook form is gone.
- login_db()->GetLogins(*www_form, &matching_items);
+ EXPECT_TRUE(login_db()->GetLogins(*www_form, &matching_items));
EXPECT_EQ(0u, matching_items.size());
// Check the first facebook form is still there.

Powered by Google App Engine
This is Rietveld 408576698