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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 class LoginDisplayHost; | 18 class LoginDisplayHost; |
19 class WizardController; | 19 class WizardController; |
20 | 20 |
21 // Base class for test related to login wizard and its screens. | 21 // Base class for test related to login wizard and its screens. |
22 // Instead of creating Chrome browser window it creates login wizard window | 22 // Instead of creating Chrome browser window it creates login wizard window |
23 // with specified parameters and allows to customize environment at the | 23 // with specified parameters and allows to customize environment at the |
24 // right moment in time before wizard is created. | 24 // right moment in time before wizard is created. |
25 class WizardInProcessBrowserTest : public InProcessBrowserTest { | 25 class WizardInProcessBrowserTest : public InProcessBrowserTest { |
26 public: | 26 public: |
27 explicit WizardInProcessBrowserTest(const char* screen_name); | 27 explicit WizardInProcessBrowserTest(const char* screen_name); |
28 | 28 |
29 // Overridden from InProcessBrowserTest: | 29 // Overridden from InProcessBrowserTest: |
30 virtual void SetUp() OVERRIDE; | 30 virtual void SetUp() override; |
31 | 31 |
32 protected: | 32 protected: |
33 // Can be overriden by derived test fixtures to set up environment after | 33 // Can be overriden by derived test fixtures to set up environment after |
34 // browser is created but wizard is not shown yet. | 34 // browser is created but wizard is not shown yet. |
35 virtual void SetUpWizard() {} | 35 virtual void SetUpWizard() {} |
36 | 36 |
37 // Overriden from InProcessBrowserTest: | 37 // Overriden from InProcessBrowserTest: |
38 virtual void SetUpOnMainThread() OVERRIDE; | 38 virtual void SetUpOnMainThread() override; |
39 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 39 virtual void SetUpCommandLine(base::CommandLine* command_line) override; |
40 virtual void TearDownOnMainThread() OVERRIDE; | 40 virtual void TearDownOnMainThread() override; |
41 | 41 |
42 private: | 42 private: |
43 std::string screen_name_; | 43 std::string screen_name_; |
44 LoginDisplayHost* host_; | 44 LoginDisplayHost* host_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(WizardInProcessBrowserTest); | 46 DISALLOW_COPY_AND_ASSIGN(WizardInProcessBrowserTest); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace chromeos | 49 } // namespace chromeos |
50 | 50 |
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ |
OLD | NEW |