summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 05:59:57 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 05:59:57 +0000
commit05076ba206e040b31fdb41a39cc10a2ecc4adf9d (patch)
tree58c20da4c63a0384c2241b5ddd676a6b7bddf927 /chrome/browser/net
parent4c4aae74e9f32f7ff06226b3d5e2fd1723127913 (diff)
downloadchromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.zip
chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.gz
chromium_src-05076ba206e040b31fdb41a39cc10a2ecc4adf9d.tar.bz2
Convert a bunch of easy AppendSwitchWithValue to *ASCII.
For this patch, I skipped over any instance where it wasn't a nearly trivial change. Review URL: http://codereview.chromium.org/3069014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r--chrome/browser/net/chrome_url_request_context_unittest.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/browser/net/chrome_url_request_context_unittest.cc b/chrome/browser/net/chrome_url_request_context_unittest.cc
index 9f42e7b..eaaddf5 100644
--- a/chrome/browser/net/chrome_url_request_context_unittest.cc
+++ b/chrome/browser/net/chrome_url_request_context_unittest.cc
@@ -24,24 +24,23 @@ TEST(ChromeURLRequestContextTest, CreateProxyConfigTest) {
no_proxy.AppendSwitch(switches::kNoProxyServer);
CommandLine no_proxy_extra_params(unused_path);
no_proxy_extra_params.AppendSwitch(switches::kNoProxyServer);
- no_proxy_extra_params.AppendSwitchWithValue(switches::kProxyServer,
- "http://proxy:8888");
+ no_proxy_extra_params.AppendSwitchASCII(switches::kProxyServer,
+ "http://proxy:8888");
CommandLine single_proxy(unused_path);
- single_proxy.AppendSwitchWithValue(switches::kProxyServer,
- "http://proxy:8888");
+ single_proxy.AppendSwitchASCII(switches::kProxyServer, "http://proxy:8888");
CommandLine per_scheme_proxy(unused_path);
- per_scheme_proxy.AppendSwitchWithValue(switches::kProxyServer,
- "http=httpproxy:8888;ftp=ftpproxy:8889");
+ per_scheme_proxy.AppendSwitchASCII(switches::kProxyServer,
+ "http=httpproxy:8888;ftp=ftpproxy:8889");
CommandLine per_scheme_proxy_bypass(unused_path);
- per_scheme_proxy_bypass.AppendSwitchWithValue(switches::kProxyServer,
+ per_scheme_proxy_bypass.AppendSwitchASCII(
+ switches::kProxyServer,
"http=httpproxy:8888;ftp=ftpproxy:8889");
- per_scheme_proxy_bypass.AppendSwitchWithValue(
+ per_scheme_proxy_bypass.AppendSwitchASCII(
switches::kProxyBypassList,
".google.com, foo.com:99, 1.2.3.4:22, 127.0.0.1/8");
CommandLine with_pac_url(unused_path);
- with_pac_url.AppendSwitchWithValue(switches::kProxyPacUrl,
- "http://wpad/wpad.dat");
- with_pac_url.AppendSwitchWithValue(
+ with_pac_url.AppendSwitchASCII(switches::kProxyPacUrl, "http://wpad/wpad.dat");
+ with_pac_url.AppendSwitchASCII(
switches::kProxyBypassList,
".google.com, foo.com:99, 1.2.3.4:22, 127.0.0.1/8");
CommandLine with_auto_detect(unused_path);