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

Unified Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 276903002: Remove credentials passing API version 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/saml/saml_browsertest.cc
diff --git a/chrome/browser/chromeos/login/saml/saml_browsertest.cc b/chrome/browser/chromeos/login/saml/saml_browsertest.cc
index 200426392c018abd6407eaebefaaf77760d4fed8..8522a087ec2149abe66afc62265de3d417f74474 100644
--- a/chrome/browser/chromeos/login/saml/saml_browsertest.cc
+++ b/chrome/browser/chromeos/login/saml/saml_browsertest.cc
@@ -418,26 +418,9 @@ IN_PROC_BROWSER_TEST_F(SamlTest, SamlUI) {
JsExpect("!$('gaia-signin').classList.contains('saml')");
}
-// Tests the sign-in flow when version 1 of the credentials passing API is used.
-IN_PROC_BROWSER_TEST_F(SamlTest, CredentialPassingAPIV1) {
- fake_saml_idp()->SetLoginHTMLTemplate("saml_api_login_v1.html");
- fake_saml_idp()->SetLoginAuthHTMLTemplate("saml_api_login_auth.html");
- StartSamlAndWaitForIdpPageLoad(kFirstSAMLUserEmail);
-
- // Fill-in the SAML IdP form and submit.
- SetSignFormField("Email", "fake_user");
- SetSignFormField("Password", "fake_password");
- ExecuteJsInSigninFrame("document.getElementById('Submit').click();");
-
- // Login should finish login and a session should start.
- content::WindowedNotificationObserver(
- chrome::NOTIFICATION_SESSION_STARTED,
- content::NotificationService::AllSources()).Wait();
-}
-
-// Tests the sign-in flow when version 2 of the credentials passing API is used.
-IN_PROC_BROWSER_TEST_F(SamlTest, CredentialPassingAPIV2) {
- fake_saml_idp()->SetLoginHTMLTemplate("saml_api_login_v2.html");
+// Tests the sign-in flow when the credentials passing API is used.
+IN_PROC_BROWSER_TEST_F(SamlTest, CredentialPassingAPI) {
+ fake_saml_idp()->SetLoginHTMLTemplate("saml_api_login.html");
fake_saml_idp()->SetLoginAuthHTMLTemplate("saml_api_login_auth.html");
StartSamlAndWaitForIdpPageLoad(kFirstSAMLUserEmail);
« no previous file with comments | « no previous file | chrome/browser/resources/gaia_auth/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698