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

Side by Side Diff: net/url_request/url_request_test_util.h

Issue 787803004: Update from https://crrev.com/307664 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase. Created 6 years 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/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_unittest.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/message_loop/message_loop_proxy.h" 17 #include "base/message_loop/message_loop_proxy.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "net/base/io_buffer.h" 23 #include "net/base/io_buffer.h"
24 #include "net/base/load_timing_info.h" 24 #include "net/base/load_timing_info.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/base/network_delegate.h" 26 #include "net/base/network_delegate_impl.h"
27 #include "net/base/request_priority.h" 27 #include "net/base/request_priority.h"
28 #include "net/base/sdch_manager.h" 28 #include "net/base/sdch_manager.h"
29 #include "net/cert/cert_verifier.h" 29 #include "net/cert/cert_verifier.h"
30 #include "net/cookies/cookie_monster.h" 30 #include "net/cookies/cookie_monster.h"
31 #include "net/disk_cache/disk_cache.h" 31 #include "net/disk_cache/disk_cache.h"
32 #include "net/ftp/ftp_network_layer.h" 32 #include "net/ftp/ftp_network_layer.h"
33 #include "net/http/http_auth_handler_factory.h" 33 #include "net/http/http_auth_handler_factory.h"
34 #include "net/http/http_cache.h" 34 #include "net/http/http_cache.h"
35 #include "net/http/http_network_layer.h" 35 #include "net/http/http_network_layer.h"
36 #include "net/http/http_network_session.h" 36 #include "net/http/http_network_session.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 std::string data_received_; 213 std::string data_received_;
214 bool have_full_request_headers_; 214 bool have_full_request_headers_;
215 HttpRequestHeaders full_request_headers_; 215 HttpRequestHeaders full_request_headers_;
216 216
217 // our read buffer 217 // our read buffer
218 scoped_refptr<IOBuffer> buf_; 218 scoped_refptr<IOBuffer> buf_;
219 }; 219 };
220 220
221 //----------------------------------------------------------------------------- 221 //-----------------------------------------------------------------------------
222 222
223 class TestNetworkDelegate : public NetworkDelegate { 223 class TestNetworkDelegate : public NetworkDelegateImpl {
224 public: 224 public:
225 enum Options { 225 enum Options {
226 NO_GET_COOKIES = 1 << 0, 226 NO_GET_COOKIES = 1 << 0,
227 NO_SET_COOKIE = 1 << 1, 227 NO_SET_COOKIE = 1 << 1,
228 }; 228 };
229 229
230 TestNetworkDelegate(); 230 TestNetworkDelegate();
231 ~TestNetworkDelegate() override; 231 ~TestNetworkDelegate() override;
232 232
233 // Writes the LoadTimingInfo during the most recent call to OnBeforeRedirect. 233 // Writes the LoadTimingInfo during the most recent call to OnBeforeRedirect.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 NetworkDelegate* network_delegate) const override; 411 NetworkDelegate* network_delegate) const override;
412 void set_main_intercept_job(URLRequestJob* job); 412 void set_main_intercept_job(URLRequestJob* job);
413 413
414 private: 414 private:
415 mutable URLRequestJob* main_intercept_job_; 415 mutable URLRequestJob* main_intercept_job_;
416 }; 416 };
417 417
418 } // namespace net 418 } // namespace net
419 419
420 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 420 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698