Chromium Code Reviews| 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()); |
| +} |