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

Unified Diff: chromeos/chromeos_switches.cc

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | chromeos/dbus/dbus_thread_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/chromeos_switches.cc
diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc
index 9696c8caeb0d38d3f0371a166eb6e7294d49c1d6..386c034789e6fa8b1735f0ca1dd4b526ce95ad99 100644
--- a/chromeos/chromeos_switches.cc
+++ b/chromeos/chromeos_switches.cc
@@ -21,15 +21,15 @@ const char kAuthExtensionPath[] = "auth-ext-path";
// Forces the stub implementation of dbus clients.
const char kDbusStub[] = "dbus-stub";
-// All stub networks are idle by default.
-const char kDefaultStubNetworkStateIdle[] = "default-stub-network-state-idle";
-
// Time before a machine at OOBE is considered derelict
const char kDerelictDetectionTimeout[] = "derelict-detection-timeout";
// Time before a derelict machines starts demo mode.
const char kDerelictIdleTimeout[] = "derelict-idle-timeout";
+// Integer flag that sets the DeviceRegistered local state pref.
+const char kDeviceRegistered[] = "device-registered";
+
// Disables wallpaper boot animation (except of OOBE case).
const char kDisableBootAnimation[] = "disable-boot-animation";
@@ -93,25 +93,13 @@ const char kEnableCarrierSwitching[] = "enable-carrier-switching";
const char kEnableNetworkPortalNotification[] =
"enable-network-portal-notification";
-// Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
+// Enable "interactive" mode for stub implemenations (e.g. PowerManagerClient)
const char kEnableStubInteractive[] = "enable-stub-interactive";
-// Enable stub portalled wifi network for testing.
-const char kEnableStubPortalledWifi[] = "enable-stub-portalled-wifi";
-
// Enables touchpad three-finger-click as middle button.
const char kEnableTouchpadThreeFingerClick[]
= "enable-touchpad-three-finger-click";
-// Specifies stub network types to be enabled. If this switch is not specified,
-// ethernet, wifi and vpn are enabled by default.
-//
-// Examples:
-// Disable all network types: --enabled-stub-network-types=''
-// Enable wifi only: --enabled-stub-network-types=wifi
-// Enable ethernet and wifi: --enabled-stub-network-types=ethernet,wifi
-const char kEnabledStubNetworkTypes[] = "enabled-stub-network-types";
-
// Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
// than the kiosk app mode.
const char kEnableKioskMode[] = "enable-kiosk-mode";
@@ -187,8 +175,19 @@ const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
// Interval at which we check for total time on OOBE.
const char kOobeTimerInterval[] = "oobe-timer-interval";
-// Integer flag that sets the DeviceRegistered local state pref.
-const char kDeviceRegistered[] = "device-registered";
+// Specifies network stub behavior. If this switch is not specified,
+// ethernet, wifi and vpn are enabled by default, and transitions occur
+// instantaneously. Multiple options can be comma separated (no spaces).
+// See FakeShillManagerClient::SetInitialNetworkState for implementation.
+// Examples:
+// 'wifi=on' - A wifi network is initially connected ('1' also works)
+// 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
+// 'wifi=disabled' - Wifi is initially disabled
+// 'wifi=none' - Wifi is unavailable
+// 'wifi=portal' - Wifi connection will be in Portal state
+// 'cellular=1' - Cellular is initially connected
+// 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
+const char kShillStub[] = "shill-stub";
// Skips the machine hwid check. Useful for running in VMs because they have no
// hwid.
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | chromeos/dbus/dbus_thread_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698