summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 23:21:36 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 23:21:36 +0000
commit076c8508d3de4665b7af5803b5189a9d13a01d83 (patch)
tree07f0af6408775ea6d7387e07de338c90d46c4c89 /net/http
parentaff49a98eb00231e434ed942ede0c4ddb3886ea8 (diff)
downloadchromium_src-076c8508d3de4665b7af5803b5189a9d13a01d83.zip
chromium_src-076c8508d3de4665b7af5803b5189a9d13a01d83.tar.gz
chromium_src-076c8508d3de4665b7af5803b5189a9d13a01d83.tar.bz2
Remove the "Proxy-Support: Session-Based-Authentication"
response headers from the NTLMAuth1 and NTLMAuth2 tests because they were inserted by Fiddler 2 (acting as a proxy) rather than from the server. R=eroman Review URL: http://codereview.chromium.org/67057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction_unittest.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index f497957..940f4a0 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -1780,8 +1780,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth1) {
MockRead("WWW-Authenticate: NTLM\r\n"),
MockRead("Connection: close\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
// Missing content -- won't matter, as connection will be reset.
MockRead(false, net::ERR_UNEXPECTED),
};
@@ -1821,8 +1820,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth1) {
"lAC4AYwBvAG0ABQAeAGMAbwByAHAALgBnAG8AbwBnAGwAZQAuAGMAbw"
"BtAAAAAAA=\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
MockRead("You are not authorized to view this page\r\n"),
// Lastly we get the desired content.
@@ -1910,8 +1908,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth2) {
MockRead("WWW-Authenticate: NTLM\r\n"),
MockRead("Connection: close\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
// Missing content -- won't matter, as connection will be reset.
MockRead(false, net::ERR_UNEXPECTED),
};
@@ -1951,8 +1948,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth2) {
"lAC4AYwBvAG0ABQAeAGMAbwByAHAALgBnAG8AbwBnAGwAZQAuAGMAbw"
"BtAAAAAAA=\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
MockRead("You are not authorized to view this page\r\n"),
// Wrong password.
@@ -1961,8 +1957,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth2) {
MockRead("WWW-Authenticate: NTLM\r\n"),
MockRead("Connection: close\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
// Missing content -- won't matter, as connection will be reset.
MockRead(false, net::ERR_UNEXPECTED),
};
@@ -2002,8 +1997,7 @@ TEST_F(HttpNetworkTransactionTest, NTLMAuth2) {
"lAC4AYwBvAG0ABQAeAGMAbwByAHAALgBnAG8AbwBnAGwAZQAuAGMAbw"
"BtAAAAAAA=\r\n"),
MockRead("Content-Length: 42\r\n"),
- MockRead("Content-Type: text/html\r\n"),
- MockRead("Proxy-Support: Session-Based-Authentication\r\n\r\n"),
+ MockRead("Content-Type: text/html\r\n\r\n"),
MockRead("You are not authorized to view this page\r\n"),
// Lastly we get the desired content.