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

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

Issue 2929533002: Fill has_password_field for password reuse ping (Closed)
Patch Set: fix broken test due to rebase Created 3 years, 6 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/chrome_password_manager_client_unittest.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
index de65bda211153e7aa18f5efeefc3c28221bd025a..eb0011af34137b0f82112ae891be81bc0967ae57 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
@@ -87,8 +87,8 @@ class MockPasswordProtectionService
MOCK_METHOD0(IsHistorySyncEnabled, bool());
MOCK_METHOD4(MaybeStartPasswordFieldOnFocusRequest,
void(WebContents*, const GURL&, const GURL&, const GURL&));
- MOCK_METHOD3(MaybeStartProtectedPasswordEntryRequest,
- void(WebContents*, const GURL&, const std::string&));
+ MOCK_METHOD4(MaybeStartProtectedPasswordEntryRequest,
+ void(WebContents*, const GURL&, const std::string&, bool));
MOCK_METHOD3(ShowPhishingInterstitial,
void(const GURL&, const std::string&, content::WebContents*));
@@ -635,9 +635,9 @@ TEST_F(ChromePasswordManagerClientTest,
std::unique_ptr<MockChromePasswordManagerClient> client(
new MockChromePasswordManagerClient(test_web_contents.get()));
EXPECT_CALL(*client->password_protection_service(),
- MaybeStartProtectedPasswordEntryRequest(_, _, _))
+ MaybeStartProtectedPasswordEntryRequest(_, _, _, true))
.Times(1);
- client->CheckProtectedPasswordEntry(std::string("saved_domain.com"));
+ client->CheckProtectedPasswordEntry(std::string("saved_domain.com"), true);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698