| 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_OOBE_BASE_TEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class SigninScreenHandler; | 28 class SigninScreenHandler; |
| 29 | 29 |
| 30 // Base class for OOBE and Kiosk tests. | 30 // Base class for OOBE and Kiosk tests. |
| 31 class OobeBaseTest : public ExtensionApiTest { | 31 class OobeBaseTest : public ExtensionApiTest { |
| 32 public: | 32 public: |
| 33 OobeBaseTest(); | 33 OobeBaseTest(); |
| 34 virtual ~OobeBaseTest(); | 34 virtual ~OobeBaseTest(); |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 // InProcessBrowserTest overrides. | 37 // InProcessBrowserTest overrides. |
| 38 virtual void SetUp() OVERRIDE; | 38 virtual void SetUp() override; |
| 39 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 39 virtual void SetUpInProcessBrowserTestFixture() override; |
| 40 virtual void SetUpOnMainThread() OVERRIDE; | 40 virtual void SetUpOnMainThread() override; |
| 41 virtual void TearDownOnMainThread() OVERRIDE; | 41 virtual void TearDownOnMainThread() override; |
| 42 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 42 virtual void SetUpCommandLine(base::CommandLine* command_line) override; |
| 43 | 43 |
| 44 // Network status control functions. | 44 // Network status control functions. |
| 45 void SimulateNetworkOffline(); | 45 void SimulateNetworkOffline(); |
| 46 void SimulateNetworkOnline(); | 46 void SimulateNetworkOnline(); |
| 47 void SimulateNetworkPortal(); | 47 void SimulateNetworkPortal(); |
| 48 | 48 |
| 49 base::Closure SimulateNetworkOfflineClosure(); | 49 base::Closure SimulateNetworkOfflineClosure(); |
| 50 base::Closure SimulateNetworkOnlineClosure(); | 50 base::Closure SimulateNetworkOnlineClosure(); |
| 51 base::Closure SimulateNetworkPortalClosure(); | 51 base::Closure SimulateNetworkPortalClosure(); |
| 52 | 52 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 66 NetworkPortalDetectorTestImpl* network_portal_detector_; | 66 NetworkPortalDetectorTestImpl* network_portal_detector_; |
| 67 | 67 |
| 68 // Whether to use background networking. Note this is only effective when it | 68 // Whether to use background networking. Note this is only effective when it |
| 69 // is set before SetUpCommandLine is invoked. | 69 // is set before SetUpCommandLine is invoked. |
| 70 bool needs_background_networking_; | 70 bool needs_background_networking_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace chromeos | 73 } // namespace chromeos |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
| OLD | NEW |