summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-28 23:59:05 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-28 23:59:05 +0000
commit8c9f64e800ba0db577f9e56179e9b8e0f9421601 (patch)
treeffdc4224045144e91730432e9eeba1668ed1b548 /net
parentc434599a4961ff7ff047b8a918a10ea3defb46d3 (diff)
downloadchromium_src-8c9f64e800ba0db577f9e56179e9b8e0f9421601.zip
chromium_src-8c9f64e800ba0db577f9e56179e9b8e0f9421601.tar.gz
chromium_src-8c9f64e800ba0db577f9e56179e9b8e0f9421601.tar.bz2
Add an HTTP basic auth unit test for an empty username.
R=eroman BUG=297 Review URL: http://codereview.chromium.org/8859 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_auth_handler_basic_unittest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_auth_handler_basic_unittest.cc b/net/http/http_auth_handler_basic_unittest.cc
index ea4de4a..bdf52bf 100644
--- a/net/http/http_auth_handler_basic_unittest.cc
+++ b/net/http/http_auth_handler_basic_unittest.cc
@@ -16,6 +16,8 @@ TEST(HttpAuthHandlerBasicTest, GenerateCredentials) {
const char* expected_credentials;
} tests[] = {
{ L"foo", L"bar", "Basic Zm9vOmJhcg==" },
+ // Empty username
+ { L"", L"foobar", "Basic OmZvb2Jhcg==" },
// Empty password
{ L"anon", L"", "Basic YW5vbjo=" },
};