#include "net/proxy_resolution/proxy_config_service_common_unittest.h"
#include <string>
#include <vector>
#include "net/base/proxy_string_util.h"
#include "net/proxy_resolution/proxy_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
void MatchesProxyServerHelper(const char* failure_message,
const char* expected_proxy,
const ProxyList& actual_proxies,
::testing::AssertionResult* failure_details,
bool* did_fail) { … }
std::string FlattenProxyBypass(const ProxyBypassRules& bypass_rules) { … }
}
ProxyRulesExpectation::ProxyRulesExpectation(
ProxyConfig::ProxyRules::Type type,
const char* single_proxy,
const char* proxy_for_http,
const char* proxy_for_https,
const char* proxy_for_ftp,
const char* fallback_proxy,
const char* flattened_bypass_rules,
bool reverse_bypass)
: … { … }
::testing::AssertionResult ProxyRulesExpectation::Matches(
const ProxyConfig::ProxyRules& rules) const { … }
ProxyRulesExpectation ProxyRulesExpectation::Empty() { … }
ProxyRulesExpectation ProxyRulesExpectation::EmptyWithBypass(
const char* flattened_bypass_rules) { … }
ProxyRulesExpectation ProxyRulesExpectation::Single(
const char* single_proxy,
const char* flattened_bypass_rules) { … }
ProxyRulesExpectation ProxyRulesExpectation::PerScheme(
const char* proxy_http,
const char* proxy_https,
const char* proxy_ftp,
const char* flattened_bypass_rules) { … }
ProxyRulesExpectation ProxyRulesExpectation::PerSchemeWithSocks(
const char* proxy_http,
const char* proxy_https,
const char* proxy_ftp,
const char* socks_proxy,
const char* flattened_bypass_rules) { … }
ProxyRulesExpectation ProxyRulesExpectation::PerSchemeWithBypassReversed(
const char* proxy_http,
const char* proxy_https,
const char* proxy_ftp,
const char* flattened_bypass_rules) { … }
}