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

Unified Diff: chrome/browser/chromeos/net/connectivity_state_helper.h

Issue 14179007: Move cryptohome_library to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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: chrome/browser/chromeos/net/connectivity_state_helper.h
diff --git a/chrome/browser/chromeos/net/connectivity_state_helper.h b/chrome/browser/chromeos/net/connectivity_state_helper.h
index e41a7b1906643cd65829717da9383a7c097cf11b..05f3e5c76e0b5cc528aad8b6967965efb55b2137 100644
--- a/chrome/browser/chromeos/net/connectivity_state_helper.h
+++ b/chrome/browser/chromeos/net/connectivity_state_helper.h
@@ -23,17 +23,14 @@ class ConnectivityStateHelper {
// handler) implementation or the network library implementation based
// on the value of command line flag.
static void Initialize();
-
- // Similar to initialize, but can be used to inject an alternative
- // (say,a MockConnectivityStateHelper) implementation.
- static void InitializeForTesting(ConnectivityStateHelper* csh);
-
- // Returns true if the global instance has been initialized.
static bool IsInitialized();
-
static void Shutdown();
static ConnectivityStateHelper* Get();
+ // Sets up Get() to return |impl| for testing (e.g. with a mock
+ // implementation). Call SetForTest(NUL) when |impl| is deleted.
+ static void SetForTest(ConnectivityStateHelper* impl);
+
// Returns true if we are in a connected state.
virtual bool IsConnected() = 0;

Powered by Google App Engine
This is Rietveld 408576698