diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 15:07:38 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 15:07:38 +0000 |
commit | ac5c06ec27c40539d4b8c3892def9400af2e3852 (patch) | |
tree | 28510fded7167f6d83dbd620c39ec62ee70a01bc /net/http/http_auth_handler_negotiate_unittest.cc | |
parent | 1dc475f2470ea831f31e8d553eea0e4e3d1216cb (diff) | |
download | chromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.zip chromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.tar.gz chromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.tar.bz2 |
HttpAuthHandlers hold onto a bound net log.
Although this doesn't have a behavioral impact in this CL, it is needed for additional logging which I'd like to add.
BUG=34737
TEST=net_unittests
Review URL: http://codereview.chromium.org/2288001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48391 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 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc index ffb7ba4..ca54b47 100644 --- a/net/http/http_auth_handler_negotiate_unittest.cc +++ b/net/http/http_auth_handler_negotiate_unittest.cc @@ -29,7 +29,8 @@ void CreateHandler(bool disable_cname_lookup, bool include_port, std::string challenge = "Negotiate"; HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); GURL gurl(url_string); - (*handler)->InitFromChallenge(&props, HttpAuth::AUTH_SERVER, gurl); + (*handler)->InitFromChallenge(&props, HttpAuth::AUTH_SERVER, gurl, + BoundNetLog()); } } // namespace @@ -69,8 +70,7 @@ TEST(HttpAuthHandlerNegotiateTest, CnameSync) { mock_resolver->rules()->AddIPv4Rule("alias", "10.0.0.2", "canonical.example.com"); TestCompletionCallback callback; - EXPECT_EQ(OK, auth_handler->ResolveCanonicalName(mock_resolver, &callback, - BoundNetLog())); + EXPECT_EQ(OK, auth_handler->ResolveCanonicalName(mock_resolver, &callback)); EXPECT_EQ(L"HTTP/canonical.example.com", auth_handler->spn()); } @@ -86,8 +86,7 @@ TEST(HttpAuthHandlerNegotiateTest, CnameAsync) { "canonical.example.com"); TestCompletionCallback callback; EXPECT_EQ(ERR_IO_PENDING, auth_handler->ResolveCanonicalName(mock_resolver, - &callback, - BoundNetLog())); + &callback)); EXPECT_EQ(OK, callback.WaitForResult()); EXPECT_EQ(L"HTTP/canonical.example.com", auth_handler->spn()); } |