| OLD | NEW |
| 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 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "net/http/http_stream.h" | 9 #include "net/http/http_stream.h" |
| 10 #include "net/http/http_stream_factory.h" | 10 #include "net/http/http_stream_factory.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 MOCK_METHOD3(OnBidirectionalStreamImplReady, | 49 MOCK_METHOD3(OnBidirectionalStreamImplReady, |
| 50 void(const SSLConfig& used_ssl_config, | 50 void(const SSLConfig& used_ssl_config, |
| 51 const ProxyInfo& used_proxy_info, | 51 const ProxyInfo& used_proxy_info, |
| 52 BidirectionalStreamImpl* stream)); | 52 BidirectionalStreamImpl* stream)); |
| 53 | 53 |
| 54 MOCK_METHOD3(OnWebSocketHandshakeStreamReady, | 54 MOCK_METHOD3(OnWebSocketHandshakeStreamReady, |
| 55 void(const SSLConfig& used_ssl_config, | 55 void(const SSLConfig& used_ssl_config, |
| 56 const ProxyInfo& used_proxy_info, | 56 const ProxyInfo& used_proxy_info, |
| 57 WebSocketHandshakeStreamBase* stream)); | 57 WebSocketHandshakeStreamBase* stream)); |
| 58 | 58 |
| 59 MOCK_METHOD3(OnStreamFailed, | 59 MOCK_METHOD2(OnStreamFailed, |
| 60 void(int status, | 60 void(int status, const SSLConfig& used_ssl_config)); |
| 61 const SSLConfig& used_ssl_config, | |
| 62 SSLFailureState ssl_failure_state)); | |
| 63 | 61 |
| 64 MOCK_METHOD3(OnCertificateError, | 62 MOCK_METHOD3(OnCertificateError, |
| 65 void(int status, | 63 void(int status, |
| 66 const SSLConfig& used_ssl_config, | 64 const SSLConfig& used_ssl_config, |
| 67 const SSLInfo& ssl_info)); | 65 const SSLInfo& ssl_info)); |
| 68 | 66 |
| 69 MOCK_METHOD4(OnNeedsProxyAuth, | 67 MOCK_METHOD4(OnNeedsProxyAuth, |
| 70 void(const HttpResponseInfo& proxy_response, | 68 void(const HttpResponseInfo& proxy_response, |
| 71 const SSLConfig& used_ssl_config, | 69 const SSLConfig& used_ssl_config, |
| 72 const ProxyInfo& used_proxy_info, | 70 const ProxyInfo& used_proxy_info, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 157 } |
| 160 | 158 |
| 161 private: | 159 private: |
| 162 MockHttpStreamFactoryImplJob* main_job_; | 160 MockHttpStreamFactoryImplJob* main_job_; |
| 163 MockHttpStreamFactoryImplJob* alternative_job_; | 161 MockHttpStreamFactoryImplJob* alternative_job_; |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 } // namespace net | 164 } // namespace net |
| 167 | 165 |
| 168 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ | 166 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ |
| OLD | NEW |