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

Side by Side Diff: net/proxy/proxy_config_service_common_unittest.h

Issue 60009: ProxyConfigService for Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/proxy/proxy_config.cc ('k') | net/proxy/proxy_config_service_common_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "net/proxy/proxy_config.h"
12
13 // A few small helper functions common to the win and linux unittests.
14
15 namespace net {
16
17 ProxyConfig::ProxyRules MakeProxyRules(
18 ProxyConfig::ProxyRules::Type type,
19 const char* single_proxy,
20 const char* proxy_for_http,
21 const char* proxy_for_https,
22 const char* proxy_for_ftp);
23
24 ProxyConfig::ProxyRules MakeSingleProxyRules(const char* single_proxy);
25
26 ProxyConfig::ProxyRules MakeProxyPerSchemeRules(
27 const char* proxy_http,
28 const char* proxy_https,
29 const char* proxy_ftp);
30
31 typedef std::vector<std::string> BypassList;
32
33 // Joins the proxy bypass list using "\n" to make it into a single string.
34 std::string FlattenProxyBypass(const BypassList& proxy_bypass);
35
36 } // namespace net
37
38 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_config.cc ('k') | net/proxy/proxy_config_service_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698