OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_impl_request.h" | 5 #include "net/http/http_stream_factory_impl_request.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "net/http/http_stream_factory_impl_job.h" | 8 #include "net/http/http_stream_factory_impl_job.h" |
9 #include "net/proxy/proxy_info.h" | 9 #include "net/proxy/proxy_info.h" |
10 #include "net/proxy/proxy_service.h" | 10 #include "net/proxy/proxy_service.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate { | 28 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate { |
29 public: | 29 public: |
30 DoNothingRequestDelegate() {} | 30 DoNothingRequestDelegate() {} |
31 | 31 |
32 ~DoNothingRequestDelegate() override {} | 32 ~DoNothingRequestDelegate() override {} |
33 | 33 |
34 // HttpStreamRequest::Delegate | 34 // HttpStreamRequest::Delegate |
35 void OnStreamReady(const SSLConfig& used_ssl_config, | 35 void OnStreamReady(const SSLConfig& used_ssl_config, |
36 const ProxyInfo& used_proxy_info, | 36 const ProxyInfo& used_proxy_info, |
37 HttpStream* stream) override {} | 37 HttpStream* stream) override {} |
38 void OnBidirectionalStreamJobReady( | 38 void OnBidirectionalStreamImplReady( |
39 const SSLConfig& used_ssl_config, | 39 const SSLConfig& used_ssl_config, |
40 const ProxyInfo& used_proxy_info, | 40 const ProxyInfo& used_proxy_info, |
41 BidirectionalStreamJob* stream_job) override {} | 41 BidirectionalStreamImpl* stream) override {} |
42 | 42 |
43 void OnWebSocketHandshakeStreamReady( | 43 void OnWebSocketHandshakeStreamReady( |
44 const SSLConfig& used_ssl_config, | 44 const SSLConfig& used_ssl_config, |
45 const ProxyInfo& used_proxy_info, | 45 const ProxyInfo& used_proxy_info, |
46 WebSocketHandshakeStreamBase* stream) override {} | 46 WebSocketHandshakeStreamBase* stream) override {} |
47 void OnStreamFailed(int status, | 47 void OnStreamFailed(int status, |
48 const SSLConfig& used_ssl_config, | 48 const SSLConfig& used_ssl_config, |
49 SSLFailureState ssl_failure_state) override {} | 49 SSLFailureState ssl_failure_state) override {} |
50 void OnCertificateError(int status, | 50 void OnCertificateError(int status, |
51 const SSLConfig& used_ssl_config, | 51 const SSLConfig& used_ssl_config, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(wait_time + 1)); | 157 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(wait_time + 1)); |
158 base::MessageLoop::current()->RunUntilIdle(); | 158 base::MessageLoop::current()->RunUntilIdle(); |
159 | 159 |
160 EXPECT_NE(delay, job->wait_time_); | 160 EXPECT_NE(delay, job->wait_time_); |
161 EXPECT_TRUE(job->wait_time_.is_zero()); | 161 EXPECT_TRUE(job->wait_time_.is_zero()); |
162 EXPECT_EQ(HttpStreamFactoryImpl::Job::STATE_INIT_CONNECTION_COMPLETE, | 162 EXPECT_EQ(HttpStreamFactoryImpl::Job::STATE_INIT_CONNECTION_COMPLETE, |
163 job->next_state_); | 163 job->next_state_); |
164 } | 164 } |
165 | 165 |
166 } // namespace net | 166 } // namespace net |
OLD | NEW |