summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_negotiate.h
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 17:16:34 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 17:16:34 +0000
commite607ee6779f2213b69a3a5d4a5fd1222e4ea58e7 (patch)
tree658ae78ac264963db0db8bcd553c0bc4f467dc90 /net/http/http_auth_handler_negotiate.h
parent0825bc6fff157dd1202fe1d4b019ca2db2eacd27 (diff)
downloadchromium_src-e607ee6779f2213b69a3a5d4a5fd1222e4ea58e7.zip
chromium_src-e607ee6779f2213b69a3a5d4a5fd1222e4ea58e7.tar.gz
chromium_src-e607ee6779f2213b69a3a5d4a5fd1222e4ea58e7.tar.bz2
Adds unit tests for how HttpAuthHandlerNegotiate creates SPNs.
BUG=None TEST=net_unittests --gtest_filter="*HttpAuthHandlerNegotiate*" Review URL: http://codereview.chromium.org/1705001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_negotiate.h')
-rw-r--r--net/http/http_auth_handler_negotiate.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_negotiate.h b/net/http/http_auth_handler_negotiate.h
index 7bb9426..77add14 100644
--- a/net/http/http_auth_handler_negotiate.h
+++ b/net/http/http_auth_handler_negotiate.h
@@ -108,6 +108,12 @@ class HttpAuthHandlerNegotiate : public HttpAuthHandler {
CompletionCallback* callback,
const BoundNetLog& net_log);
+#if defined(OS_WIN)
+ // These are public for unit tests
+ std::wstring CreateSPN(const AddressList& address_list, const GURL& orign);
+ const std::wstring& spn() const { return spn_; }
+#endif // defined(OS_WIN)
+
protected:
virtual bool Init(HttpAuth::ChallengeTokenizer* challenge);
@@ -116,8 +122,6 @@ class HttpAuthHandlerNegotiate : public HttpAuthHandler {
#if defined(OS_WIN)
void OnResolveCanonicalName(int result);
- std::wstring CreateSPN(const AddressList& address_list, const GURL& orign);
-
HttpAuthSSPI auth_sspi_;
AddressList address_list_;
scoped_ptr<SingleRequestHostResolver> single_resolve_;