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 #include <limits> | 10 #include <limits> |
(...skipping 14618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14629 RequestPriority priority, | 14629 RequestPriority priority, |
14630 const SSLConfig& server_ssl_config, | 14630 const SSLConfig& server_ssl_config, |
14631 const SSLConfig& proxy_ssl_config, | 14631 const SSLConfig& proxy_ssl_config, |
14632 HttpStreamRequest::Delegate* delegate, | 14632 HttpStreamRequest::Delegate* delegate, |
14633 const BoundNetLog& net_log) override { | 14633 const BoundNetLog& net_log) override { |
14634 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); | 14634 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); |
14635 last_stream_request_ = fake_request->AsWeakPtr(); | 14635 last_stream_request_ = fake_request->AsWeakPtr(); |
14636 return fake_request; | 14636 return fake_request; |
14637 } | 14637 } |
14638 | 14638 |
14639 HttpStreamRequest* RequestBidirectionalStreamJob( | 14639 HttpStreamRequest* RequestBidirectionalStreamImpl( |
14640 const HttpRequestInfo& info, | 14640 const HttpRequestInfo& info, |
14641 RequestPriority priority, | 14641 RequestPriority priority, |
14642 const SSLConfig& server_ssl_config, | 14642 const SSLConfig& server_ssl_config, |
14643 const SSLConfig& proxy_ssl_config, | 14643 const SSLConfig& proxy_ssl_config, |
14644 HttpStreamRequest::Delegate* delegate, | 14644 HttpStreamRequest::Delegate* delegate, |
14645 const BoundNetLog& net_log) override { | 14645 const BoundNetLog& net_log) override { |
14646 NOTREACHED(); | 14646 NOTREACHED(); |
14647 return nullptr; | 14647 return nullptr; |
14648 } | 14648 } |
14649 | 14649 |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15952 base::MessageLoop::current()->RunUntilIdle(); | 15952 base::MessageLoop::current()->RunUntilIdle(); |
15953 | 15953 |
15954 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 15954 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
15955 HttpRequestHeaders headers; | 15955 HttpRequestHeaders headers; |
15956 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 15956 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
15957 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 15957 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
15958 } | 15958 } |
15959 #endif // !defined(OS_IOS) | 15959 #endif // !defined(OS_IOS) |
15960 | 15960 |
15961 } // namespace net | 15961 } // namespace net |
OLD | NEW |