| 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 CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 5 #ifndef CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
| 6 #define CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 6 #define CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
| 10 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" | 10 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 CHROMEOS_EXPORT void Shutdown(); | 131 CHROMEOS_EXPORT void Shutdown(); |
| 132 | 132 |
| 133 CHROMEOS_EXPORT void SetNetworkPortalDetector( | 133 CHROMEOS_EXPORT void SetNetworkPortalDetector( |
| 134 NetworkPortalDetector* network_portal_detector); | 134 NetworkPortalDetector* network_portal_detector); |
| 135 | 135 |
| 136 // Initializes network portal detector for testing. The | 136 // Initializes network portal detector for testing. The |
| 137 // |network_portal_detector| will be owned by the internal pointer | 137 // |network_portal_detector| will be owned by the internal pointer |
| 138 // and deleted by Shutdown(). | 138 // and deleted by Shutdown(). |
| 139 CHROMEOS_EXPORT void InitializeForTesting( | 139 CHROMEOS_EXPORT void InitializeForTesting( |
| 140 NetworkPortalDetector* network_portal_detector); | 140 NetworkPortalDetector* network_portal_detector); |
| 141 | |
| 142 // Returns true if the network portal detector has been set for testing. | |
| 143 CHROMEOS_EXPORT bool SetForTesting(); | 141 CHROMEOS_EXPORT bool SetForTesting(); |
| 144 | 142 |
| 145 } // namespace network_portal_detector | 143 } // namespace network_portal_detector |
| 146 | 144 |
| 147 } // namespace chromeos | 145 } // namespace chromeos |
| 148 | 146 |
| 149 #endif // CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 147 #endif // CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
| OLD | NEW |