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

Unified Diff: chromeos/network/portal_detector/network_portal_detector.h

Issue 2870203003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: Make Hands-Off Zero-Touch Enrollment compatibile with tests Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/portal_detector/network_portal_detector.h
diff --git a/chromeos/network/portal_detector/network_portal_detector.h b/chromeos/network/portal_detector/network_portal_detector.h
index f5cf75646a90af632d0f72049089c77fda3bc56c..b65e8c27a98cc0ed16a490fa2694af6d814f95d3 100644
--- a/chromeos/network/portal_detector/network_portal_detector.h
+++ b/chromeos/network/portal_detector/network_portal_detector.h
@@ -138,8 +138,15 @@ CHROMEOS_EXPORT void SetNetworkPortalDetector(
// and deleted by Shutdown().
CHROMEOS_EXPORT void InitializeForTesting(
NetworkPortalDetector* network_portal_detector);
+
+// Returns true if the network portal detector has been set for testing.
CHROMEOS_EXPORT bool SetForTesting();
+// Make it globally known that testing is over.
+// Should be called in the TearDown of any test where InitializeForTesting was
+// used.
+CHROMEOS_EXPORT void EndTest();
xiyuan 2017/05/15 17:24:23 This is not necessary and resetting the flag separ
kumarniranjan 2017/05/15 22:08:22 Thanks for catching this. I think I used to need i
xiyuan 2017/05/15 22:30:20 I am okay leaving it as-is.
kumarniranjan 2017/05/15 23:21:53 Okay, I will leave it as-is. Smaller CLs are bette
+
} // namespace network_portal_detector
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698