// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/proxy_string_util.h" #include "net/base/proxy_chain.h" #include "net/base/proxy_server.h" #include "testing/gtest/include/gtest/gtest.h" namespace net { namespace { // Test the creation of ProxyServer using ProxyUriToProxyServer, which parses // inputs of the form [<scheme>"://"]<host>[":"<port>]. Verify that each part // was labelled correctly, and the accessors all give the right data. TEST(ProxySpecificationUtilTest, ProxyUriToProxyServer) { … } // Test parsing of the special URI form "direct://". TEST(ProxySpecificationUtilTest, DirectProxyUriToProxyChain) { … } // Test parsing some invalid inputs. TEST(ProxySpecificationUtilTest, InvalidProxyUriToProxyServer) { … } // Test that LWS (SP | HT) is disregarded from the ends. TEST(ProxySpecificationUtilTest, WhitespaceProxyUriToProxyServer) { … } // Test parsing a ProxyServer from a PAC representation. TEST(ProxySpecificationUtilTest, PacResultElementToProxyServer) { … } // Test parsing a ProxyServer from an invalid PAC representation. TEST(ProxySpecificationUtilTest, InvalidPacResultElementToProxyServer) { … } } // namespace } // namespace net