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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 class FakeUserManager; | 26 class FakeUserManager; |
27 class NetworkPortalDetectorTestImpl; | 27 class NetworkPortalDetectorTestImpl; |
28 | 28 |
29 // Base class for OOBE and Kiosk tests. | 29 // Base class for OOBE and Kiosk tests. |
30 class OobeBaseTest : public ExtensionApiTest { | 30 class OobeBaseTest : public ExtensionApiTest { |
31 public: | 31 public: |
32 OobeBaseTest(); | 32 OobeBaseTest(); |
33 virtual ~OobeBaseTest(); | 33 ~OobeBaseTest() override; |
34 | 34 |
35 protected: | 35 protected: |
36 // InProcessBrowserTest overrides. | 36 // InProcessBrowserTest overrides. |
37 virtual void SetUp() override; | 37 void SetUp() override; |
38 virtual void SetUpInProcessBrowserTestFixture() override; | 38 void SetUpInProcessBrowserTestFixture() override; |
39 virtual void SetUpOnMainThread() override; | 39 void SetUpOnMainThread() override; |
40 virtual void TearDownOnMainThread() override; | 40 void TearDownOnMainThread() override; |
41 virtual void SetUpCommandLine(base::CommandLine* command_line) override; | 41 void SetUpCommandLine(base::CommandLine* command_line) override; |
42 | 42 |
43 // Network status control functions. | 43 // Network status control functions. |
44 void SimulateNetworkOffline(); | 44 void SimulateNetworkOffline(); |
45 void SimulateNetworkOnline(); | 45 void SimulateNetworkOnline(); |
46 void SimulateNetworkPortal(); | 46 void SimulateNetworkPortal(); |
47 | 47 |
48 base::Closure SimulateNetworkOfflineClosure(); | 48 base::Closure SimulateNetworkOfflineClosure(); |
49 base::Closure SimulateNetworkOnlineClosure(); | 49 base::Closure SimulateNetworkOnlineClosure(); |
50 base::Closure SimulateNetworkPortalClosure(); | 50 base::Closure SimulateNetworkPortalClosure(); |
51 | 51 |
(...skipping 10 matching lines...) Expand all Loading... |
62 NetworkPortalDetectorTestImpl* network_portal_detector_; | 62 NetworkPortalDetectorTestImpl* network_portal_detector_; |
63 | 63 |
64 // Whether to use background networking. Note this is only effective when it | 64 // Whether to use background networking. Note this is only effective when it |
65 // is set before SetUpCommandLine is invoked. | 65 // is set before SetUpCommandLine is invoked. |
66 bool needs_background_networking_; | 66 bool needs_background_networking_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace chromeos | 69 } // namespace chromeos |
70 | 70 |
71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEST_OOBE_BASE_TEST_H_ |
OLD | NEW |