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

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

Issue 3136025: Remove obviously unneeded forward declarations from headers under src/{app,base,net}. (Closed)
Patch Set: it was the best of times Created 10 years, 4 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
« no previous file with comments | « net/http/http_auth_handler.h ('k') | net/http/http_auth_sspi_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/task.h" 12 #include "base/task.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "net/http/http_auth_handler.h" 14 #include "net/http/http_auth_handler.h"
15 #include "net/http/http_auth_handler_factory.h" 15 #include "net/http/http_auth_handler_factory.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 class HostResolver;
20
19 // MockAuthHandler is used in tests to reliably trigger edge cases. 21 // MockAuthHandler is used in tests to reliably trigger edge cases.
20 class HttpAuthHandlerMock : public HttpAuthHandler { 22 class HttpAuthHandlerMock : public HttpAuthHandler {
21 public: 23 public:
22 enum Resolve { 24 enum Resolve {
23 RESOLVE_INIT, 25 RESOLVE_INIT,
24 RESOLVE_SKIP, 26 RESOLVE_SKIP,
25 RESOLVE_SYNC, 27 RESOLVE_SYNC,
26 RESOLVE_ASYNC, 28 RESOLVE_ASYNC,
27 RESOLVE_TESTED, 29 RESOLVE_TESTED,
28 }; 30 };
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int generate_rv_; 100 int generate_rv_;
99 std::string* auth_token_; 101 std::string* auth_token_;
100 bool first_round_; 102 bool first_round_;
101 bool connection_based_; 103 bool connection_based_;
102 GURL request_url_; 104 GURL request_url_;
103 }; 105 };
104 106
105 } // namespace net 107 } // namespace net
106 108
107 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_ 109 #endif // NET_HTTP_HTTP_AUTH_HANDLER_MOCK_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler.h ('k') | net/http/http_auth_sspi_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698