Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / test / wizard_in_process_browser_test.h
blobf8ef38002cdac239f17589257a5e1309d9561cda
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
3 // found in the LICENSE file.
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_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "chrome/test/base/in_process_browser_test.h"
13 class Browser;
14 class Profile;
16 namespace chromeos {
18 class LoginDisplayHost;
19 class WizardController;
21 // Base class for test related to login wizard and its screens.
22 // Instead of creating Chrome browser window it creates login wizard window
23 // with specified parameters and allows to customize environment at the
24 // right moment in time before wizard is created.
25 class WizardInProcessBrowserTest : public InProcessBrowserTest {
26 public:
27 explicit WizardInProcessBrowserTest(const char* screen_name);
29 // Overridden from InProcessBrowserTest:
30 void SetUp() override;
32 protected:
33 // Can be overriden by derived test fixtures to set up environment after
34 // browser is created but wizard is not shown yet.
35 virtual void SetUpWizard() {}
37 // Overriden from InProcessBrowserTest:
38 void SetUpOnMainThread() override;
39 void SetUpCommandLine(base::CommandLine* command_line) override;
40 void TearDownOnMainThread() override;
42 private:
43 std::string screen_name_;
44 LoginDisplayHost* host_;
46 DISALLOW_COPY_AND_ASSIGN(WizardInProcessBrowserTest);
49 } // namespace chromeos
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_WIZARD_IN_PROCESS_BROWSER_TEST_H_