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

Side by Side Diff: net/http/http_stream_factory_test_util.cc

Issue 2701913003: Resume the main job immediately when QUIC job fails, not wait for the head start timer to exprie (Closed)
Patch Set: Created 3 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
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | no next file » | 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/http/http_stream_factory_test_util.h" 5 #include "net/http/http_stream_factory_test_util.h"
6 6
7 #include "net/proxy/proxy_info.h" 7 #include "net/proxy/proxy_info.h"
8 8
9 using ::testing::_; 9 using ::testing::_;
10 10
(...skipping 15 matching lines...) Expand all
26 NetLog* net_log) 26 NetLog* net_log)
27 : HttpStreamFactoryImpl::Job(delegate, 27 : HttpStreamFactoryImpl::Job(delegate,
28 job_type, 28 job_type,
29 session, 29 session,
30 request_info, 30 request_info,
31 priority, 31 priority,
32 server_ssl_config, 32 server_ssl_config,
33 proxy_ssl_config, 33 proxy_ssl_config,
34 destination, 34 destination,
35 origin_url, 35 origin_url,
36 net_log) {} 36 net_log) {
37 DCHECK(!is_waiting());
38 }
37 39
38 MockHttpStreamFactoryImplJob::MockHttpStreamFactoryImplJob( 40 MockHttpStreamFactoryImplJob::MockHttpStreamFactoryImplJob(
39 HttpStreamFactoryImpl::Job::Delegate* delegate, 41 HttpStreamFactoryImpl::Job::Delegate* delegate,
40 HttpStreamFactoryImpl::JobType job_type, 42 HttpStreamFactoryImpl::JobType job_type,
41 HttpNetworkSession* session, 43 HttpNetworkSession* session,
42 const HttpRequestInfo& request_info, 44 const HttpRequestInfo& request_info,
43 RequestPriority priority, 45 RequestPriority priority,
44 const SSLConfig& server_ssl_config, 46 const SSLConfig& server_ssl_config,
45 const SSLConfig& proxy_ssl_config, 47 const SSLConfig& proxy_ssl_config,
46 HostPortPair destination, 48 HostPortPair destination,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 DCHECK(!alternative_job_); 131 DCHECK(!alternative_job_);
130 alternative_job_ = new MockHttpStreamFactoryImplJob( 132 alternative_job_ = new MockHttpStreamFactoryImplJob(
131 delegate, job_type, session, request_info, priority, SSLConfig(), 133 delegate, job_type, session, request_info, priority, SSLConfig(),
132 SSLConfig(), destination, origin_url, AlternativeService(), 134 SSLConfig(), destination, origin_url, AlternativeService(),
133 alternative_proxy_server, nullptr); 135 alternative_proxy_server, nullptr);
134 136
135 return alternative_job_; 137 return alternative_job_;
136 } 138 }
137 139
138 } // namespace net 140 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698