Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: net/http/http_auth_handler_negotiate.h

Issue 1705001: Unit tests for HttpAuthHandlerNegotiate (Closed)
Patch Set: Respond to eroman's concerns. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_negotiate.h
diff --git a/net/http/http_auth_handler_negotiate.h b/net/http/http_auth_handler_negotiate.h
index 7bb9426437d7f74e6242f2cf018a83118e32b800..77add14fc1463e475ed9eb725c235784bae63063 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_;
« no previous file with comments | « net/base/mock_host_resolver.cc ('k') | net/http/http_auth_handler_negotiate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698