OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 14170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14181 } | 14181 } |
14182 | 14182 |
14183 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } | 14183 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } |
14184 | 14184 |
14185 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 14185 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
14186 ADD_FAILURE(); | 14186 ADD_FAILURE(); |
14187 } | 14187 } |
14188 | 14188 |
14189 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } | 14189 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } |
14190 | 14190 |
14191 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 14191 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
14192 std::vector<uint8_t>* out) override { | 14192 TokenBindingType tb_type, |
| 14193 std::vector<uint8_t>* out) override { |
14193 ADD_FAILURE(); | 14194 ADD_FAILURE(); |
14194 return ERR_NOT_IMPLEMENTED; | 14195 return ERR_NOT_IMPLEMENTED; |
14195 } | 14196 } |
14196 | 14197 |
14197 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); } | 14198 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); } |
14198 | 14199 |
14199 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } | 14200 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } |
14200 | 14201 |
14201 void SetPriority(RequestPriority priority) override { priority_ = priority; } | 14202 void SetPriority(RequestPriority priority) override { priority_ = priority; } |
14202 | 14203 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14417 } | 14418 } |
14418 | 14419 |
14419 void GetSSLInfo(SSLInfo* ssl_info) override {} | 14420 void GetSSLInfo(SSLInfo* ssl_info) override {} |
14420 | 14421 |
14421 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 14422 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
14422 NOTREACHED(); | 14423 NOTREACHED(); |
14423 } | 14424 } |
14424 | 14425 |
14425 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } | 14426 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } |
14426 | 14427 |
14427 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 14428 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
14428 std::vector<uint8_t>* out) override { | 14429 TokenBindingType tb_type, |
| 14430 std::vector<uint8_t>* out) override { |
14429 ADD_FAILURE(); | 14431 ADD_FAILURE(); |
14430 return ERR_NOT_IMPLEMENTED; | 14432 return ERR_NOT_IMPLEMENTED; |
14431 } | 14433 } |
14432 | 14434 |
14433 void Drain(HttpNetworkSession* session) override { NOTREACHED(); } | 14435 void Drain(HttpNetworkSession* session) override { NOTREACHED(); } |
14434 | 14436 |
14435 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } | 14437 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } |
14436 | 14438 |
14437 void SetPriority(RequestPriority priority) override { NOTREACHED(); } | 14439 void SetPriority(RequestPriority priority) override { NOTREACHED(); } |
14438 | 14440 |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15575 base::RunLoop().RunUntilIdle(); | 15577 base::RunLoop().RunUntilIdle(); |
15576 | 15578 |
15577 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 15579 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
15578 HttpRequestHeaders headers; | 15580 HttpRequestHeaders headers; |
15579 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 15581 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
15580 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 15582 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
15581 } | 15583 } |
15582 #endif // !defined(OS_IOS) | 15584 #endif // !defined(OS_IOS) |
15583 | 15585 |
15584 } // namespace net | 15586 } // namespace net |
OLD | NEW |