diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 23:25:04 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 23:25:04 +0000 |
commit | 5439283ff95a6f7d8b9e6d86c0fd178b0238acaa (patch) | |
tree | 6b067f14016e3c39adf8eb654ff18fc2ff1886de /net/http/http_auth_handler_negotiate_unittest.cc | |
parent | ec561333496a9b4f7f29718aef43094596f2d489 (diff) | |
download | chromium_src-5439283ff95a6f7d8b9e6d86c0fd178b0238acaa.zip chromium_src-5439283ff95a6f7d8b9e6d86c0fd178b0238acaa.tar.gz chromium_src-5439283ff95a6f7d8b9e6d86c0fd178b0238acaa.tar.bz2 |
Allow bypassing a block of IP addresses using CIDR notation in the proxy bypass list.
For example:
10.3.1.3/16
2020:ffff::/96
Note that similar to firefox, this is only applied to IP literals in URLs, and NOT to the resolved addresses of URLs.
BUG=9835
Review URL: http://codereview.chromium.org/2663001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_negotiate_unittest.cc')
-rw-r--r-- | net/http/http_auth_handler_negotiate_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc index 910b5ef..a5b3011 100644 --- a/net/http/http_auth_handler_negotiate_unittest.cc +++ b/net/http/http_auth_handler_negotiate_unittest.cc @@ -67,8 +67,8 @@ TEST(HttpAuthHandlerNegotiateTest, CnameSync) { MockHostResolver* mock_resolver = new MockHostResolver(); scoped_refptr<HostResolver> scoped_resolver(mock_resolver); mock_resolver->set_synchronous_mode(true); - mock_resolver->rules()->AddIPv4Rule("alias", "10.0.0.2", - "canonical.example.com"); + mock_resolver->rules()->AddIPLiteralRule("alias", "10.0.0.2", + "canonical.example.com"); TestCompletionCallback callback; EXPECT_EQ(OK, auth_handler->ResolveCanonicalName(mock_resolver, &callback)); EXPECT_EQ(L"HTTP/canonical.example.com", auth_handler->spn()); @@ -82,8 +82,8 @@ TEST(HttpAuthHandlerNegotiateTest, CnameAsync) { MockHostResolver* mock_resolver = new MockHostResolver(); scoped_refptr<HostResolver> scoped_resolver(mock_resolver); mock_resolver->set_synchronous_mode(false); - mock_resolver->rules()->AddIPv4Rule("alias", "10.0.0.2", - "canonical.example.com"); + mock_resolver->rules()->AddIPLiteralRule("alias", "10.0.0.2", + "canonical.example.com"); TestCompletionCallback callback; EXPECT_EQ(ERR_IO_PENDING, auth_handler->ResolveCanonicalName(mock_resolver, &callback)); |