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

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

Issue 451853003: [Password Manager] Setup experiment to restrict autofilling of sync credential (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change cgi params Created 6 years, 4 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 100a3e6b7fca7c43eaa4a5a26a1c6ce957fe8edd..96e1a15666772ddf6c0670b302d245fdf09267e7 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
@@ -192,3 +192,16 @@ TEST_F(ChromePasswordManagerClientTest, LogToAReceiver) {
service_->UnregisterReceiver(&receiver_);
EXPECT_FALSE(client->IsLoggingActive());
}
+
+TEST_F(ChromePasswordManagerClientTest, LastLoadWasTransactionalReauthPage) {
+ ChromePasswordManagerClient* client = GetClient();
+ NavigateAndCommit(
+ GURL("https://accounts.google.com/login?rart=123&continue=blah"));
+ EXPECT_TRUE(client->LastLoadWasTransactionalReauthPage());
+
+ NavigateAndCommit(GURL("https://accounts.google.com/login?param=123"));
+ EXPECT_FALSE(client->LastLoadWasTransactionalReauthPage());
+
+ NavigateAndCommit(GURL("https://site.com/login?rart=678"));
Ilya Sherman 2014/08/12 02:17:33 What about rart with no value, e.g. "https://site.
Garrett Casto 2014/08/13 20:34:40 It works right now. I don't think that you will ge
+ EXPECT_FALSE(client->LastLoadWasTransactionalReauthPage());
+}

Powered by Google App Engine
This is Rietveld 408576698