| OLD | NEW |
| 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 if (GetParam().enroll_device) { | 239 if (GetParam().enroll_device) { |
| 240 EnrollDevice(kUsername); | 240 EnrollDevice(kUsername); |
| 241 | 241 |
| 242 EXPECT_FALSE(user_manager->IsUserLoggedIn()); | 242 EXPECT_FALSE(user_manager->IsUserLoggedIn()); |
| 243 EXPECT_TRUE(browser_policy_connector()->IsEnterpriseManaged()); | 243 EXPECT_TRUE(browser_policy_connector()->IsEnterpriseManaged()); |
| 244 EXPECT_EQ(kDomain, browser_policy_connector()->GetEnterpriseDomain()); | 244 EXPECT_EQ(kDomain, browser_policy_connector()->GetEnterpriseDomain()); |
| 245 EXPECT_FALSE(profile_added_); | 245 EXPECT_FALSE(profile_added_); |
| 246 EXPECT_EQ(policy::USER_AFFILIATION_MANAGED, | 246 EXPECT_EQ(policy::USER_AFFILIATION_MANAGED, |
| 247 browser_policy_connector()->GetUserAffiliation(kUsername)); | 247 browser_policy_connector()->GetUserAffiliation(kUsername)); |
| 248 RunUntilIdle(); | 248 RunUntilIdle(); |
| 249 EXPECT_FALSE(user_manager->IsKnownUser(kUsername)); | 249 EXPECT_FALSE( |
| 250 user_manager->IsKnownUser(AccountId::FromUserEmail(kUsername))); |
| 250 } | 251 } |
| 251 | 252 |
| 252 // Skip the OOBE, go to the sign-in screen, and wait for the login screen to | 253 // Skip the OOBE, go to the sign-in screen, and wait for the login screen to |
| 253 // become visible. | 254 // become visible. |
| 254 WaitForSigninScreen(); | 255 WaitForSigninScreen(); |
| 255 EXPECT_FALSE(profile_added_); | 256 EXPECT_FALSE(profile_added_); |
| 256 | 257 |
| 257 // Prepare the fake HTTP responses. | 258 // Prepare the fake HTTP responses. |
| 258 if (GetParam().steps < 5) { | 259 if (GetParam().steps < 5) { |
| 259 // If this instance is not going to complete the entire flow successfully | 260 // If this instance is not going to complete the entire flow successfully |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 {3, kUsernameOtherDomain, true}, | 321 {3, kUsernameOtherDomain, true}, |
| 321 {4, kUsernameOtherDomain, true}, | 322 {4, kUsernameOtherDomain, true}, |
| 322 {5, kUsernameOtherDomain, true}, | 323 {5, kUsernameOtherDomain, true}, |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 INSTANTIATE_TEST_CASE_P(BlockingLoginTestInstance, | 326 INSTANTIATE_TEST_CASE_P(BlockingLoginTestInstance, |
| 326 BlockingLoginTest, | 327 BlockingLoginTest, |
| 327 testing::ValuesIn(kBlockinLoginTestCases)); | 328 testing::ValuesIn(kBlockinLoginTestCases)); |
| 328 | 329 |
| 329 } // namespace chromeos | 330 } // namespace chromeos |
| OLD | NEW |