| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 6 |
| 7 #include "ash/shelf/wm_shelf.h" | 7 #include "ash/shelf/wm_shelf.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/system/tray/system_tray.h" | 9 #include "ash/system/tray/system_tray.h" |
| 10 #include "ash/wm_window.h" | 10 #include "ash/wm_window.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 class LoginSigninTest : public InProcessBrowserTest { | 86 class LoginSigninTest : public InProcessBrowserTest { |
| 87 protected: | 87 protected: |
| 88 void SetUpCommandLine(base::CommandLine* command_line) override { | 88 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 89 command_line->AppendSwitch(switches::kLoginManager); | 89 command_line->AppendSwitch(switches::kLoginManager); |
| 90 command_line->AppendSwitch(switches::kForceLoginManagerInTests); | 90 command_line->AppendSwitch(switches::kForceLoginManagerInTests); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void TearDownOnMainThread() override { | 93 void TearDownOnMainThread() override { |
| 94 // Close the login manager, which otherwise holds a KeepAlive that is not | 94 // Close the login manager, which otherwise holds a KeepAlive that is not |
| 95 // cleared in time by the end of the test. | 95 // cleared in time by the end of the test. |
| 96 LoginDisplayHost::default_host()->Finalize(); | 96 LoginDisplayHost::default_host()->Finalize(base::OnceClosure()); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void SetUpOnMainThread() override { | 99 void SetUpOnMainThread() override { |
| 100 LoginDisplayHostImpl::DisableRestrictiveProxyCheckForTest(); | 100 LoginDisplayHostImpl::DisableRestrictiveProxyCheckForTest(); |
| 101 } | 101 } |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 class LoginTest : public LoginManagerTest { | 104 class LoginTest : public LoginManagerTest { |
| 105 public: | 105 public: |
| 106 LoginTest() : LoginManagerTest(true) {} | 106 LoginTest() : LoginManagerTest(true) {} |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 TestDomainVisible(); | 479 TestDomainVisible(); |
| 480 | 480 |
| 481 fake_auth_policy_client_->set_auth_error(authpolicy::ERROR_BAD_PASSWORD); | 481 fake_auth_policy_client_->set_auth_error(authpolicy::ERROR_BAD_PASSWORD); |
| 482 SubmitActiveDirectoryCredentials(kTestActiveDirectoryUser, kPassword); | 482 SubmitActiveDirectoryCredentials(kTestActiveDirectoryUser, kPassword); |
| 483 WaitForMessage(&message_queue, "\"ShowAuthError\""); | 483 WaitForMessage(&message_queue, "\"ShowAuthError\""); |
| 484 TestPasswordError(); | 484 TestPasswordError(); |
| 485 TestDomainVisible(); | 485 TestDomainVisible(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 } // namespace chromeos | 488 } // namespace chromeos |
| OLD | NEW |