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

Side by Side Diff: net/http/http_auth_handler_mock.h

Issue 6525035: Invalidate credentials if the server rejects them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify auth handlers for basic and digest Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual ~HttpAuthHandlerMock(); 61 virtual ~HttpAuthHandlerMock();
62 62
63 void SetResolveExpectation(Resolve resolve); 63 void SetResolveExpectation(Resolve resolve);
64 64
65 virtual bool NeedsCanonicalName(); 65 virtual bool NeedsCanonicalName();
66 66
67 virtual int ResolveCanonicalName(HostResolver* host_resolver, 67 virtual int ResolveCanonicalName(HostResolver* host_resolver,
68 CompletionCallback* callback); 68 CompletionCallback* callback);
69 69
70
71 void SetGenerateExpectation(bool async, int rv); 70 void SetGenerateExpectation(bool async, int rv);
72 71
73 void set_connection_based(bool connection_based) { 72 void set_connection_based(bool connection_based) {
74 connection_based_ = connection_based; 73 connection_based_ = connection_based;
75 } 74 }
76 75
77 const GURL& request_url() const { 76 const GURL& request_url() const {
78 return request_url_; 77 return request_url_;
79 } 78 }
80 79
(...skipping 23 matching lines...) Expand all
104 int generate_rv_; 103 int generate_rv_;
105 std::string* auth_token_; 104 std::string* auth_token_;
106 bool first_round_; 105 bool first_round_;
107 bool connection_based_; 106 bool connection_based_;
108 GURL request_url_; 107 GURL request_url_;
109 }; 108 };
110 109
111 } // namespace net 110 } // namespace net
112 111
113 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ 112 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698