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

Side by Side Diff: chrome/browser/chromeos/login/test/wizard_in_process_browser_test.h

Issue 2566443005: cros: Replace WizardController string constants with OobeScreen values. (Closed)
Patch Set: Initial upload Created 4 years 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 #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 "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/chromeos/login/oobe_screen.h"
12 #include "chrome/test/base/in_process_browser_test.h" 13 #include "chrome/test/base/in_process_browser_test.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 class LoginDisplayHost; 17 class LoginDisplayHost;
17 18
18 // Base class for test related to login wizard and its screens. 19 // Base class for test related to login wizard and its screens.
19 // Instead of creating Chrome browser window it creates login wizard window 20 // Instead of creating Chrome browser window it creates login wizard window
20 // with specified parameters and allows to customize environment at the 21 // with specified parameters and allows to customize environment at the
21 // right moment in time before wizard is created. 22 // right moment in time before wizard is created.
22 class WizardInProcessBrowserTest : public InProcessBrowserTest { 23 class WizardInProcessBrowserTest : public InProcessBrowserTest {
23 public: 24 public:
24 explicit WizardInProcessBrowserTest(const char* screen_name); 25 explicit WizardInProcessBrowserTest(OobeScreen screen);
25 26
26 // Overridden from InProcessBrowserTest: 27 // Overridden from InProcessBrowserTest:
27 void SetUp() override; 28 void SetUp() override;
28 29
29 protected: 30 protected:
30 // Can be overriden by derived test fixtures to set up environment after 31 // Can be overriden by derived test fixtures to set up environment after
31 // browser is created but wizard is not shown yet. 32 // browser is created but wizard is not shown yet.
32 virtual void SetUpWizard() {} 33 virtual void SetUpWizard() {}
33 34
34 // Overriden from InProcessBrowserTest: 35 // Overriden from InProcessBrowserTest:
35 void SetUpOnMainThread() override; 36 void SetUpOnMainThread() override;
36 void SetUpCommandLine(base::CommandLine* command_line) override; 37 void SetUpCommandLine(base::CommandLine* command_line) override;
37 void TearDownOnMainThread() override; 38 void TearDownOnMainThread() override;
38 39
39 private: 40 private:
40 std::string screen_name_; 41 OobeScreen screen_;
41 LoginDisplayHost* host_; 42 LoginDisplayHost* host_ = nullptr;
42 43
43 DISALLOW_COPY_AND_ASSIGN(WizardInProcessBrowserTest); 44 DISALLOW_COPY_AND_ASSIGN(WizardInProcessBrowserTest);
44 }; 45 };
45 46
46 } // namespace chromeos 47 } // namespace chromeos
47 48
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698