| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Guarantees that WebUI has been initialized by waiting for | 28 // Guarantees that WebUI has been initialized by waiting for |
| 29 // NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE notification. | 29 // NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE notification. |
| 30 class LoginManagerTest : public MixinBasedBrowserTest { | 30 class LoginManagerTest : public MixinBasedBrowserTest { |
| 31 public: | 31 public: |
| 32 explicit LoginManagerTest(bool should_launch_browser); | 32 explicit LoginManagerTest(bool should_launch_browser); |
| 33 ~LoginManagerTest() override; | 33 ~LoginManagerTest() override; |
| 34 | 34 |
| 35 // Overridden from InProcessBrowserTest. | 35 // Overridden from InProcessBrowserTest. |
| 36 void TearDownOnMainThread() override; | 36 void TearDownOnMainThread() override; |
| 37 void SetUpCommandLine(base::CommandLine* command_line) override; | 37 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 38 void SetUpInProcessBrowserTestFixture() override; | |
| 39 void SetUpOnMainThread() override; | 38 void SetUpOnMainThread() override; |
| 40 void SetUp() override; | 39 void SetUp() override; |
| 41 | 40 |
| 42 // Registers the user with the given |user_id| on the device. | 41 // Registers the user with the given |user_id| on the device. |
| 43 // This method should be called in PRE_* test. | 42 // This method should be called in PRE_* test. |
| 44 // TODO(dzhioev): Add the ability to register users without a PRE_* test. | 43 // TODO(dzhioev): Add the ability to register users without a PRE_* test. |
| 45 void RegisterUser(const std::string& user_id); | 44 void RegisterUser(const std::string& user_id); |
| 46 | 45 |
| 47 // Set expected credentials for next login attempt. | 46 // Set expected credentials for next login attempt. |
| 48 void SetExpectedCredentials(const UserContext& user_context); | 47 void SetExpectedCredentials(const UserContext& user_context); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool should_launch_browser_; | 97 bool should_launch_browser_; |
| 99 content::WebContents* web_contents_; | 98 content::WebContents* web_contents_; |
| 100 test::JSChecker js_checker_; | 99 test::JSChecker js_checker_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); | 101 DISALLOW_COPY_AND_ASSIGN(LoginManagerTest); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace chromeos | 104 } // namespace chromeos |
| 106 | 105 |
| 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ | 106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ |
| OLD | NEW |