From 9697c5abfad683112288d367f07bf68d7eb9a05a Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Tue, 3 Nov 2009 06:03:31 +0000 Subject: Add a command line flag to force all network traffic through a particular server. The command line is: --fixed-server=host:port When set, all traffic will be diverted through this server. This is useful for testing purposes with fixed servers. BUG=none TEST=none Review URL: http://codereview.chromium.org/345034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30798 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/chrome_switches.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome/common/chrome_switches.cc') diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 1099dd55..a1d66b9 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -566,6 +566,16 @@ const char kUninstall[] = "uninstall"; // This is a temporary testing flag. const char kUseFlip[] = "use-flip"; +// Force all requests to go to this server. This commandline is provided +// for testing purposes only, and will likely be removed soon. It can also +// hurt startup performance as it does a synchronous name resolution on the +// UI thread. The port is not optional. +// The host resolution using this scheme is done exactly once at startup. +// From that point on, it is completely a static configuration. +// TODO(mbelshe): Remove this flag when testing is complete. +// --testing-fixed-server=myserver:1000 +const char kFixedServer[] = "testing-fixed-server"; + // Use the low fragmentation heap for the CRT. const char kUseLowFragHeapCrt[] = "use-lf-heap"; -- cgit v1.1