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

Side by Side Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 1727413002: Reland: No longer start up profile if there was an error fetching policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cstring> 5 #include <cstring>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 class SamlTest : public OobeBaseTest { 311 class SamlTest : public OobeBaseTest {
312 public: 312 public:
313 SamlTest() : cryptohome_client_(new SecretInterceptingFakeCryptohomeClient) { 313 SamlTest() : cryptohome_client_(new SecretInterceptingFakeCryptohomeClient) {
314 set_initialize_fake_merge_session(false); 314 set_initialize_fake_merge_session(false);
315 } 315 }
316 ~SamlTest() override {} 316 ~SamlTest() override {}
317 317
318 void SetUpCommandLine(base::CommandLine* command_line) override { 318 void SetUpCommandLine(base::CommandLine* command_line) override {
319 command_line->AppendSwitch(switches::kOobeSkipPostLogin); 319 command_line->AppendSwitch(switches::kOobeSkipPostLogin);
320 command_line->AppendSwitch(
321 chromeos::switches::kAllowFailedPolicyFetchForTest);
320 322
321 const GURL gaia_url = gaia_https_forwarder_.GetURLForSSLHost(""); 323 const GURL gaia_url = gaia_https_forwarder_.GetURLForSSLHost("");
322 const GURL saml_idp_url = saml_https_forwarder_.GetURLForSSLHost("SAML"); 324 const GURL saml_idp_url = saml_https_forwarder_.GetURLForSSLHost("SAML");
323 fake_saml_idp_.SetUp(saml_idp_url.path(), gaia_url); 325 fake_saml_idp_.SetUp(saml_idp_url.path(), gaia_url);
324 fake_gaia_->RegisterSamlUser(kFirstSAMLUserEmail, saml_idp_url); 326 fake_gaia_->RegisterSamlUser(kFirstSAMLUserEmail, saml_idp_url);
325 fake_gaia_->RegisterSamlUser(kSecondSAMLUserEmail, saml_idp_url); 327 fake_gaia_->RegisterSamlUser(kSecondSAMLUserEmail, saml_idp_url);
326 fake_gaia_->RegisterSamlUser( 328 fake_gaia_->RegisterSamlUser(
327 kHTTPSAMLUserEmail, 329 kHTTPSAMLUserEmail,
328 embedded_test_server()->base_url().Resolve("/SAML")); 330 embedded_test_server()->base_url().Resolve("/SAML"));
329 fake_gaia_->RegisterSamlUser(kDifferentDomainSAMLUserEmail, saml_idp_url); 331 fake_gaia_->RegisterSamlUser(kDifferentDomainSAMLUserEmail, saml_idp_url);
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 kTestAuthLSIDCookie1); 1236 kTestAuthLSIDCookie1);
1235 1237
1236 GetCookies(); 1238 GetCookies();
1237 EXPECT_EQ(kTestAuthSIDCookie1, GetCookieValue(kGAIASIDCookieName)); 1239 EXPECT_EQ(kTestAuthSIDCookie1, GetCookieValue(kGAIASIDCookieName));
1238 EXPECT_EQ(kTestAuthLSIDCookie1, GetCookieValue(kGAIALSIDCookieName)); 1240 EXPECT_EQ(kTestAuthLSIDCookie1, GetCookieValue(kGAIALSIDCookieName));
1239 EXPECT_EQ(kSAMLIdPCookieValue1, GetCookieValue(kSAMLIdPCookieName)); 1241 EXPECT_EQ(kSAMLIdPCookieValue1, GetCookieValue(kSAMLIdPCookieName));
1240 } 1242 }
1241 1243
1242 1244
1243 } // namespace chromeos 1245 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698