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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_config_service_common_unittest.h
===================================================================
--- net/proxy/proxy_config_service_common_unittest.h (revision 0)
+++ net/proxy/proxy_config_service_common_unittest.h (revision 0)
@@ -0,0 +1,38 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
+#define NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
+
+#include <string>
+#include <vector>
+
+#include "net/proxy/proxy_config.h"
+
+// A few small helper functions common to the win and linux unittests.
+
+namespace net {
+
+ProxyConfig::ProxyRules MakeProxyRules(
+ ProxyConfig::ProxyRules::Type type,
+ const char* single_proxy,
+ const char* proxy_for_http,
+ const char* proxy_for_https,
+ const char* proxy_for_ftp);
+
+ProxyConfig::ProxyRules MakeSingleProxyRules(const char* single_proxy);
+
+ProxyConfig::ProxyRules MakeProxyPerSchemeRules(
+ const char* proxy_http,
+ const char* proxy_https,
+ const char* proxy_ftp);
+
+typedef std::vector<std::string> BypassList;
+
+// Joins the proxy bypass list using "\n" to make it into a single string.
+std::string FlattenProxyBypass(const BypassList& proxy_bypass);
+
+} // namespace net
+
+#endif // NET_PROXY_PROXY_CONFIG_SERVICE_COMMON_UNITTEST_H_
Property changes on: net/proxy/proxy_config_service_common_unittest.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« 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