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

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

Issue 295383007: Get rid of websocket_over_spdy_enabled global. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with fixed linebreaks Created 6 years, 6 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
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_job.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) 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 #include "net/url_request/url_request_test_util.h" 5 #include "net/url_request/url_request_test_util.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 if (!transport_security_state()) { 89 if (!transport_security_state()) {
90 context_storage_.set_transport_security_state( 90 context_storage_.set_transport_security_state(
91 new TransportSecurityState()); 91 new TransportSecurityState());
92 } 92 }
93 if (http_transaction_factory()) { 93 if (http_transaction_factory()) {
94 // Make sure we haven't been passed an object we're not going to use. 94 // Make sure we haven't been passed an object we're not going to use.
95 EXPECT_FALSE(client_socket_factory_); 95 EXPECT_FALSE(client_socket_factory_);
96 } else { 96 } else {
97 HttpNetworkSession::Params params; 97 HttpNetworkSession::Params params;
98 if (http_network_session_params_)
99 params = *http_network_session_params_;
98 params.client_socket_factory = client_socket_factory(); 100 params.client_socket_factory = client_socket_factory();
99 params.host_resolver = host_resolver(); 101 params.host_resolver = host_resolver();
100 params.cert_verifier = cert_verifier(); 102 params.cert_verifier = cert_verifier();
101 params.transport_security_state = transport_security_state(); 103 params.transport_security_state = transport_security_state();
102 params.proxy_service = proxy_service(); 104 params.proxy_service = proxy_service();
103 params.ssl_config_service = ssl_config_service(); 105 params.ssl_config_service = ssl_config_service();
104 params.http_auth_handler_factory = http_auth_handler_factory(); 106 params.http_auth_handler_factory = http_auth_handler_factory();
105 params.network_delegate = network_delegate(); 107 params.network_delegate = network_delegate();
106 params.http_server_properties = http_server_properties(); 108 params.http_server_properties = http_server_properties();
107 params.net_log = net_log(); 109 params.net_log = net_log();
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 URLRequestJob* job = main_intercept_job_; 632 URLRequestJob* job = main_intercept_job_;
631 main_intercept_job_ = NULL; 633 main_intercept_job_ = NULL;
632 return job; 634 return job;
633 } 635 }
634 636
635 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) { 637 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) {
636 main_intercept_job_ = job; 638 main_intercept_job_ = job;
637 } 639 }
638 640
639 } // namespace net 641 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/websockets/websocket_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698